GNU bug report logs - #50224
27.2; auto-save-visited-mode blanks out the echo area after 5 seconds

Previous Next

Package: emacs;

Reported by: meedstrom <at> teknik.io

Date: Fri, 27 Aug 2021 12:08:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 27.2

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 50224 in the body.
You can then email your comments to 50224 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#50224; Package emacs. (Fri, 27 Aug 2021 12:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to meedstrom <at> teknik.io:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 Aug 2021 12:08:02 GMT) Full text and rfc822 format available.

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

From: meedstrom <at> teknik.io
To: bug-gnu-emacs <at> gnu.org
Subject: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
Date: Fri, 27 Aug 2021 11:06:53 +0000
Hey heroes,

So this has been troubling me for years, I thought it was just a part of
how Emacs worked.  But it cannot be intended.  Often there are complex
prompts that take time to read, such what lsp-mode asks you upon
visiting a .sh buffer.  Then after 5 seconds, the prompt text
disappears, but the minibuffer is still active and awaiting your reply.

To test it:

- M-x auto-save-visited-mode
- edit any buffer
- eval (message "foo")
- wait 5 secs

You'll see "foo" disappear.

I could look at how to solve this, but I'd need guidance.  The mode
calls save-some-buffers after 5 idle seconds, and I thought we could
wrap it in a let-binding that sets save-silently to t.  But it still
blanks the echo area. I also tried wrapping it in Doom Emacs' extensive
'quiet!' macro, and it still blanks the echo area.  Is this misbehavior
on the part of save-some-buffers?

Martin Edström



In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
Recent messages:
Battery status not available
------ (Eva debug) Trying to turn on. ------
org-capture-templates changed!
org-agenda-files changed!
Doom loaded 317 packages across 33 modules in 4.646s
Loading /home/me/doom-emacs/.local/cache/recentf...done
Wrote /tmp/mu4e_lock
[mu4e] Switched to Teknik
[mu4e] Switched context to Teknik
Wrote /tmp/mu4e_lock

Configured using:
 'configure
CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash
SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash
--prefix=/gnu/store/x8gjhwynxqsgrcd9d91jac6ii943zfdx-emacs-27.2
--enable-fast-install --with-modules --with-cairo
--disable-build-details'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER
GMP

Important settings:
  value of $EMACSLOADPATH: /home/kept/guix-profiles/emacs/emacs/share/emacs/site-lisp:/gnu/store/x8gjhwynxqsgrcd9d91jac6ii943zfdx-emacs-27.2/share/emacs/27.2/lisp
  value of $LANG: en_DK.utf8
  locale-coding-system: utf-8-unix

Major mode: Elisp

Minor modes in effect:
  org-roam-db-autosync-mode: t
  whitespace-mode: t
  display-fill-column-indicator-mode: t
  highlight-quoted-mode: t
  rainbow-delimiters-mode: t
  highlight-numbers-mode: t
  hl-todo-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  gcmh-mode: t
  winner-mode: t
  flycheck-popup-tip-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  ws-butler-global-mode: t
  ws-butler-mode: t
  editorconfig-mode: t
  recentf-mode: t
  global-so-long-mode: t
  global-git-commit-mode: t
  diff-hl-margin-mode: t
  which-key-mode: t
  savehist-mode: t
  better-jumper-mode: t
  better-jumper-local-mode: t
  vertico-mode: t
  all-the-icons-completion-mode: t
  marginalia-mode: t
  company-mode: t
  outline-minor-mode: t
  solaire-global-mode: t
  display-line-numbers-mode: t
  smartparens-global-mode: t
  smartparens-mode: t
  eva-mode: t
  keyfreq-autosave-mode: t
  keyfreq-mode: t
  show-paren-mode: t
  save-place-mode: t
  prism-mode: t
  global-hl-line-mode: t
  hl-line-mode: t
  el-patch-use-package-mode: t
  global-form-feed-mode: t
  form-feed-mode: t
  shell-dirtrack-mode: t
  delete-selection-mode: t
  projectile-mode: t
  general-override-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  prettify-symbols-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-save-visited-mode: t

Load-path shadows:
---snipped--- (10 times longer than rest of message)

