GNU bug report logs - #64165
‘minibuffer-message’: naming/documentation bug

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Mon, 19 Jun 2023 12:12:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.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 64165 in the body.
You can then email your comments to 64165 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 bug-gnu-emacs <at> gnu.org:
bug#64165; Package emacs. (Mon, 19 Jun 2023 12:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shynur Xie <one.last.kiss <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 19 Jun 2023 12:12:02 GMT) Full text and rfc822 format available.

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

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: ‘minibuffer-message’: naming/documentation bug
Date: Mon, 19 Jun 2023 12:06:27 +0000
Both the name and docstring of ‘minibuffer-message’ say it uses
minibuffer instead of echo area, but is this really the case?

I enabled ‘global-display-fill-column-indicator-mode’ and want to
disable ‘dispaly-fill-column-indicator-mode’ only in minibuffer, so I
add a function that will turn off that mode to ‘minibuffer-mode-hook’
but it doesn’t work.  I find that if I switch to buffer
“ *Echo Area N*” then disable ‘display-fill-column-indicator-mode’,
the fill column indicator will disappear... So I guess there's a doc
bug.  (<https://emacs.stackexchange.com/questions/77668>)

--
shynur



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64165; Package emacs. (Mon, 19 Jun 2023 17:13:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 64165 <at> debbugs.gnu.org
Subject: Re: bug#64165: ‘minibuffer-message’:
 naming/documentation bug
Date: Mon, 19 Jun 2023 20:12:42 +0300
> From: Shynur Xie <one.last.kiss <at> outlook.com>
> Date: Mon, 19 Jun 2023 12:06:27 +0000
> msip_labels: 
> 
> (<https://emacs.stackexchange.com/questions/77668>)

If I need to guess the issue which confused you, then will it help
saying in the doc string that 'minibuffer-message' works like
'message' when the current buffer is not the minibuffer?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64165; Package emacs. (Mon, 19 Jun 2023 17:44:02 GMT) Full text and rfc822 format available.

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

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "64165 <at> debbugs.gnu.org" <64165 <at> debbugs.gnu.org>
Subject: Re: bug#64165: ‘minibuffer-message’: naming/documentation bug
Date: Mon, 19 Jun 2023 17:43:04 +0000
> From: Eli Zaretskii
> Date: Mon, 19 Jun 2023 20:12:42 +0300
>   To: Shynur
>
> If I need to guess the issue which confused you,

The issue that's bothering me is that both the name and documentation of
‘minibuffer-message’ says that ‘minibuffer-message’ uses minibuffer,
but after adding

    (lambda ()
      (display-fill-column-indicator-mode -1))

to ‘minibuffer-mode-hook’, then executing

    (minibuffer-message "Message Line 1\nMessage Line 2")

I can still see the fill column indicator:

    Message Line 1                  │
    Message Line 2
                                    ^ fill column indicator here

> will it help saying in the doc string that 'minibuffer-message'
> works like 'message' when the current buffer is not the minibuffer?

I simply don’t know whether ‘minibuffer-message’ works like ‘message’
when the current buffer is not the minibuffer; I'm not familiar with
how ‘minibuffer’ works.

I think if the documentation directly states: “message is shown in
echo area when the current buffer is not minibuffe” (if indeed this is
the case), it would clarify a lot.



Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Tue, 20 Jun 2023 12:34:02 GMT) Full text and rfc822 format available.

Notification sent to Shynur Xie <one.last.kiss <at> outlook.com>:
bug acknowledged by developer. (Tue, 20 Jun 2023 12:34:02 GMT) Full text and rfc822 format available.

Message #16 received at 64165-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 64165-done <at> debbugs.gnu.org
Subject: Re: 
 Re: bug#64165: ‘minibuffer-message’: naming/documentation bug
Date: Tue, 20 Jun 2023 15:33:16 +0300
> From: Shynur Xie <one.last.kiss <at> outlook.com>
> CC: "64165 <at> debbugs.gnu.org" <64165 <at> debbugs.gnu.org>
> Date: Mon, 19 Jun 2023 17:43:04 +0000
> 
> I think if the documentation directly states: “message is shown in
> echo area when the current buffer is not minibuffe” (if indeed this is
> the case), it would clarify a lot.

Done on the emacs-29 branch, and closing the bug.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Jul 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 25 days ago.

Previous Next


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