emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/picture.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/picture.el
Date: Mon, 10 Apr 2006 03:06:21 +0000

Index: emacs/lisp/textmodes/picture.el
diff -u emacs/lisp/textmodes/picture.el:1.50 
emacs/lisp/textmodes/picture.el:1.51
--- emacs/lisp/textmodes/picture.el:1.50        Mon Feb  6 12:12:26 2006
+++ emacs/lisp/textmodes/picture.el     Mon Apr 10 03:06:21 2006
@@ -758,8 +758,9 @@
 
 (defun picture-mode-exit (&optional nostrip)
   "Undo `picture-mode' and return to previous major mode.
-With no argument strips whitespace from end of every line in Picture buffer
-  otherwise just return to previous mode."
+With no argument, strip whitespace from end of every line in Picture buffer;
+  otherwise, just return to previous mode.
+Runs `picture-mode-exit-hook' at the end."
   (interactive "P")
   (if (not (eq major-mode 'picture-mode))
       (error "You aren't editing a Picture")
@@ -769,7 +770,8 @@
     (setq major-mode picture-mode-old-major-mode)
     (kill-local-variable 'tab-stop-list)
     (setq truncate-lines picture-mode-old-truncate-lines)
-    (force-mode-line-update)))
+    (force-mode-line-update)
+    (run-hooks 'picture-mode-exit-hook)))
 
 (provide 'picture)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]