aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-01-11 16:22:32 +0000
committerStefan Monnier2007-01-11 16:22:32 +0000
commit62222158fe3f19462b1963bf9d7847056aeba495 (patch)
treed39c66dc4c717a2ace734a8443ba32211605dfed
parent5362ba53398cbd2f8d81d226b2321fbc960ceb0f (diff)
downloademacs-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/ChangeLog6
-rw-r--r--lisp/hexl.el14
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 @@
12007-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
12007-01-10 Stefan Monnier <monnier@iro.umontreal.ca> 72007-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.
707This discards the buffer's undo information." 707This 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.
732This discards the buffer's undo information." 732This 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))