GNU bug report logs - #7513
24.0.50; shell-command-default-error-buffer should always append to the bottom

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 28 Nov 2010 23:06:03 UTC

Severity: wishlist

Tags: fixed

Found in version 24.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7513 in the body.
You can then email your comments to 7513 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, rfrancoise <at> debian.org, bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Sun, 28 Nov 2010 23:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to rfrancoise <at> debian.org, bug-gnu-emacs <at> gnu.org. (Sun, 28 Nov 2010 23:06:03 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50;
	shell-command-default-error-buffer should always append to the bottom
Date: Mon, 29 Nov 2010 02:39:18 +0800
(info "(emacs) Single Shell") and
(describe-variable 'shell-command-default-error-buffer)
should mention that the errors accumulate in that buffer, and are not
wiped clean at each new command. Also mention they are separate by
form-feeds (^L).

Also the main reason I'm writing this bug report is currently
     `M-!' and `M-|' insert error output before point in that buffer.
But that often leads to jumbled output. They should always append to the
bottom! Like the view-echo-area-messages *Message* buffer.

Or have a variable for those who for some reason want output at a
different position, but bottom should be the default.
(emacs-snapshot package, version 1:20101120-1)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Wed, 21 Aug 2019 22:06:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: jidanni <at> jidanni.org
Cc: rfrancoise <at> debian.org, 7513 <at> debbugs.gnu.org
Subject: Re: bug#7513: 24.0.50; shell-command-default-error-buffer should
 always append to the bottom
Date: Wed, 21 Aug 2019 15:05:36 -0700
jidanni <at> jidanni.org writes:

> (info "(emacs) Single Shell") and
> (describe-variable 'shell-command-default-error-buffer)
> should mention that the errors accumulate in that buffer, and are not
> wiped clean at each new command. Also mention they are separate by
> form-feeds (^L).
>
> Also the main reason I'm writing this bug report is currently
>      `M-!' and `M-|' insert error output before point in that buffer.
> But that often leads to jumbled output. They should always append to the
> bottom! Like the view-echo-area-messages *Message* buffer.

Yes, the output in that buffer as it stands isn't very useful, I think.
However, great care has been taken to try to insert the error message
wherever point is, and restoring the buffer:

                (with-current-buffer (get-buffer-create error-buffer)
                  (let ((pos-from-end (- (point-max) (point))))
                    (or (bobp)
                        (insert "\f\n"))
                    ;; Do no formatting while reading error file,
                    ;; because that can run a shell command, and we
                    ;; don't want that to cause an infinite recursion.
                    (format-insert-file error-file nil)
                    ;; Put point after the inserted errors.
                    (goto-char (- (point-max) pos-from-end)))
                  (display-buffer (current-buffer))))

I looked at the commit history, and it doesn't seem to explain why we
don't just append:

commit cc039f78e544719115e277364378c217156c958f
Author: Karl Heuer <kwzh <at> gnu.org>
Date:   Mon Mar 1 03:19:32 1999 +0000

    (shell-command-default-error-buffer): Renamed from
    shell-command-on-region-default-error-buffer.
    (shell-command-on-region): Mention in echo area when there
    is some error output.  Mention success or failure, too.
    Accumulate multiple error outputs
    going forward, with formfeed in between.  Display the error buffer
    when we have put something in it.

Does anybody object to rewriting it to just append the error messages to
the end of the buffer?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Thu, 22 Aug 2019 14:08:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: rfrancoise <at> debian.org, 7513 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#7513: 24.0.50;
 shell-command-default-error-buffer should always append to the bottom
Date: Thu, 22 Aug 2019 17:07:19 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Wed, 21 Aug 2019 15:05:36 -0700
> Cc: rfrancoise <at> debian.org, 7513 <at> debbugs.gnu.org
> 
> I looked at the commit history, and it doesn't seem to explain why we
> don't just append:
> 
> commit cc039f78e544719115e277364378c217156c958f
> Author: Karl Heuer <kwzh <at> gnu.org>
> Date:   Mon Mar 1 03:19:32 1999 +0000
> 
>     (shell-command-default-error-buffer): Renamed from
>     shell-command-on-region-default-error-buffer.
>     (shell-command-on-region): Mention in echo area when there
>     is some error output.  Mention success or failure, too.
>     Accumulate multiple error outputs
>     going forward, with formfeed in between.  Display the error buffer
>     when we have put something in it.
> 
> Does anybody object to rewriting it to just append the error messages to
> the end of the buffer?

I'm not sure I understand: you want to lose the ^L separators?  Or
something else?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Thu, 22 Aug 2019 21:20:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, rfrancoise <at> debian.org,
 7513 <at> debbugs.gnu.org
Subject: Re: bug#7513: 24.0.50;
 shell-command-default-error-buffer should always append to the bottom
Date: Fri, 23 Aug 2019 05:18:47 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Lars Ingebrigtsen <larsi <at> gnus.org>
>> Does anybody object to rewriting it to just append the error messages to
>> the end of the buffer?

EZ> I'm not sure I understand: you want to lose the ^L separators?  Or
EZ> something else?

Keep the ^L separators,
just make sure to *append to the end*!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Fri, 23 Aug 2019 00:15:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rfrancoise <at> debian.org, 7513 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#7513: 24.0.50; shell-command-default-error-buffer should
 always append to the bottom
Date: Fri, 23 Aug 2019 02:14:39 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> I'm not sure I understand: you want to lose the ^L separators?  Or
> something else?

Keep the ^L separators, but add the output at end-of-buffer instead of
at point, which it currently does.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Fri, 23 Aug 2019 07:07:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: rfrancoise <at> debian.org, 7513 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#7513: 24.0.50; shell-command-default-error-buffer should
 always append to the bottom
Date: Fri, 23 Aug 2019 10:06:26 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: jidanni <at> jidanni.org,  rfrancoise <at> debian.org,  7513 <at> debbugs.gnu.org
> Date: Fri, 23 Aug 2019 02:14:39 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > I'm not sure I understand: you want to lose the ^L separators?  Or
> > something else?
> 
> Keep the ^L separators, but add the output at end-of-buffer instead of
> at point, which it currently does.

So all you need to do is move point to EOB before adding the next
error?  If so, that's fine with me, and probably something that was
just missed, assuming point will never move from there anyway.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7513; Package emacs. (Fri, 23 Aug 2019 08:13:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rfrancoise <at> debian.org, 7513 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#7513: 24.0.50; shell-command-default-error-buffer should
 always append to the bottom
Date: Fri, 23 Aug 2019 10:12:01 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> So all you need to do is move point to EOB before adding the next
> error?  If so, that's fine with me, and probably something that was
> just missed, assuming point will never move from there anyway.

It doesn't seem like an oversight -- there's code to restore point
(approximately) after inserting, so I think it's more of a misfeature of
a kind.

But I've now made it put the output at the end of the buffer, because
that's way more logical.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 23 Aug 2019 08:13:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 7513 <at> debbugs.gnu.org and jidanni <at> jidanni.org Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 23 Aug 2019 08:13:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Sep 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 217 days ago.

Previous Next


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