GNU bug report logs - #31627
27.0.50; isearch prompt not shown when `inhibit-message` is set to `t`

Previous Next

Package: emacs;

Reported by: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>

Date: Mon, 28 May 2018 15:21:02 UTC

Severity: normal

Found in version 27.0.50

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 31627 in the body.
You can then email your comments to 31627 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#31627; Package emacs. (Mon, 28 May 2018 15:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 28 May 2018 15:21:02 GMT) Full text and rfc822 format available.

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

From: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; isearch prompt not shown when `inhibit-message` is set to `t`
Date: Mon, 28 May 2018 17:20:35 +0200
Hello Everybody!

(setq inhibit-message t) hides isearch prompt. Is this defined behavior
or a bug?

Thank you!

regards,
Christian

Configured using:
 'configure --prefix=/usr --with-modules --without-pop
 --without-mailutils --with-xwidgets'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2

Important settings:
  value of $LC_MONETARY: de_DE.UTF-8
  value of $LC_NUMERIC: de_DE.UTF-8
  value of $LC_TIME: de_DE.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
easymenu mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch
time-date elec-pair mule-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting xwidget-internal
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 96393 8598)
 (symbols 48 20500 1)
 (miscs 40 38 120)
 (strings 32 28621 1821)
 (string-bytes 1 761462)
 (vectors 16 14944)
 (vector-slots 8 507846 11066)
 (floats 8 48 69)
 (intervals 56 235 0)
 (buffers 992 12))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31627; Package emacs. (Mon, 28 May 2018 16:02:01 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>
Cc: 31627 <at> debbugs.gnu.org
Subject: Re: bug#31627: 27.0.50;
 isearch prompt not shown when `inhibit-message` is set to `t`
Date: Mon, 28 May 2018 18:01:32 +0200
Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com> writes:

> Hello Everybody!
>
> (setq inhibit-message t) hides isearch prompt. Is this defined behavior
> or a bug?

Good question. 26.1 and 25.3 behave the same way, but itʼs certainly
unexpected behaviour to me (and not described in the docstring for
isearch-forward).

Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31627; Package emacs. (Tue, 29 May 2018 05:18:02 GMT) Full text and rfc822 format available.

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

From: Tino Calancha <tino.calancha <at> gmail.com>
To: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>
Cc: 31627 <at> debbugs.gnu.org
Subject: Re: bug#31627: 27.0.50;
 isearch prompt not shown when `inhibit-message` is set to `t`
Date: Tue, 29 May 2018 14:17:07 +0900
Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com> writes:

> Hello Everybody!
>
> (setq inhibit-message t) hides isearch prompt. Is this defined behavior
> or a bug?
Its use is not intended to be set globally by users, because you don't
want to suppress all the calls to `message'; `message' is a common way
for Emacs to talk with its users, ask them for input or whatever.
Maybe something could be added in its docstring to make the point clear.

This var is mainly used by package developers in a controlled way:
typically by locally let-binding it around an expression.  For example,
imagine the package `foo' having an user option
`foo-verbose' to display/suppress not very important messages:

(defcustom foo-verbose t
  "If nil, suppress some messages"
  :type 'boolean
  :group 'foo)

(defun foo-set-vars ()
  (message "Setting package variables!")
  (setq foo-mint 100)
  (setq foo-star -1))

(defun foo-start ()
  (foo-procastinate-response)
  (message "Initialisation complete!"))
  
(defun foo-initialize ()
  (let ((inhibit-message (not verbose)))
    (foo-set-vars)
    (foo-start)))

That would be OK.
Another typical use is to suppress garbage messages
when writing tests.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31627; Package emacs. (Tue, 29 May 2018 05:38:02 GMT) Full text and rfc822 format available.

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

From: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: 31627 <at> debbugs.gnu.org
Subject: Re: bug#31627: 27.0.50;
 isearch prompt not shown when `inhibit-message` is set to `t`
Date: Tue, 29 May 2018 07:37:37 +0200
Thank you for clarification!

With that "docstring" things are now clear to me.

-Christian

Tino Calancha <tino.calancha <at> gmail.com> writes:

> Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com> writes:
>
>> Hello Everybody!
>>
>> (setq inhibit-message t) hides isearch prompt. Is this defined behavior
>> or a bug?
> Its use is not intended to be set globally by users, because you don't
> want to suppress all the calls to `message'; `message' is a common way
> for Emacs to talk with its users, ask them for input or whatever.
> Maybe something could be added in its docstring to make the point clear.
>
> This var is mainly used by package developers in a controlled way:
> typically by locally let-binding it around an expression.  For example,
> imagine the package `foo' having an user option
> `foo-verbose' to display/suppress not very important messages:
>
> (defcustom foo-verbose t
>   "If nil, suppress some messages"
>   :type 'boolean
>   :group 'foo)
>
> (defun foo-set-vars ()
>   (message "Setting package variables!")
>   (setq foo-mint 100)
>   (setq foo-star -1))
>
> (defun foo-start ()
>   (foo-procastinate-response)
>   (message "Initialisation complete!"))
>
> (defun foo-initialize ()
>   (let ((inhibit-message (not verbose)))
>     (foo-set-vars)
>     (foo-start)))
>
> That would be OK.
> Another typical use is to suppress garbage messages
> when writing tests.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 02 Jun 2018 11:11:01 GMT) Full text and rfc822 format available.

Notification sent to Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>:
bug acknowledged by developer. (Sat, 02 Jun 2018 11:11:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>
Cc: 31627-done <at> debbugs.gnu.org, tino.calancha <at> gmail.com
Subject: Re: bug#31627: 27.0.50;
 isearch prompt not shown when `inhibit-message` is set to `t`
Date: Sat, 02 Jun 2018 14:10:12 +0300
> From: Christian Schwarzgruber <c.schwarzgruber.cs <at> gmail.com>
> Date: Tue, 29 May 2018 07:37:37 +0200
> Cc: 31627 <at> debbugs.gnu.org
> 
> Thank you for clarification!
> 
> With that "docstring" things are now clear to me.

I added the warning to the doc string, and I'm therefore closing the
bug.




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

This bug report was last modified 6 years and 354 days ago.

Previous Next


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