all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de
To: tomas@tuxteam.de
Cc: emacs-devel@gnu.org
Subject: [PATCH] Issue with format-alist (Buglet?)
Date: Wed, 6 Aug 2008 10:43:11 +0200	[thread overview]
Message-ID: <20080806084311.GB12719@tomas> (raw)
In-Reply-To: <20080806083140.GA12719@tomas>

-----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ás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFImWQfBcgs9XrR2kYRAvp3AJ9GP/kZPFqgZbl0j0kvGW/rfSWCTACfcFhF
Ce836bAJCnwN71NMPzoxPYo=
=0AYv
-----END PGP SIGNATURE-----




      reply	other threads:[~2008-08-06  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06  8:31 Issue with format-alist (Buglet?) tomas
2008-08-06  8:43 ` tomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080806084311.GB12719@tomas \
    --to=tomas@tuxteam.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.