all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
@ 2011-02-15 20:14 Eli Zaretskii
  2011-02-15 23:35 ` Glenn Morris
  2011-02-16  0:48 ` Juri Linkov
  0 siblings, 2 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-15 20:14 UTC (permalink / raw)
  To: 8047

 emacs -Q
 C-x C-f FOO.png RET  (or any other image file)
 C-x C-w BAR.png RET

   => save-buffer: Text is read-only

This happens because image-file.el makes the whole buffer displaying
the image read-only.

I think this nuisance should be fixed before Emacs 23.3 is released.


In GNU Emacs 23.2.94.1 (i386-mingw-nt5.1.2600)
 of 2011-02-15 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
  desktop-save-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  line-number-mode: t

Recent input:
C-x b I N B <tab> - <tab> <return> <C-next> <C-next> 
<C-next> <C-next> <C-next> <C-next> <C-next> <C-next> 
<M-end> C-x 5 b * i <tab> 1 > <return> <help-echo> 
<switch-frame> C-x 5 b x d <tab> <return> <switch-frame> 
C-x b <return> C-x C-f i m a g e - f i <tab> <return> 
<next> <next> <next> <next> 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 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 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 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 <prior> <prior> <prior> <prior> 
<prior> <prior> <prior> <next> <next> <next> <next> 
<next> <up> <prior> <next> <next> <next> <prior> <prior> 
C-x b I N B <tab> <return> C-x C-f <M-backspace> d 
a t a / e m a c s - m e n <tab> <return> C-x C-w x 
x . p n g <return> C-x k <return> y e s <return> M-x 
r e p o r t - e m <tab> <return>

Recent messages:
Indentation setup for shell type sh
Setting up indent for shell type sh
setting up indent stuff
Indentation variables are now local.
Indentation setup for shell type sh
Note: file is write protected [3 times]
Wrote d:/usr/eli/.emacs.desktop.lock
Desktop: 260 buffers restored.
Type C-c C-c to view the image as text.
Saving file d:/usr/eli/data/xx.png...
save-buffer: Text is read-only

Load-path shadows:
None found.

Features:
(shadow mailalias sendmail emacsbug image-mode ld-script sh-script
executable dired-x dired-aux dired tcl nxml-uchnm rng-xsd xsd-regexp
rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse
rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln
nxml-rap nxml-util nxml-glyph nxml-enc xmltok sgml-mode arc-mode
archive-mode parse-time conf-mode newcomment tar-mode add-log generic
vc-cvs diff-mode jka-compr texinfo org-wl org-w3m org-vm org-rmail
org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp
org-exp-blocks org-agenda org-info org-gnus org-bibtex org-bbdb org
byte-opt warnings bytecomp byte-compile advice help-fns advice-preload
org-footnote org-src org-list org-faces org-compat org-macs make-mode
gud comint ring flyspell ispell noutline outline easy-mmode autorevert
info vc-bzr cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs regexp-opt rmailsum rmailmm message
ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode
mm-bodies mm-encode mailcap mailabbrev nnheader gnus-util netrc
gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash
mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums time-date qp
mm-util mail-prsvr mail-utils desktop server filecache saveplace
generic-x paren battery time tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process multi-tty emacs)





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-15 20:14 bug#8047: 23.2.94; Auto image mode breaks C-x C-w Eli Zaretskii
@ 2011-02-15 23:35 ` Glenn Morris
  2011-02-16  4:10   ` Eli Zaretskii
  2011-02-16  0:48 ` Juri Linkov
  1 sibling, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2011-02-15 23:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8047

Eli Zaretskii wrote:

>  emacs -Q
>  C-x C-f FOO.png RET  (or any other image file)
>  C-x C-w BAR.png RET
>
>    => save-buffer: Text is read-only

I don't see this in current emacs-23 or trunk on GNU/Linux.

Even if I manually enable auto-image-file-mode (mentioned in your
subject, it is not on by default), I don't see it. I also have no
problem using C-x C-w in read-only buffers.

> In GNU Emacs 23.2.94.1 (i386-mingw-nt5.1.2600)
>  of 2011-02-15 on HOME-C4E4A596F7





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-15 20:14 bug#8047: 23.2.94; Auto image mode breaks C-x C-w Eli Zaretskii
  2011-02-15 23:35 ` Glenn Morris
@ 2011-02-16  0:48 ` Juri Linkov
  2011-02-16  4:13   ` Eli Zaretskii
  1 sibling, 1 reply; 43+ messages in thread
From: Juri Linkov @ 2011-02-16  0:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8047

>  emacs -Q
>  C-x C-f FOO.png RET  (or any other image file)
>  C-x C-w BAR.png RET
>
>    => save-buffer: Text is read-only
>
> This happens because image-file.el makes the whole buffer displaying
> the image read-only.
>
> I think this nuisance should be fixed before Emacs 23.3 is released.

It seems what you mean is image-mode.el, not image-file.el.

