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 #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexis <flexibeast <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#20380: 24.5;
 (shell-command-on-region ... "*Messages*") yields "Buffer is
 read-only" error
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.


Alexis.




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.