all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* nxml-mode does not remove its overlays
@ 2008-03-08 19:22 Lennart Borgman (gmail)
  2008-03-08 21:02 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-08 19:22 UTC (permalink / raw)
  To: Emacs Devel

Could this be added to nxml.el?

;; This should be run in `change-major-mode-hook'."
;; Should be part of nxml.el IMO
(defun nxml-change-mode ()
   ;; Remove overlays used by nxml-mode.
   (save-excursion
     (unless (and (= (point-min) 1)
                  (= (point-max) (1+ (buffer-size))))
       (widen))
     (rng-validate-mode 0)
     (let ((inhibit-read-only t)
           (buffer-undo-list t)
           (modified (buffer-modified-p)))
       (nxml-with-invisible-motion
         (remove-text-properties (point-min) (point-max) '(face nil)))
       (set-buffer-modified-p modified))))





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-09 10:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-08 19:22 nxml-mode does not remove its overlays Lennart Borgman (gmail)
2008-03-08 21:02 ` Stefan Monnier
2008-03-09  2:40   ` Bastien
2008-03-09 10:18     ` David Kastrup

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.