]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix: inhibit point motion hooks when encoding an enriched document.
authorIvan Shmakov <ivan@siamics.net>
Sat, 17 Jan 2015 19:07:07 +0000 (19:07 +0000)
committerIvan Shmakov <ivan@siamics.net>
Sat, 17 Jan 2015 19:34:50 +0000 (19:34 +0000)
* lisp/textmodes/enriched.el (enriched-encode): Use
inhibit-point-motion-hooks in addition to inhibit-read-only.

Fixes: debbugs:18246
lisp/ChangeLog
lisp/textmodes/enriched.el

index 55c7a366deb4b4afd769ddea4086886b5b36b954..d894b1ffca041dd171b2da6bfcd79d63633740f2 100644 (file)
        in place of the file name while working on non-file buffers, just
        like hack-dir-local-variables already does.  (Bug#19140)
 
+       * textmodes/enriched.el (enriched-encode): Use
+       inhibit-point-motion-hooks in addition to inhibit-read-only.
+       (Bug#18246)
+
 2015-01-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/eieio-core.el (eieio--class-constructor): Rename from
index b9d45b3a32fecac590174f779fd0d8217125ef7e..040a50e3099a0e15ee2b0e5faeaae416086de6a1 100644 (file)
@@ -314,7 +314,8 @@ the region, and the START and END of each region."
 ;;;###autoload
 (defun enriched-encode (from to orig-buf)
   (if enriched-verbose (message "Enriched: encoding document..."))
-  (let ((inhibit-read-only t))
+  (let ((inhibit-read-only t)
+       (inhibit-point-motion-hooks t))
     (save-restriction
       (narrow-to-region from to)
       (delete-to-left-margin)