unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
@ 2009-07-08 18:46 ` Eli Zaretskii
  2009-07-09  6:05   ` Glenn Morris
  2009-07-19  0:45   ` bug#3790: marked as done (23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system) Emacs bug Tracking System
  0 siblings, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2009-07-08 18:46 UTC (permalink / raw)
  To: emacs-pretest-bug

After typing C-x C-s in an Rmail buffer showing some message,
buffer-file-coding-system becomes no-conversion, no matter what
encoding was used to decode and display the message.  Typing `p' then
`n' to get the message redisplayed restores the correct value of
buffer-file-coding-system.

I suspect that no-conversion comes from the buffer where Rmail holds
the whole collection of messages.


In GNU Emacs 23.0.95.1 (i386-mingw-nt5.1.2600)
 of 2009-06-27 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default-enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  desktop-save-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  line-number-mode: t

Recent input:
- d o n e @ <switch-frame> <switch-frame> e m a c s 
b u g s . d o n a r m s t r o n g . c o m <down> <switch-frame> 
<down> <down> <down> <down> <down> <down> <C-right> 
<C-right> <C-right> <C-right> <C-right> <C-right> <C-left> 
C-SPC C-e M-w <switch-frame> C-y <C-end> D o n e <backspace> 
<backspace> <backspace> <backspace> F i x e d SPC ( 
s e e SPC <switch-frame> M-n M-n <switch-frame> # 3 
4 3 2 SPC f o r SPC d e t a i l s ) . <return> C-c 
C-s <switch-frame> p p d d d d <switch-frame> <switch-frame> 
<switch-frame> <help-echo> <switch-frame> M-1 g <up> 
<up> <return> SPC SPC SPC d d d C-x C-s <help-echo> 
<help-echo> M-p M-n M-p M-p M-p M-n M-n M-n <help-echo> 
C-x C-s <help-echo> <help-echo> <help-echo> M-1 g <up> 
<return> d SPC d C-z C-z C-z C-z C-z C-z C-z C-z C-z 
C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z 
C-z d SPC d SPC d <C-end> C-x C-s M-p M-n <help-echo> 
M-x f i n f <backspace> d - f i l e - l i <tab> <return> 
<up> <return> C-SPC <next> <next> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <up> C-x C-x C-x C-x C-x <return> c u n i <backspace> 
<backspace> <backspace> C-g C-x <return> c <return> 
M-x w r i t e - r e g <tab> <return> m a i l . o n 
e <backspace> <tab> <tab> e <return> C-x k <return> 
C-u g <up> <return> C-x C-s M-x r e p o r t - e m <tab> 
<help-echo> <help-echo> <help-echo> <return>

Recent messages:
Quit
Wrote d:/usr/eli/data/mail.one
Getting mail from d:/usr/eli/data/mail.one...
Counting new messages...done (1)
Saving file d:/usr/eli/rmail/INBOX...
Wrote d:/usr/eli/rmail/INBOX
Computing summary lines...done
1 new message read
Saving file d:/usr/eli/rmail/INBOX...
Wrote d:/usr/eli/rmail/INBOX





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

* bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
  2009-07-08 18:46 ` bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system Eli Zaretskii
@ 2009-07-09  6:05   ` Glenn Morris
  2009-07-11 11:52     ` Eli Zaretskii
  2009-07-19  0:45   ` bug#3790: marked as done (23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system) Emacs bug Tracking System
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-07-09  6:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3790

Eli Zaretskii wrote:

> After typing C-x C-s in an Rmail buffer showing some message,
> buffer-file-coding-system becomes no-conversion, no matter what
> encoding was used to decode and display the message.

I could not reproduce that with a chinese-iso-8bit-unix message.
C-x C-s should just call rmail-write-region-annotate, which does not
do very much.





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

* bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
  2009-07-09  6:05   ` Glenn Morris
@ 2009-07-11 11:52     ` Eli Zaretskii
  2009-07-15 19:47       ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2009-07-11 11:52 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3790

> From: Glenn Morris <rgm@gnu.org>
> Cc: 3790@emacsbugs.donarmstrong.com
> Date: Thu, 09 Jul 2009 02:05:03 -0400
> 
> Eli Zaretskii wrote:
> 
> > After typing C-x C-s in an Rmail buffer showing some message,
> > buffer-file-coding-system becomes no-conversion, no matter what
> > encoding was used to decode and display the message.
> 
> I could not reproduce that with a chinese-iso-8bit-unix message.

It is data-dependent.  Do you see the problem with this message in the
message collection?  The presence of the line with BABYL OPTIONS below
is crucial, and "BABYL OPTIONS" need to be flushed all the way to the
left; a single blank before it makes the problem go away.  (See
auto-coding-regexp-alist for details.)

BABYL OPTIONS: -*- rmail -*-

> C-x C-s should just call rmail-write-region-annotate, which does not
> do very much.

No, it also calls write-region, to actually save the message
collection to disk.  And that calls select-safe-coding-system (via
Vselect_safe_coding_system_function), which in turn calls
find-auto-coding, which calls auto-coding-regexp-alist-lookup, which
sees the "BABYL OPTIONS" string below, and selects no-conversion for
writing the file.

I'm still not sure how no-conversion winds up in the mode line,
though.  Any ideas?





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

* bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
  2009-07-11 11:52     ` Eli Zaretskii
@ 2009-07-15 19:47       ` Glenn Morris
  2009-07-15 20:27         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-07-15 19:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3790

Eli Zaretskii wrote:

> The presence of the line with BABYL OPTIONS below is crucial, and
> "BABYL OPTIONS" need to be flushed all the way to the left; a single
> blank before it makes the problem go away. (See
> auto-coding-regexp-alist for details.)
>
> BABYL OPTIONS: -*- rmail -*-

Isn't this a bug in auto-coding-regexp-alist? Should not the BABYL
entry be anchored with \\`, like the other entries, rather than ^ ?





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

* bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
  2009-07-15 19:47       ` Glenn Morris
@ 2009-07-15 20:27         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2009-07-15 20:27 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 3790

> From: Glenn Morris <rgm@gnu.org>
> Cc: 3790@emacsbugs.donarmstrong.com
> Date: Wed, 15 Jul 2009 15:47:12 -0400
> 
> Eli Zaretskii wrote:
> 
> > The presence of the line with BABYL OPTIONS below is crucial, and
> > "BABYL OPTIONS" need to be flushed all the way to the left; a single
> > blank before it makes the problem go away. (See
> > auto-coding-regexp-alist for details.)
> >
> > BABYL OPTIONS: -*- rmail -*-
> 
> Isn't this a bug in auto-coding-regexp-alist? Should not the BABYL
> entry be anchored with \\`, like the other entries, rather than ^ ?

Looks like that, yes.





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

* bug#3790: marked as done (23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system)
  2009-07-08 18:46 ` bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system Eli Zaretskii
  2009-07-09  6:05   ` Glenn Morris
@ 2009-07-19  0:45   ` Emacs bug Tracking System
  1 sibling, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-07-19  0:45 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]


Your message dated Sat, 18 Jul 2009 20:41:23 -0400
with message-id <7jbpnh1p3g.fsf@fencepost.gnu.org>
and subject line Re: bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
has caused the Emacs bug report #3790,
regarding 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
3790: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3790
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5348 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
Date: Wed, 08 Jul 2009 21:46:51 +0300
Message-ID: <83eisrypus.fsf@gnu.org>

After typing C-x C-s in an Rmail buffer showing some message,
buffer-file-coding-system becomes no-conversion, no matter what
encoding was used to decode and display the message.  Typing `p' then
`n' to get the message redisplayed restores the correct value of
buffer-file-coding-system.

I suspect that no-conversion comes from the buffer where Rmail holds
the whole collection of messages.


In GNU Emacs 23.0.95.1 (i386-mingw-nt5.1.2600)
 of 2009-06-27 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default-enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  desktop-save-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  line-number-mode: t

Recent input:
- d o n e @ <switch-frame> <switch-frame> e m a c s 
b u g s . d o n a r m s t r o n g . c o m <down> <switch-frame> 
<down> <down> <down> <down> <down> <down> <C-right> 
<C-right> <C-right> <C-right> <C-right> <C-right> <C-left> 
C-SPC C-e M-w <switch-frame> C-y <C-end> D o n e <backspace> 
<backspace> <backspace> <backspace> F i x e d SPC ( 
s e e SPC <switch-frame> M-n M-n <switch-frame> # 3 
4 3 2 SPC f o r SPC d e t a i l s ) . <return> C-c 
C-s <switch-frame> p p d d d d <switch-frame> <switch-frame> 
<switch-frame> <help-echo> <switch-frame> M-1 g <up> 
<up> <return> SPC SPC SPC d d d C-x C-s <help-echo> 
<help-echo> M-p M-n M-p M-p M-p M-n M-n M-n <help-echo> 
C-x C-s <help-echo> <help-echo> <help-echo> M-1 g <up> 
<return> d SPC d C-z C-z C-z C-z C-z C-z C-z C-z C-z 
C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z 
C-z d SPC d SPC d <C-end> C-x C-s M-p M-n <help-echo> 
M-x f i n f <backspace> d - f i l e - l i <tab> <return> 
<up> <return> C-SPC <next> <next> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <up> C-x C-x C-x C-x C-x <return> c u n i <backspace> 
<backspace> <backspace> C-g C-x <return> c <return> 
M-x w r i t e - r e g <tab> <return> m a i l . o n 
e <backspace> <tab> <tab> e <return> C-x k <return> 
C-u g <up> <return> C-x C-s M-x r e p o r t - e m <tab> 
<help-echo> <help-echo> <help-echo> <return>

Recent messages:
Quit
Wrote d:/usr/eli/data/mail.one
Getting mail from d:/usr/eli/data/mail.one...
Counting new messages...done (1)
Saving file d:/usr/eli/rmail/INBOX...
Wrote d:/usr/eli/rmail/INBOX
Computing summary lines...done
1 new message read
Saving file d:/usr/eli/rmail/INBOX...
Wrote d:/usr/eli/rmail/INBOX


[-- Attachment #3: Type: message/rfc822, Size: 1828 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 3790-done@emacsbugs.donarmstrong.com
Subject: Re: bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system
Date: Sat, 18 Jul 2009 20:41:23 -0400
Message-ID: <7jbpnh1p3g.fsf@fencepost.gnu.org>


        * international/mule.el (auto-coding-regexp-alist): Only match
        BABYL... at the start of buffer, not of lines.  (Bug#3790)

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

end of thread, other threads:[~2009-07-19  0:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <7jbpnh1p3g.fsf@fencepost.gnu.org>
2009-07-08 18:46 ` bug#3790: 23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system Eli Zaretskii
2009-07-09  6:05   ` Glenn Morris
2009-07-11 11:52     ` Eli Zaretskii
2009-07-15 19:47       ` Glenn Morris
2009-07-15 20:27         ` Eli Zaretskii
2009-07-19  0:45   ` bug#3790: marked as done (23.0.95; C-x C-s in RMAIL buffer clobbers buffer-file-coding-system) Emacs bug Tracking System

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).