From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: [PATCH] Issue with format-alist (Buglet?) Date: Wed, 6 Aug 2008 10:43:11 +0200 Message-ID: <20080806084311.GB12719@tomas> References: <20080806083140.GA12719@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218011823 18603 80.91.229.12 (6 Aug 2008 08:37:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2008 08:37:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: tomas@tuxteam.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 06 10:37:54 2008 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 1KQeWl-000830-AG for ged-emacs-devel@m.gmane.org; Wed, 06 Aug 2008 10:37:51 +0200 Original-Received: from localhost ([127.0.0.1]:50029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQeVp-0004Iy-2b for ged-emacs-devel@m.gmane.org; Wed, 06 Aug 2008 04:36:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQeVj-0004EQ-4o for emacs-devel@gnu.org; Wed, 06 Aug 2008 04:36:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQeVg-0004AD-PS for emacs-devel@gnu.org; Wed, 06 Aug 2008 04:36:46 -0400 Original-Received: from [199.232.76.173] (port=45710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQeVg-00049s-J0 for emacs-devel@gnu.org; Wed, 06 Aug 2008 04:36:44 -0400 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:33506 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQeVg-0008My-6J for emacs-devel@gnu.org; Wed, 06 Aug 2008 04:36:44 -0400 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 5533B9009B; Wed, 6 Aug 2008 10:43:11 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20080806083140.GA12719@tomas> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-kernel: by monty-python.gnu.org: 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:102117 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, the following patch seems to solve the issue with me (i.e. wrapping inhibit-read-only around munging copy-buf in format.el). I don't know whether it is The Right Thing, but it might help to pin-point the problem: RCS file: /sources/emacs/emacs/lisp/format.el,v retrieving revision 1.61 diff -r1.61 format.el 219,227c219,228 < (with-current-buffer copy-buf < (setq selective-display sel-disp) < (set-buffer-multibyte multibyte) < (setq buffer-file-coding-system coding-system)) < (copy-to-buffer copy-buf from to) < (set-buffer copy-buf) < (format-insert-annotations write-region-annotations-so-far from) < (format-encode-run-method to-fn (point-min) (point-max) orig-buf= ) < nil) - --- > (let ((inhibit-read-only t)) > (with-current-buffer copy-buf > (setq selective-display sel-disp) > (set-buffer-multibyte multibyte) > (setq buffer-file-coding-system coding-system)) > (copy-to-buffer copy-buf from to) > (set-buffer copy-buf) > (format-insert-annotations write-region-annotations-so-= far from) > (format-encode-run-method to-fn (point-min) (point-max)= orig-buf) > nil)) Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFImWQfBcgs9XrR2kYRAvp3AJ9GP/kZPFqgZbl0j0kvGW/rfSWCTACfcFhF Ce836bAJCnwN71NMPzoxPYo=3D =3D0AYv -----END PGP SIGNATURE-----