image-mode is intended for viewing images, not editing.
(I suppose `C-x C-w' is an editing command.)

When you want to edit textual representation of the image,
you can toggle `image-minor-mode' with `C-c C-c'.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-15 23:35 ` Glenn Morris
@ 2011-02-16  4:10   ` Eli Zaretskii
  2011-02-16  4:56     ` Glenn Morris
                       ` (2 more replies)
  0 siblings, 3 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-16  4:10 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 8047

> From: Glenn Morris <rgm@gnu.org>
> Cc: 8047@debbugs.gnu.org
> Date: Tue, 15 Feb 2011 18:35:04 -0500
> 
> Eli Zaretskii wrote:
> 
> >  emacs -Q
> >  C-x C-f FOO.png RET  (or any other image file)
> >  C-x C-w BAR.png RET
> >
> >    => save-buffer: Text is read-only
> 
> I don't see this in current emacs-23 or trunk on GNU/Linux.

Set require-final-newline non-nil, and you will.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16  0:48 ` Juri Linkov
@ 2011-02-16  4:13   ` Eli Zaretskii
  0 siblings, 0 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-16  4:13 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 8047

> From: Juri Linkov <juri@jurta.org>
> Cc: 8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 02:48:33 +0200
> 
> image-mode is intended for viewing images, not editing.
> (I suppose `C-x C-w' is an editing command.)

Huh?  C-x C-w is a command to write the current buffer to a specified
file.  It doesn't edit anything.

> When you want to edit textual representation of the image,
> you can toggle `image-minor-mode' with `C-c C-c'.

That's unreasonable: visiting an image file automatically shows it as
an image, so from a user perspective, I simply visited a file and want
to save it to another file.  A practical use-case would be to display
an image file from a compressed archive, then write it to a file, thus
effectively extracting it from the archive.  I know about C-c C-c, but
it's a nuisance, and shouldn't be required, IMO.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16  4:10   ` Eli Zaretskii
@ 2011-02-16  4:56     ` Glenn Morris
  2011-02-16 10:11     ` Andreas Schwab
  2011-02-16 14:40     ` Stefan Monnier
  2 siblings, 0 replies; 43+ messages in thread
From: Glenn Morris @ 2011-02-16  4:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8047

Eli Zaretskii wrote:

> Set require-final-newline non-nil, and you will.

Well, I wasn't going to guess that.

Anyway, Emacs back to at least 22.1 behaves the same, so I disagree that
this needs fixing before 23.3. (IMO the bug is for Emacs to try and add
a newline to a binary file, so it's perhaps doing you a service by
barfing...)





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16  4:10   ` Eli Zaretskii
  2011-02-16  4:56     ` Glenn Morris
@ 2011-02-16 10:11     ` Andreas Schwab
  2011-02-16 11:19       ` Lennart Borgman
  2011-02-16 14:40     ` Stefan Monnier
  2 siblings, 1 reply; 43+ messages in thread
From: Andreas Schwab @ 2011-02-16 10:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8047

Eli Zaretskii <eliz@gnu.org> writes:

>> Eli Zaretskii wrote:
>> 
>> >  emacs -Q
>> >  C-x C-f FOO.png RET  (or any other image file)
>> >  C-x C-w BAR.png RET
>> >
>> >    => save-buffer: Text is read-only
>> 
>> I don't see this in current emacs-23 or trunk on GNU/Linux.
>
> Set require-final-newline non-nil, and you will.

Don't do that then.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 10:11     ` Andreas Schwab
@ 2011-02-16 11:19       ` Lennart Borgman
  2011-02-16 12:33         ` Andreas Schwab
  0 siblings, 1 reply; 43+ messages in thread
From: Lennart Borgman @ 2011-02-16 11:19 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8047

On Wed, Feb 16, 2011 at 11:11 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> Eli Zaretskii wrote:
>>>
>>> >  emacs -Q
>>> >  C-x C-f FOO.png RET  (or any other image file)
>>> >  C-x C-w BAR.png RET
>>> >
>>> >    => save-buffer: Text is read-only
>>>
>>> I don't see this in current emacs-23 or trunk on GNU/Linux.
>>
>> Set require-final-newline non-nil, and you will.
>
> Don't do that then.

;-)

Do you suggest removing the option?





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 11:19       ` Lennart Borgman
@ 2011-02-16 12:33         ` Andreas Schwab
  2011-02-16 12:36           ` Lennart Borgman
  2011-02-16 12:45           ` Deniz Dogan
  0 siblings, 2 replies; 43+ messages in thread
From: Andreas Schwab @ 2011-02-16 12:33 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 8047

Lennart Borgman <lennart.borgman@gmail.com> writes:

> Do you suggest removing the option?

Why do you think so?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 12:33         ` Andreas Schwab
@ 2011-02-16 12:36           ` Lennart Borgman
  2011-02-16 12:57             ` Andreas Schwab
  2011-02-16 12:45           ` Deniz Dogan
  1 sibling, 1 reply; 43+ messages in thread
From: Lennart Borgman @ 2011-02-16 12:36 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8047

On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Do you suggest removing the option?
>
> Why do you think so?

What good is an option for if you should avoiding changing it? ;-)





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 12:33         ` Andreas Schwab
  2011-02-16 12:36           ` Lennart Borgman
