From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Change major mode for nxml-mode Date: Thu, 1 Jan 2009 03:45:27 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230777949 21109 80.91.229.12 (1 Jan 2009 02:45:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2009 02:45:49 +0000 (UTC) To: "Emacs Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 01 03:46:57 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LIDaJ-0007JJ-QN for ged-emacs-devel@m.gmane.org; Thu, 01 Jan 2009 03:46:56 +0100 Original-Received: from localhost ([127.0.0.1]:35131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIDZ4-0006FW-Hc for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 21:45:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIDZ1-0006FR-6w for emacs-devel@gnu.org; Wed, 31 Dec 2008 21:45:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIDYw-0006FE-R3 for emacs-devel@gnu.org; Wed, 31 Dec 2008 21:45:33 -0500 Original-Received: from [199.232.76.173] (port=37335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIDYw-0006FB-M0 for emacs-devel@gnu.org; Wed, 31 Dec 2008 21:45:30 -0500 Original-Received: from mail-bw0-f12.google.com ([209.85.218.12]:63212) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LIDYw-0004ja-9n for emacs-devel@gnu.org; Wed, 31 Dec 2008 21:45:30 -0500 Original-Received: by bwz5 with SMTP id 5so12898199bwz.18 for ; Wed, 31 Dec 2008 18:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=D91U1kSI9k8dGYszS0jxqkjqD1T+DMPGOHB6GQiVfC4=; b=t20ATj74du27ASKlRSx0ku41ss5NvNLnAsZXXE7paGrLGXxl+xaf6HLf/2vaDLQD9l Wpa70wSbXvCcVZaqoKDh59XfnBkhYDFE7nGlhs6MxQGclksU7WV/KNuINTcORXQtr1f+ k1YIJrEsoCfekD5w7mlJUpDsKxIe/q2Ilc/VU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Bdx+vDskJJpy3/haAxW3fTeOjvYHCcyFpU5im320M8Lea+vnqevsHPCcWdgBnnsqiw vdGC+VTZ2hmA16YuqfL+RwmG/P/0B1vM/MWtKmeiVDlgbn20og4vpzEysqIN0t/1tOq5 Fe25j3sxg5UQUv14rKfiT3cP42b4rtIqL5tXw= Original-Received: by 10.86.76.20 with SMTP id y20mr9646627fga.37.1230777927899; Wed, 31 Dec 2008 18:45:27 -0800 (PST) Original-Received: by 10.86.35.9 with HTTP; Wed, 31 Dec 2008 18:45:27 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107491 Archived-At: I have had this comment for long in nXhtml and nearly forgot about it. Does someone know if this is fixed (in some way) now? ;; 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 (save-restriction (widen) (rng-validate-mode -1) (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)))))