]> git.eshelyaron.com Git - emacs.git/commitdiff
(smerge-remove-props): Don't mark the buffer modified.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Mar 2007 20:12:55 +0000 (20:12 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Mar 2007 20:12:55 +0000 (20:12 +0000)
(debug-ignored-errors): Add entry from smerge-match-conflict.

lisp/ChangeLog
lisp/smerge-mode.el

index e683efb937ac32b126324956c955fea00afb9c5c..b4c3dc3d8aec2fb22a60ee97f6caf537ce4347e9 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * smerge-mode.el (smerge-remove-props): Don't mark the buffer modified.
+       (debug-ignored-errors): Add entry from smerge-match-conflict.
+
 2007-03-08  J.D. Smith  <jdsmith@as.arizona.edu>
 
        * progmodes/idlw-help.el (idlwave-do-context-help1): Don't visit
@@ -7,9 +12,9 @@
 
 2007-03-08  Chong Yidong  <cyd@stupidchicken.com>
 
-       * replace.el (occur-engine): buffer-undo-list binding moved...
+       * replace.el (occur-engine): Move buffer-undo-list binding...
        (occur-1): ...to here.
-       
+
        * complete.el (PC-bindings): Rebind M-TAB in read-expression-map.
 
        * simple.el (minibuffer-completing-symbol): New var.
@@ -25,8 +30,8 @@
 2007-03-07  Miles Bader  <miles@gnu.org>
 
        * international/isearch-x.el
-       (isearch-process-search-multibyte-characters): Strip
-       text-properties from PROMPT to avoid an error from read-string.
+       (isearch-process-search-multibyte-characters):
+       Strip text-properties from PROMPT to avoid an error from read-string.
 
 2007-03-07  Kim F. Storm  <storm@cua.dk>
 
index bda569a1e0518289e3d52bf5b9f3b2fd63d32c47..8e239ab5a263dfc68ddacbcb9108d60ec073c860 100644 (file)
@@ -345,7 +345,9 @@ according to `smerge-match-conflict'.")
   ;; during font-locking so inhibit-modification-hooks is non-nil, so we
   ;; can't just modify the buffer and expect font-lock to be triggered as in:
   ;; (put-text-property beg end 'smerge-force-highlighting nil)
-  (remove-text-properties beg end '(fontified nil)))
+  (let ((modified (buffer-modified-p)))
+    (remove-text-properties beg end '(fontified nil))
+    (restore-buffer-modified-p modified)))
 
 (defun smerge-popup-context-menu (event)
   "Pop up the Smerge mode context menu under mouse."
@@ -558,6 +560,8 @@ An error is raised if not inside a conflict."
          t)
       (search-failed (error "Point not in conflict region")))))
 
+(add-to-list 'debug-ignored-errors "Point not in conflict region")
+
 (defun smerge-conflict-overlay (pos)
   "Return the conflict overlay at POS if any."
   (let ((ols (overlays-at pos))