@ 2011-02-16 12:45           ` Deniz Dogan
  1 sibling, 0 replies; 43+ messages in thread
From: Deniz Dogan @ 2011-02-16 12:45 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8047

2011/2/16 Andreas Schwab <schwab@linux-m68k.org>:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Do you suggest removing the option?
>
> Why do you think so?
>

Wouldn't it be great if we all just said what was on our minds?





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 12:36           ` Lennart Borgman
@ 2011-02-16 12:57             ` Andreas Schwab
  2011-02-16 13:03               ` Lennart Borgman
  0 siblings, 1 reply; 43+ messages in thread
From: Andreas Schwab @ 2011-02-16 12:57 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 8047

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>
>>> Do you suggest removing the option?
>>
>> Why do you think so?
>
> What good is an option for if you should avoiding changing it? ;-)

Where did I say that?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 12:57             ` Andreas Schwab
@ 2011-02-16 13:03               ` Lennart Borgman
  2011-02-16 13:17                 ` Andreas Schwab
  0 siblings, 1 reply; 43+ messages in thread
From: Lennart Borgman @ 2011-02-16 13:03 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8047

On Wed, Feb 16, 2011 at 1:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>
>>>> Do you suggest removing the option?
>>>
>>> Why do you think so?
>>
>> What good is an option for if you should avoiding changing it? ;-)
>
> Where did I say that?

In your response to Eli.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 13:03               ` Lennart Borgman
@ 2011-02-16 13:17                 ` Andreas Schwab
  2011-02-16 13:19                   ` Lennart Borgman
  0 siblings, 1 reply; 43+ messages in thread
From: Andreas Schwab @ 2011-02-16 13:17 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 8047

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Wed, Feb 16, 2011 at 1:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>
>>> On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>>
>>>>> Do you suggest removing the option?
>>>>
>>>> Why do you think so?
>>>
>>> What good is an option for if you should avoiding changing it? ;-)
>>
>> Where did I say that?
>
> In your response to Eli.

I don't see that.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 13:17                 ` Andreas Schwab
@ 2011-02-16 13:19                   ` Lennart Borgman
  2011-02-16 13:30                     ` Andreas Schwab
  0 siblings, 1 reply; 43+ messages in thread
From: Lennart Borgman @ 2011-02-16 13:19 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8047

On Wed, Feb 16, 2011 at 2:17 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Wed, Feb 16, 2011 at 1:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>
>>>> On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>>>
>>>>>> Do you suggest removing the option?
>>>>>
>>>>> Why do you think so?
>>>>
>>>> What good is an option for if you should avoiding changing it? ;-)
>>>
>>> Where did I say that?
>>
>> In your response to Eli.
>
> I don't see that.

So what did you mean here then?:

>> Set require-final-newline non-nil, and you will.
>
> Don't do that then.
>
> Andreas.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 13:19                   ` Lennart Borgman
@ 2011-02-16 13:30                     ` Andreas Schwab
  2011-02-16 13:37                       ` Lennart Borgman
  0 siblings, 1 reply; 43+ messages in thread
From: Andreas Schwab @ 2011-02-16 13:30 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 8047

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Wed, Feb 16, 2011 at 2:17 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>
>>> On Wed, Feb 16, 2011 at 1:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>>
>>>>> On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>>>>
>>>>>>> Do you suggest removing the option?
>>>>>>
>>>>>> Why do you think so?
>>>>>
>>>>> What good is an option for if you should avoiding changing it? ;-)
>>>>
>>>> Where did I say that?
>>>
>>> In your response to Eli.
>>
>> I don't see that.
>
> So what did you mean here then?:
>
>>> Set require-final-newline non-nil, and you will.
>>
>> Don't do that then.
>>
>> Andreas.
>

Where did I suggest removing the option?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 13:30                     ` Andreas Schwab
@ 2011-02-16 13:37                       ` Lennart Borgman
  0 siblings, 0 replies; 43+ messages in thread
From: Lennart Borgman @ 2011-02-16 13:37 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 8047

On Wed, Feb 16, 2011 at 2:30 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Wed, Feb 16, 2011 at 2:17 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>
>>>> On Wed, Feb 16, 2011 at 1:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>>>
>>>>>> On Wed, Feb 16, 2011 at 1:33 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>>>>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>>>>>>
>>>>>>>> Do you suggest removing the option?
>>>>>>>
>>>>>>> Why do you think so?
>>>>>>
>>>>>> What good is an option for if you should avoiding changing it? ;-)
>>>>>
>>>>> Where did I say that?
>>>>
>>>> In your response to Eli.
>>>
>>> I don't see that.
>>
>> So what did you mean here then?:
>>
>>>> Set require-final-newline non-nil, and you will.
>>>
>>> Don't do that then.
>>>
>>> Andreas.
>>
>
> Where did I suggest removing the option?

I suggest that you suggested it there. And I suggest that you agree
with me so we can stop this ;-)





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16  4:10   ` Eli Zaretskii
  2011-02-16  4:56     ` Glenn Morris
  2011-02-16 10:11     ` Andreas Schwab
