From: "Wedler, Christoph" <christoph.wedler@sap.com>
Cc: emacs-devel@gnu.org
Subject: RE: [Bug] Issues with format.el: coding system, byte/char confusi on
Date: Tue, 13 May 2003 19:18:20 +0200 [thread overview]
Message-ID: <67B8CED503F3D511BB9F0008C75DAD6605485600@dewdfx17> (raw)
Richard Stallman wrote:
>>>> 1. Shouldn't `format-annotate-function' also save the buffer-local
>>>> variable `buffer-file-coding-system' (as it does with
>>>> `selective-display' and `enable-multibyte-characters' since v1.38)?
> [...]
> How about writing a patch to do this in general, and trying it out
> for a while? If it works well for you, we can install it.
* format.el (format-annotate-function): Copy coding system into
the new temp buffer.
- Christoph
diff -c format.el.~1.40~ format.el
*** format.el.~1.40~ Mon May 5 18:35:00 2003
--- format.el Mon May 5 18:35:00 2003
***************
*** 223,232 ****
(let ((copy-buf (get-buffer-create (format " *Format Temp %d*"
format-count)))
(sel-disp selective-display)
! (multibyte enable-multibyte-characters))
(with-current-buffer copy-buf
(setq selective-display sel-disp)
! (set-buffer-multibyte multibyte))
(copy-to-buffer copy-buf from to)
(set-buffer copy-buf)
(format-insert-annotations write-region-annotations-so-far from)
--- 223,234 ----
(let ((copy-buf (get-buffer-create (format " *Format Temp %d*"
format-count)))
(sel-disp selective-display)
! (multibyte enable-multibyte-characters)
! (coding-system buffer-file-coding-system))
(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)
next reply other threads:[~2003-05-13 17:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-13 17:18 Wedler, Christoph [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-02 14:11 [Bug] Issues with format.el: coding system, byte/char confusi on Wedler, Christoph
2003-05-03 15:03 ` Richard Stallman
2003-04-09 18:26 Wedler, Christoph
2003-04-10 6:23 ` Richard Stallman
2003-04-10 12:05 ` Kenichi Handa
2003-04-11 8:51 ` Richard Stallman
2003-04-11 11:04 ` Kenichi Handa
2003-04-08 18:01 Wedler, Christoph
2003-04-09 5:37 ` Kenichi Handa
2003-04-09 5:39 ` Richard Stallman
2003-04-15 2:06 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67B8CED503F3D511BB9F0008C75DAD6605485600@dewdfx17 \
--to=christoph.wedler@sap.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).