GNU bug report logs - #20380
24.5; (shell-command-on-region ... "*Messages*") yields "Buffer is read-only" error

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Mon, 20 Apr 2015 09:11:01 UTC

Severity: minor

Tags: notabug

Found in version 24.5

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 20380 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alexis <flexibeast <at> gmail.com>
Cc: 20380 <at> debbugs.gnu.org
Subject: Re: bug#20380: 24.5;
 (shell-command-on-region ... "*Messages*") yields "Buffer
 is	read-only" error
Date: Mon, 20 Apr 2015 17:50:26 +0300
> From: Alexis <flexibeast <at> gmail.com>
> Date: Mon, 20 Apr 2015 19:51:57 +1000
> 
> 
> Vincent Lefevre <vincent <at> vinc17.net> writes:
> 
> > I have the following problem with Emacs 24:
> >
> > emacs -Q --eval \ 
> >   '(shell-command-on-region (point) (point) "cp" t t 
> >   "*Messages*")' tst.txt
> >
> > yields a "Buffer is read-only: #<buffer *Messages*>" error 
> > instead of outputting the standard error from "cp" to the buffer 
> > *Messages* like with Emacs 23.
> 
> NEWS section "Changes in Emacs 24.4" states: 
>  
>     ** The *Messages* buffer is created in `messages-buffer-mode', 
>     a new major mode, with read-only status.

Indeed, this is a new feature.  If you want to know why it was
introduced, read this discussion:

  http://lists.gnu.org/archive/html/emacs-devel/2010-02/msg00135.html





This bug report was last modified 10 years and 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.