@ 2011-02-16 14:40     ` Stefan Monnier
  2011-02-16 17:57       ` Eli Zaretskii
  2 siblings, 1 reply; 43+ messages in thread
From: Stefan Monnier @ 2011-02-16 14:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8047

>> >  emacs -Q
>> >  C-x C-f FOO.png RET  (or any other image file)
>> >  C-x C-w BAR.png RET
>> >
>> >    => save-buffer: Text is read-only
>> I don't see this in current emacs-23 or trunk on GNU/Linux.
> Set require-final-newline non-nil, and you will.

Even if it's set to `ask'?
As for the actual fix, maybe require-final-newline should be ignored
when the encoding is `binary'?


        Stefan





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 14:40     ` Stefan Monnier
@ 2011-02-16 17:57       ` Eli Zaretskii
  2011-02-16 18:35         ` Glenn Morris
  2011-02-16 20:03         ` Eli Zaretskii
  0 siblings, 2 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-16 17:57 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 8047

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Glenn Morris <rgm@gnu.org>,  8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 09:40:23 -0500
> 
> >> >  emacs -Q
> >> >  C-x C-f FOO.png RET  (or any other image file)
> >> >  C-x C-w BAR.png RET
> >> >
> >> >    => save-buffer: Text is read-only
> >> I don't see this in current emacs-23 or trunk on GNU/Linux.
> > Set require-final-newline non-nil, and you will.
> 
> Even if it's set to `ask'?

Of course not.

> As for the actual fix, maybe require-final-newline should be ignored
> when the encoding is `binary'?

That's what I have in mind; feel free to beat me to it, because I
don't buy the argument that since this was so in Emacs 22, we need to
live with it until 24.1.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 17:57       ` Eli Zaretskii
@ 2011-02-16 18:35         ` Glenn Morris
  2011-02-16 20:03         ` Eli Zaretskii
  1 sibling, 0 replies; 43+ messages in thread
From: Glenn Morris @ 2011-02-16 18:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8047

Eli Zaretskii wrote:

> That's what I have in mind; feel free to beat me to it, because I
> don't buy the argument that since this was so in Emacs 22, we need to
> live with it until 24.1.

That was meant to be a reference to policy, not an argument.

http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00649.html

    Developers: please note that the emacs-23 branch is now in hard
    freeze. Commits should be for regressions against 23.2, or
    documentation bugs, only.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 17:57       ` Eli Zaretskii
  2011-02-16 18:35         ` Glenn Morris
@ 2011-02-16 20:03         ` Eli Zaretskii
  2011-02-16 20:58           ` Stefan Monnier
                             ` (2 more replies)
  1 sibling, 3 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-16 20:03 UTC (permalink / raw)
  To: Stefan Monnier, Chong Yidong; +Cc: 8047

> Date: Wed, 16 Feb 2011 19:57:19 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 8047@debbugs.gnu.org
> 
> > As for the actual fix, maybe require-final-newline should be ignored
> > when the encoding is `binary'?
> 
> That's what I have in mind; feel free to beat me to it, because I
> don't buy the argument that since this was so in Emacs 22, we need to
> live with it until 24.1.

However, since emacs-23 is in deep freeze, I would like to suggest an
even more conservative change, see below.  This one affects only
image-mode buffers that display image files.

Chong, is this okay to install on the release branch, even though the
bug predates Emacs 23.2?


