]> git.eshelyaron.com Git - emacs.git/commitdiff
(smerge-remove-props): Cause re-highlighting of the whole conflict.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Sep 2005 18:15:20 +0000 (18:15 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Sep 2005 18:15:20 +0000 (18:15 +0000)
lisp/ChangeLog
lisp/smerge-mode.el

index 630e51283650df5eec6be62f9572e7f7bb61088f..a545e3e400adf0ba24a3063bfa0b022610b2329d 100644 (file)
@@ -1,23 +1,27 @@
+2005-09-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * smerge-mode.el (smerge-remove-props): Cause re-highlighting of the
+       whole conflict.
+
 2005-09-23  Carsten Dominik  <dominik@science.uva.nl>
 
-       * textmodes/org.el (org-mode-map, orgtbl-mode-map): Move
-       keybindings with `C-c C-h' prefix to `C-c C-x' prefix.  Make use
+       * textmodes/org.el (org-mode-map, orgtbl-mode-map):
+       Move keybindings with `C-c C-h' prefix to `C-c C-x' prefix.  Make use
        of `remap' feature when available.  Additional key bindings for
        better tty support.
        (org-mode-restart, org-force-self-insert): New commands.
        (org-time-stamp-inactive): New command.
        (org-remap): New function.
-       (org-table-auto-blank-field, org-level-color-stars-only): New
-       options.
-       (org-enable-fixed-width-editor): Moved to `org-structure'
+       (org-table-auto-blank-field, org-level-color-stars-only): New options.
+       (org-enable-fixed-width-editor): Move to `org-structure'
        customization group.
-       (org-self-insert-command, orgtbl-self-insert-command): Modified to
+       (org-self-insert-command, orgtbl-self-insert-command): Modify to
        blank field after field motion commands.
 
 2005-09-23  Kenichi Handa  <handa@m17n.org>
 
-       * international/mule-cmds.el (set-language-environment): Don't
-       check utf-translate-cjk-lang-env is nil or not on deciding if we
+       * international/mule-cmds.el (set-language-environment):
+       Don't check utf-translate-cjk-lang-env is nil or not on deciding if we
        have to call utf-translate-cjk-load-tables.
 
 2005-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>
index 31c7c4f2f1272a4c92bc9a49aa3e9dec20b4c7b0..e777f3f8211650e2b053de6b84d916bd6e2c0c19 100644 (file)
@@ -335,7 +335,17 @@ according to `smerge-match-conflict'.")
 
 (defun smerge-remove-props (beg end)
   (remove-overlays beg end 'smerge 'refine)
-  (remove-overlays beg end 'smerge 'conflict))
+  (remove-overlays beg end 'smerge 'conflict)
+  ;; Now that we use overlays rather than text-properties, this function
+  ;; does not cause refontification any more.  It can be seen very clearly
+  ;; in buffers where jit-lock-contextually is not t, in which case deleting
+  ;; the "<<<<<<< foobar" leading line leaves the rest of the conflict
+  ;; highlighted as if it were still a valid conflict.  Note that in many
+  ;; important cases (such as the previous example) we're actually called
+  ;; 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)))
 
 (defun smerge-popup-context-menu (event)
   "Pop up the Smerge mode context menu under mouse."