diff options
| author | Stefan Monnier | 2007-01-11 16:22:32 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-01-11 16:22:32 +0000 |
| commit | 62222158fe3f19462b1963bf9d7847056aeba495 (patch) | |
| tree | d39c66dc4c717a2ace734a8443ba32211605dfed | |
| parent | 5362ba53398cbd2f8d81d226b2321fbc960ceb0f (diff) | |
| download | emacs-62222158fe3f19462b1963bf9d7847056aeba495.tar.gz emacs-62222158fe3f19462b1963bf9d7847056aeba495.zip | |
(hexlify-buffer, dehexlify-buffer): Don't complain and don't
activate undo when undo is not active.
Reported by Chris <christopher.ian.moore@gmail.com>.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/hexl.el | 14 |
2 files changed, 13 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e0496e1fe0..a2110110cbf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-01-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * hexl.el (hexlify-buffer, dehexlify-buffer): Don't complain and don't | ||
| 4 | activate undo when undo is not active. | ||
| 5 | Reported by Chris <christopher.ian.moore@gmail.com>. | ||
| 6 | |||
| 1 | 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * ffap.el (ffap-next-regexp, ffap-machine-p, ffap-newsgroup-regexp) | 9 | * ffap.el (ffap-next-regexp, ffap-machine-p, ffap-newsgroup-regexp) |
diff --git a/lisp/hexl.el b/lisp/hexl.el index 39c313cb3da..cf678600680 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; hexl.el --- edit a file in a hex dump format using the hexl filter | 1 | ;;; hexl.el --- edit a file in a hex dump format using the hexl filter |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989, 1994, 1998, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1989, 1994, 1998, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Keith Gabryelski <ag@wheaties.ai.mit.edu> | 6 | ;; Author: Keith Gabryelski <ag@wheaties.ai.mit.edu> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -706,10 +706,10 @@ You may also type octal digits, to insert a character with that code." | |||
| 706 | "Convert a binary buffer to hexl format. | 706 | "Convert a binary buffer to hexl format. |
| 707 | This discards the buffer's undo information." | 707 | This discards the buffer's undo information." |
| 708 | (interactive) | 708 | (interactive) |
| 709 | (and buffer-undo-list | 709 | (and (consp buffer-undo-list) |
| 710 | (or (y-or-n-p "Converting to hexl format discards undo info; ok? ") | 710 | (or (y-or-n-p "Converting to hexl format discards undo info; ok? ") |
| 711 | (error "Aborted"))) | 711 | (error "Aborted")) |
| 712 | (setq buffer-undo-list nil) | 712 | (setq buffer-undo-list nil)) |
| 713 | ;; Don't decode text in the ASCII part of `hexl' program output. | 713 | ;; Don't decode text in the ASCII part of `hexl' program output. |
| 714 | (let ((coding-system-for-read 'raw-text) | 714 | (let ((coding-system-for-read 'raw-text) |
| 715 | (coding-system-for-write buffer-file-coding-system) | 715 | (coding-system-for-write buffer-file-coding-system) |
| @@ -731,10 +731,10 @@ This discards the buffer's undo information." | |||
| 731 | "Convert a hexl format buffer to binary. | 731 | "Convert a hexl format buffer to binary. |
| 732 | This discards the buffer's undo information." | 732 | This discards the buffer's undo information." |
| 733 | (interactive) | 733 | (interactive) |
| 734 | (and buffer-undo-list | 734 | (and (consp buffer-undo-list) |
| 735 | (or (y-or-n-p "Converting from hexl format discards undo info; ok? ") | 735 | (or (y-or-n-p "Converting from hexl format discards undo info; ok? ") |
| 736 | (error "Aborted"))) | 736 | (error "Aborted")) |
| 737 | (setq buffer-undo-list nil) | 737 | (setq buffer-undo-list nil)) |
| 738 | (let ((coding-system-for-write 'raw-text) | 738 | (let ((coding-system-for-write 'raw-text) |
| 739 | (coding-system-for-read buffer-file-coding-system) | 739 | (coding-system-for-read buffer-file-coding-system) |
| 740 | (buffer-undo-list t)) | 740 | (buffer-undo-list t)) |