--- lisp/image-mode.el~	2011-02-15 21:32:39.565125000 +0200
+++ lisp/image-mode.el	2011-02-16 21:55:04.190125000 +0200
@@ -507,6 +507,9 @@ (defun image-toggle-display-image ()
     ;; This just makes the arrow displayed in the right fringe
     ;; area look correct when the image is wider than the window.
     (setq truncate-lines t)
+    ;; Disable adding a newline at the end of the image file when it
+    ;; is written with, e.g., C-x C-w.
+    (setq find-file-literally t)
     ;; Allow navigation of large images
     (set (make-local-variable 'auto-hscroll-mode) nil)
     (setq image-type type)





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 20:03         ` Eli Zaretskii
@ 2011-02-16 20:58           ` Stefan Monnier
  2011-02-16 21:08             ` Eli Zaretskii
  2011-02-16 21:08           ` bug#8047: 23.2.94; Auto image mode breaks C-x C-w Glenn Morris
  2011-02-16 21:43           ` Glenn Morris
  2 siblings, 1 reply; 43+ messages in thread
From: Stefan Monnier @ 2011-02-16 20:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Chong Yidong, 8047

> --- lisp/image-mode.el~	2011-02-15 21:32:39.565125000 +0200
> +++ lisp/image-mode.el	2011-02-16 21:55:04.190125000 +0200
> @@ -507,6 +507,9 @@ (defun image-toggle-display-image ()
>      ;; This just makes the arrow displayed in the right fringe
>      ;; area look correct when the image is wider than the window.
>      (setq truncate-lines t)
> +    ;; Disable adding a newline at the end of the image file when it
> +    ;; is written with, e.g., C-x C-w.
> +    (setq find-file-literally t)
>      ;; Allow navigation of large images
>      (set (make-local-variable 'auto-hscroll-mode) nil)
>      (setq image-type type)

Is this really as safe as it seems?  I mean, what happens when you visit
an XPM, PS, or SVG file encoded in utf-8?


        Stefan





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 20:58           ` Stefan Monnier
@ 2011-02-16 21:08             ` Eli Zaretskii
  2011-02-17  1:50               ` Stefan Monnier
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-16 21:08 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cyd, 8047

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Chong Yidong <cyd@stupidchicken.com>,  8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 15:58:55 -0500
> 
> what happens when you visit an XPM, PS, or SVG file encoded in
> utf-8?

Maybe I'm missing something, but I don't think anything will happen
that doesn't happen already.  Care to elaborate what you had in mind?





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 20:03         ` Eli Zaretskii
  2011-02-16 20:58           ` Stefan Monnier
@ 2011-02-16 21:08           ` Glenn Morris
  2011-02-17  3:58             ` Eli Zaretskii
  2011-02-16 21:43           ` Glenn Morris
  2 siblings, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2011-02-16 21:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Chong Yidong, 8047

Eli Zaretskii wrote:

> +    ;; Disable adding a newline at the end of the image file when it
> +    ;; is written with, e.g., C-x C-w.
> +    (setq find-file-literally t)

You would need to make it buffer-local.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 20:03         ` Eli Zaretskii
  2011-02-16 20:58           ` Stefan Monnier
  2011-02-16 21:08           ` bug#8047: 23.2.94; Auto image mode breaks C-x C-w Glenn Morris
@ 2011-02-16 21:43           ` Glenn Morris
  2011-02-17  4:00             ` Eli Zaretskii
  2 siblings, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2011-02-16 21:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Chong Yidong, 8047

Eli Zaretskii wrote:

> However, since emacs-23 is in deep freeze, I would like to suggest an
> even more conservative change, see below. 

This seems a lot less conservative than setting require-final-newline
to nil at exactly the same location.

> +    ;; Disable adding a newline at the end of the image file when it
> +    ;; is written with, e.g., C-x C-w.
> +    (setq find-file-literally t)





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 21:08             ` Eli Zaretskii
@ 2011-02-17  1:50               ` Stefan Monnier
  2011-02-17  4:01                 ` Eli Zaretskii
  0 siblings, 1 reply; 43+ messages in thread
From: Stefan Monnier @ 2011-02-17  1:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, 8047

>> what happens when you visit an XPM, PS, or SVG file encoded in
>> utf-8?
> Maybe I'm missing something, but I don't think anything will happen
> that doesn't happen already.  Care to elaborate what you had in mind?

These aren't "binary files", so setting find-file-literally may have
undesired effects.  E.g. the coding cookie will be ignored upon save,
even though such files might like to use them.  Those will also like to
obey require-final-newline, BTW.

So I suggest to set find-file-literally only in the case where
buffer-file-coding-system is `no-conversion'.


        Stefan





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 21:08           ` bug#8047: 23.2.94; Auto image mode breaks C-x C-w Glenn Morris
@ 2011-02-17  3:58             ` Eli Zaretskii
  2011-02-17  4:34               ` Glenn Morris
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-17  3:58 UTC (permalink / raw)
  To: Glenn Morris; +Cc: cyd, 8047

> From: Glenn Morris <rgm@gnu.org>
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>,  Chong Yidong <cyd@stupidchicken.com>,  8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 16:08:55 -0500
> 
> Eli Zaretskii wrote:
> 
> > +    ;; Disable adding a newline at the end of the image file when it
> > +    ;; is written with, e.g., C-x C-w.
> > +    (setq find-file-literally t)
> 
> You would need to make it buffer-local.

??? It's permanently local already, see its doc string.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-16 21:43           ` Glenn Morris
@ 2011-02-17  4:00             ` Eli Zaretskii
  0 siblings, 0 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-17  4:00 UTC (permalink / raw)
  To: Glenn Morris; +Cc: cyd, 8047

> From: Glenn Morris <rgm@gnu.org>
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>,  Chong Yidong <cyd@stupidchicken.com>,  8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 16:43:56 -0500
> 
> Eli Zaretskii wrote:
> 
> > However, since emacs-23 is in deep freeze, I would like to suggest an
> > even more conservative change, see below. 
> 
> This seems a lot less conservative than setting require-final-newline
> to nil at exactly the same location.

I'm okay with that as well.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17  1:50               ` Stefan Monnier
@ 2011-02-17  4:01                 ` Eli Zaretskii
  2011-02-18  9:44                   ` Eli Zaretskii
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-17  4:01 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cyd, 8047

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: cyd@stupidchicken.com,  8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 20:50:20 -0500
> 
> So I suggest to set find-file-literally only in the case where
> buffer-file-coding-system is `no-conversion'.

Fine with me.

So do you prefer the above, or do you prefer Glenn's suggestion to set
require-final-newline instead?





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17  3:58             ` Eli Zaretskii
@ 2011-02-17  4:34               ` Glenn Morris
  2011-02-17 10:38                 ` Eli Zaretskii
  0 siblings, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2011-02-17  4:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, 8047

Eli Zaretskii wrote:

>> You would need to make it buffer-local.
>
> ??? It's permanently local already, see its doc string.

If you test your proposed patch, you will find it sets the global value.
It is permanently local, *once made buffer local*.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17  4:34               ` Glenn Morris
@ 2011-02-17 10:38                 ` Eli Zaretskii
  2011-02-17 20:10                   ` Stefan Monnier
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-17 10:38 UTC (permalink / raw)
  To: Glenn Morris; +Cc: cyd, 8047

> From: Glenn Morris <rgm@gnu.org>
> Cc: monnier@iro.umontreal.ca,  cyd@stupidchicken.com,  8047@debbugs.gnu.org
> Date: Wed, 16 Feb 2011 23:34:43 -0500
> 
> Eli Zaretskii wrote:
> 
> >> You would need to make it buffer-local.
> >
> > ??? It's permanently local already, see its doc string.
> 
> If you test your proposed patch, you will find it sets the global value.

I tested it, just not deep enough ;-)

> It is permanently local, *once made buffer local*.

Turns out I had a fundamental misunderstanding of what "permanently
local" means.  The fact that the Elisp manual is silent about that
does not help.  Is there something beyond the fact that
kill-all-local-variables doesn't touch them, or is that all there is
to it?





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17 10:38                 ` Eli Zaretskii
@ 2011-02-17 20:10                   ` Stefan Monnier
  2011-02-17 20:40                     ` Lennart Borgman
  2011-02-18 10:24                     ` Eli Zaretskii
  0 siblings, 2 replies; 43+ messages in thread
From: Stefan Monnier @ 2011-02-17 20:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, 8047

> does not help.  Is there something beyond the fact that
> kill-all-local-variables doesn't touch them, or is that all there is
> to it?

That's all there is to them,


        Stefan





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17 20:10                   ` Stefan Monnier
@ 2011-02-17 20:40                     ` Lennart Borgman
  2011-02-18 10:24                     ` Eli Zaretskii
  1 sibling, 0 replies; 43+ messages in thread
From: Lennart Borgman @ 2011-02-17 20:40 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cyd, 8047

On Thu, Feb 17, 2011 at 9:10 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> does not help.  Is there something beyond the fact that
>> kill-all-local-variables doesn't touch them, or is that all there is
>> to it?
>
> That's all there is to them,

Though it might be worth noting that local-permanent-hook has a bit
more complicated semantics.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17  4:01                 ` Eli Zaretskii
@ 2011-02-18  9:44                   ` Eli Zaretskii
  2011-02-18 17:24                     ` Stefan Monnier
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-18  9:44 UTC (permalink / raw)
  To: monnier, cyd; +Cc: 8047

> Date: Thu, 17 Feb 2011 06:01:31 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: cyd@stupidchicken.com, 8047@debbugs.gnu.org
> 
> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Cc: cyd@stupidchicken.com,  8047@debbugs.gnu.org
> > Date: Wed, 16 Feb 2011 20:50:20 -0500
> > 
> > So I suggest to set find-file-literally only in the case where
> > buffer-file-coding-system is `no-conversion'.
> 
> Fine with me.
> 
> So do you prefer the above, or do you prefer Glenn's suggestion to set
> require-final-newline instead?

Ping!

Please say if you agree to install this change on the emacs-23 branch,
and also which of the solutions (setting require-final-newline or
find-file-literally) you prefer (both will be made buffer-local).  I
don't want to do this on my own so close to the release.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-17 20:10                   ` Stefan Monnier
  2011-02-17 20:40                     ` Lennart Borgman
@ 2011-02-18 10:24                     ` Eli Zaretskii
  1 sibling, 0 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-18 10:24 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cyd, 8047

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Glenn Morris <rgm@gnu.org>,  cyd@stupidchicken.com,  8047@debbugs.gnu.org
> Date: Thu, 17 Feb 2011 15:10:55 -0500
> 
> > does not help.  Is there something beyond the fact that
> > kill-all-local-variables doesn't touch them, or is that all there is
> > to it?
> 
> That's all there is to them,

So documented.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-18  9:44                   ` Eli Zaretskii
@ 2011-02-18 17:24                     ` Stefan Monnier
  2011-02-18 18:00                       ` Eli Zaretskii
  0 siblings, 1 reply; 43+ messages in thread
From: Stefan Monnier @ 2011-02-18 17:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, 8047

>> > So I suggest to set find-file-literally only in the case where
>> > buffer-file-coding-system is `no-conversion'.
>> Fine with me.
>> So do you prefer the above, or do you prefer Glenn's suggestion to set
>> require-final-newline instead?
> Please say if you agree to install this change on the emacs-23 branch,
> and also which of the solutions (setting require-final-newline or
> find-file-literally) you prefer (both will be made buffer-local).  I
> don't want to do this on my own so close to the release.

I think find-file-literally is more right, but require-final-newline is
safer, so I suggest to use require-final-newline in the emacs-23 branch
and find-file-literally in the trunk.


        Stefan





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-18 17:24                     ` Stefan Monnier
@ 2011-02-18 18:00                       ` Eli Zaretskii
  2011-02-19  3:38                         ` Glenn Morris
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-18 18:00 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cyd, 8047

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: cyd@stupidchicken.com, 8047@debbugs.gnu.org
> Date: Fri, 18 Feb 2011 12:24:50 -0500
> 
> >> > So I suggest to set find-file-literally only in the case where
> >> > buffer-file-coding-system is `no-conversion'.
> >> Fine with me.
> >> So do you prefer the above, or do you prefer Glenn's suggestion to set
> >> require-final-newline instead?
> > Please say if you agree to install this change on the emacs-23 branch,
> > and also which of the solutions (setting require-final-newline or
> > find-file-literally) you prefer (both will be made buffer-local).  I
> > don't want to do this on my own so close to the release.
> 
> I think find-file-literally is more right, but require-final-newline is
> safer, so I suggest to use require-final-newline in the emacs-23 branch
> and find-file-literally in the trunk.

Done.





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

* bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-18 18:00                       ` Eli Zaretskii
@ 2011-02-19  3:38                         ` Glenn Morris
  2011-02-19  8:34                           ` Eli Zaretskii
  0 siblings, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2011-02-19  3:38 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, Stefan Monnier, 8047

Eli Zaretskii wrote:

>> I think find-file-literally is more right, but require-final-newline is
>> safer, so I suggest to use require-final-newline in the emacs-23 branch
>> and find-file-literally in the trunk.
>
> Done.

If you fix the same thing two different ways at the same time in trunk
and branch, please try to mark the branch commit with "do not merge to
trunk". It can be confusing if someone tries to merge branch to trunk
several days later and is not familiar with the code in question.





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

* Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-19  3:38                         ` Glenn Morris
@ 2011-02-19  8:34                           ` Eli Zaretskii
  2011-02-19  9:31                             ` Stephen J. Turnbull
  2011-02-19 19:25                             ` marking commits not to be merged after the fact [was Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w] Glenn Morris
  0 siblings, 2 replies; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-19  8:34 UTC (permalink / raw)
  To: Glenn Morris; +Cc: cyd, monnier, emacs-devel

> From: Glenn Morris <rgm@gnu.org>
> Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>,  cyd@stupidchicken.com,  8047@debbugs.gnu.org
> Date: Fri, 18 Feb 2011 22:38:30 -0500
> 
> If you fix the same thing two different ways at the same time in trunk
> and branch, please try to mark the branch commit with "do not merge to
> trunk".

Yes, I know I should.  I even told myself not to forget before typing
the commands, and I still forgot.  Sorry.

I wonder if we can invent some way of doing this without relying on
people's memory so much.  Or at least have a way of doing something
_after_ the commit to help the merge, if I do forget.



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

* Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w
  2011-02-19  8:34                           ` Eli Zaretskii
@ 2011-02-19  9:31                             ` Stephen J. Turnbull
  2011-02-19 19:25                             ` marking commits not to be merged after the fact [was Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w] Glenn Morris
  1 sibling, 0 replies; 43+ messages in thread
From: Stephen J. Turnbull @ 2011-02-19  9:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, monnier, emacs-devel

Eli Zaretskii writes:

 > I wonder if we can invent some way of doing this without relying on
 > people's memory so much.  Or at least have a way of doing something
 > _after_ the commit to help the merge, if I do forget.

I think I've suggested this before, but AFAIK svnmerge.py is a good
tool for this, if you're using svn.  The Python folks are planning to
port it to Mercurial, so it should also be port-able to Bazaar.

I do not know how much code and/or delicate design is involved (I've
never needed such a tool in my own work), but presumably something
similar could be done in Emacs Lisp if requiring Yet Another 3rd-Party
Tool doesn't float your boat.




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

* marking commits not to be merged after the fact [was Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w]
  2011-02-19  8:34                           ` Eli Zaretskii
  2011-02-19  9:31                             ` Stephen J. Turnbull
@ 2011-02-19 19:25                             ` Glenn Morris
  2011-02-19 20:52                               ` Eli Zaretskii
  1 sibling, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2011-02-19 19:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, monnier, emacs-devel

Eli Zaretskii wrote:

> Or at least have a way of doing something _after_ the commit to help
> the merge, if I do forget.

You can add an entry to bzrmerge-skip-regexp that only matches your
commit and no other. :)
I can't think of anything else you can do... except immediately do the
merge yourself (not necessary in this case!) :)



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

* Re: marking commits not to be merged after the fact [was Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w]
  2011-02-19 19:25                             ` marking commits not to be merged after the fact [was Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w] Glenn Morris
@ 2011-02-19 20:52                               ` Eli Zaretskii
  2011-02-19 21:23                                 ` marking commits not to be merged after the fact Glenn Morris
  0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2011-02-19 20:52 UTC (permalink / raw)
  To: Glenn Morris; +Cc: cyd, monnier, emacs-devel

> From: Glenn Morris <rgm@gnu.org>
> Cc: monnier@IRO.UMontreal.CA,  cyd@stupidchicken.com,  emacs-devel@gnu.org
> Date: Sat, 19 Feb 2011 14:25:46 -0500
> 
> I can't think of anything else you can do... except immediately do the
> merge yourself (not necessary in this case!) :)

How about admin/merge-ignore-versions file, where one could put
numbers of versions to not merge?  Then admin/bzrmerge.el could look
in that file, in addition to applying bzrmerge-skip-regexp.



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

* Re: marking commits not to be merged after the fact
  2011-02-19 20:52                               ` Eli Zaretskii
@ 2011-02-19 21:23                                 ` Glenn Morris
  0 siblings, 0 replies; 43+ messages in thread
From: Glenn Morris @ 2011-02-19 21:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, monnier, emacs-devel

Eli Zaretskii wrote:

> How about admin/merge-ignore-versions file, where one could put
> numbers of versions to not merge?  Then admin/bzrmerge.el could look
> in that file, in addition to applying bzrmerge-skip-regexp.

Yes, perhaps. And maybe it could automatically delete revs from that
list if they are earlier than the latest revno it merged up to.



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

end of thread, other threads:[~2011-02-19 21:23 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 20:14 bug#8047: 23.2.94; Auto image mode breaks C-x C-w Eli Zaretskii
2011-02-15 23:35 ` Glenn Morris
2011-02-16  4:10   ` Eli Zaretskii
2011-02-16  4:56     ` Glenn Morris
2011-02-16 10:11     ` Andreas Schwab
2011-02-16 11:19       ` Lennart Borgman
2011-02-16 12:33         ` Andreas Schwab
2011-02-16 12:36           ` Lennart Borgman
2011-02-16 12:57             ` Andreas Schwab
2011-02-16 13:03               ` Lennart Borgman
2011-02-16 13:17                 ` Andreas Schwab
2011-02-16 13:19                   ` Lennart Borgman
2011-02-16 13:30                     ` Andreas Schwab
2011-02-16 13:37                       ` Lennart Borgman
2011-02-16 12:45           ` Deniz Dogan
2011-02-16 14:40     ` Stefan Monnier
2011-02-16 17:57       ` Eli Zaretskii
2011-02-16 18:35         ` Glenn Morris
2011-02-16 20:03         ` Eli Zaretskii
2011-02-16 20:58           ` Stefan Monnier
2011-02-16 21:08             ` Eli Zaretskii
2011-02-17  1:50               ` Stefan Monnier
2011-02-17  4:01                 ` Eli Zaretskii
2011-02-18  9:44                   ` Eli Zaretskii
2011-02-18 17:24                     ` Stefan Monnier
2011-02-18 18:00                       ` Eli Zaretskii
2011-02-19  3:38                         ` Glenn Morris
2011-02-19  8:34                           ` Eli Zaretskii
2011-02-19  9:31                             ` Stephen J. Turnbull
2011-02-19 19:25                             ` marking commits not to be merged after the fact [was Re: bug#8047: 23.2.94; Auto image mode breaks C-x C-w] Glenn Morris
2011-02-19 20:52                               ` Eli Zaretskii
2011-02-19 21:23                                 ` marking commits not to be merged after the fact Glenn Morris
2011-02-16 21:08           ` bug#8047: 23.2.94; Auto image mode breaks C-x C-w Glenn Morris
2011-02-17  3:58             ` Eli Zaretskii
2011-02-17  4:34               ` Glenn Morris
2011-02-17 10:38                 ` Eli Zaretskii
2011-02-17 20:10                   ` Stefan Monnier
2011-02-17 20:40                     ` Lennart Borgman
2011-02-18 10:24                     ` Eli Zaretskii
2011-02-16 21:43           ` Glenn Morris
2011-02-17  4:00             ` Eli Zaretskii
2011-02-16  0:48 ` Juri Linkov
2011-02-16  4:13   ` Eli Zaretskii

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.