Features:
(shadow emacsbug mu4e-alert time ht alert log4e notifications dbus gntp
mu4e mu4e-org mu4e-main mu4e-view mu4e-view-gnus gnus-art mm-uu mml2015
mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int
gnus-range gnus-win gnus nnheader mu4e-view-common mu4e-headers
mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail
sendmail mu4e-mark mu4e-proc mu4e-utils doc-view jka-compr image-mode
exif mu4e-lists mu4e-message shr svg xml dom flow-fill mu4e-vars
org-agenda org-roam-migrate org-roam-mode org-roam-capture org-roam-node
org-roam-db org-roam-utils org-roam org-roam-compat org-capture org-id
org-refile smartparens-org org-yt org-element avl-tree generator org
org-list org-entities org-version ob-emacs-lisp org-table org-loaddefs
ob ob-tangle ol ob-ref ob-lob ob-table ob-exp org-macro org-footnote
org-src org-keys oc org-cite ob-comint ob-core ob-eval org-pcomplete
disp-table whitespace flycheck-cask display-fill-column-indicator
highlight-quoted rainbow-delimiters highlight-numbers parent-mode
hl-todo org-faces org-compat org-macs cal-menu calendar cal-loaddefs
emacsql-sqlite url-http url-auth url-gw nsm url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
mailcap emacsql emacsql-compiler yasnippet elisp-mode mule-util
auto-minor-mode editorconfig-core editorconfig-core-handle
editorconfig-fnmatch consult-flycheck consult-vertico consult bookmark
gcmh winner flycheck-popup-tip popup flycheck-package package-lint imenu
finder finder-inf lisp-mnt core-packages package browse-url url-handlers
url-parse url-vars flycheck ws-butler editorconfig recentf tree-widget
so-long git-commit with-editor log-edit message rmc puny rfc822 mml
mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs
text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils
gmm-utils mailheader add-log magit-git magit-section magit-utils crm
vc-hg diredfl diff-hl-margin diff-hl-dired diff-hl log-view pcvs-util
vc-dir ewoc all-the-icons-dired vertico-directory vertico-repeat
cursor-sensor which-key savehist better-jumper vertico orderless
all-the-icons-completion all-the-icons all-the-icons-faces data-material
data-weathericons data-octicons data-fileicons data-faicons
data-alltheicons marginalia company-capf company autorevert filenotify
cus-edit cus-start cus-load wid-edit exwm exwm-input xcb-keysyms xcb-xkb
exwm-manage exwm-floating xcb-cursor xcb-render exwm-layout
exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types
xcb-debug server goto-addr vc-git diff-mode vc-svn vc vc-dispatcher
ess-r-mode ess-r-flymake flymake-proc flymake ess-r-xref xref ess-trns
ess-r-package ess-r-completion ess-roxy ess-r-syntax ess-rd noutline
outline hideshow ess-s-lang ess-help info ess-mode ess-inf ess-tracebug
doom-themes-ext-org solaire-mode doom-Iosvkem-theme doom-themes
doom-themes-base display-line-numbers adaptive-wrap smartparens-config
smartparens-text smartparens-ess smartparens dtrt-indent warnings
eva-builtin eva pfuture inline ess ess-utils ess-custom project ts
advice find-func keyfreq f dired-git-info dired dired-loaddefs
two-column iso-transl paren cua-base deianira named-timer concurrent
deferred defrepeater s repeat key-chord battery saveplace prism dash
face-remap color hl-line hydra lv el-patch form-feed crux docker-tramp
tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp
auth-source password-cache twee-mode subed derived subed-vtt subed-srt
subed-common subed-mpv json map subed-debug subed-config my-transients
my-lib-shells my-lib transient format-spec eieio my-lib-unprefixed
my-lib-mothball delsel projectile grep compile comint ansi-color ring
ibuf-ext ibuffer ibuffer-loaddefs thingatpt mu4e-meta html2text
let-alist edmacro kmacro core-editor core-projects core-ui easy-mmode
core-keybinds pp general cl-extra help-mode easymenu cl-seq
use-package-core core-modules eieio-core eieio-loaddefs rx
mu4e-autoloads guix-emacs seq byte-opt bytecomp byte-compile cconv core
core-lib pcase cl-macs gv cl-loaddefs cl-lib subr-x chemacs 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 lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer 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 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 threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 743512 83428)
 (symbols 48 72838 2)
 (strings 32 191029 10595)
 (string-bytes 1 6505080)
 (vectors 16 90995)
 (vector-slots 8 2046927 72200)
 (floats 8 1431 231)
 (intervals 56 3942 360)
 (buffers 1000 23))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50224; Package emacs. (Fri, 27 Aug 2021 12:40:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: meedstrom <at> teknik.io
Cc: 50224 <at> debbugs.gnu.org
Subject: Re: bug#50224: 27.2;
 auto-save-visited-mode blanks out the echo area after 5 seconds
Date: Fri, 27 Aug 2021 15:39:09 +0300
> Date: Fri, 27 Aug 2021 11:06:53 +0000
> From: meedstrom--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> So this has been troubling me for years, I thought it was just a part of
> how Emacs worked.  But it cannot be intended.  Often there are complex
> prompts that take time to read, such what lsp-mode asks you upon
> visiting a .sh buffer.  Then after 5 seconds, the prompt text
> disappears, but the minibuffer is still active and awaiting your reply.
> 
> To test it:
> 
> - M-x auto-save-visited-mode
> - edit any buffer
> - eval (message "foo")
> - wait 5 secs
> 
> You'll see "foo" disappear.

I cannot reproduce this, neither in Emacs 27.2 nor in the current Git
master.  I see some message flash momentarily after 5 sec, but then
"foo" gets restored.

I wonder what do you do differently to make Emacs behave like you say?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50224; Package emacs. (Fri, 27 Aug 2021 15:18:03 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: meedstrom <at> teknik.io, 50224 <at> debbugs.gnu.org
Subject: Re: bug#50224: 27.2; auto-save-visited-mode blanks out the echo
 area after 5 seconds
Date: Fri, 27 Aug 2021 17:17:46 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> I cannot reproduce this, neither in Emacs 27.2 nor in the current Git
> master.  I see some message flash momentarily after 5 sec, but then
> "foo" gets restored.

Yup.  I also get a flash of 

Saving file /tmp/foo...
Wrote /tmp/foo

but then "foo" reappears.

(This is with "emacs -Q" and the current Emacs 28.)

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




Added tag(s) unreproducible. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Aug 2021 15:19:01 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Aug 2021 15:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50224; Package emacs. (Sat, 25 Sep 2021 02:38:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: meedstrom <at> teknik.io
Cc: 50224 <at> debbugs.gnu.org
Subject: Re: bug#50224: 27.2; auto-save-visited-mode blanks out the echo
 area after 5 seconds
Date: Sat, 25 Sep 2021 04:37:35 +0200
meedstrom <at> teknik.io writes:

> So this has been troubling me for years, I thought it was just a part of
> how Emacs worked.  But it cannot be intended.  Often there are complex
> prompts that take time to read, such what lsp-mode asks you upon
> visiting a .sh buffer.  Then after 5 seconds, the prompt text
> disappears, but the minibuffer is still active and awaiting your reply.
>
> To test it:
>
> - M-x auto-save-visited-mode
> - edit any buffer
> - eval (message "foo")
> - wait 5 secs
>
> You'll see "foo" disappear.

Is previously noted, this doesn't seem to be reproducible in a stock
Emacs (i.e., "emacs -Q"), so perhaps this is caused by something in your
configuration?  Can you reproduce the problem with "emacs -Q"?

Also note that messaging when there's an active minibuffer has been
changed in Emacs 28 so that it'll never overwrite the prompt (but
instead add a [message] to the end of the echo area).

Finally, note that you can set `set-message-function' to filter out any
messages that you don't want to have happen.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50224; Package emacs. (Mon, 27 Sep 2021 10:48:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: meedstrom <at> teknik.io
Cc: 50224 <at> debbugs.gnu.org
Subject: Re: bug#50224: 27.2; auto-save-visited-mode blanks out the echo
 area after 5 seconds
Date: Mon, 27 Sep 2021 12:46:59 +0200
meedstrom <at> teknik.io writes:

> That's right, stock Emacs doesn't have the problem.  I don't have the
> first idea how to track it down, guess I'll declare bankruptcy or
> bisect the config when I have time. You can close the bug, and I can
> make a new report if I find it. Thanks for the tips!

No problem; I'm closing this bug report, then.





bug closed, send any further explanations to 50224 <at> debbugs.gnu.org and meedstrom <at> teknik.io Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 27 Sep 2021 10:48:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50224; Package emacs. (Mon, 27 Sep 2021 15:38:02 GMT) Full text and rfc822 format available.

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

From: meedstrom <at> teknik.io
To: "Lars Ingebrigtsen" <larsi <at> gnus.org>
Cc: 50224 <at> debbugs.gnu.org
Subject: Re: bug#50224: 27.2; auto-save-visited-mode blanks out the echo
 area after 5 seconds
Date: Mon, 27 Sep 2021 15:37:08 +0000
For the curious, we found the issue. It relates to a workaround for map-y-or-n-p behavior, at https://github.com/hlissner/emacs-solaire-mode/blob/030964f7c62696c8cfb29125df6e7649d2bf9aeb/solaire-mode.el#L516-L531

Discussion https://github.com/hlissner/doom-emacs/issues/5525

Martin Edström

September 27, 2021 10:47 AM, "Lars Ingebrigtsen" <larsi <at> gnus.org> wrote:

> meedstrom <at> teknik.io writes:
> 
>> That's right, stock Emacs doesn't have the problem. I don't have the
>> first idea how to track it down, guess I'll declare bankruptcy or
>> bisect the config when I have time. You can close the bug, and I can
>> make a new report if I find it. Thanks for the tips!
> 
> No problem; I'm closing this bug report, then.





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

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

Previous Next


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