* bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
@ 2021-08-27 11:06 meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-27 12:39 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-27 11:06 UTC (permalink / raw)
To: 50224
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))
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
2021-08-27 11:06 bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-27 12:39 ` Eli Zaretskii
2021-08-27 15:17 ` Lars Ingebrigtsen
2021-09-25 2:37 ` Lars Ingebrigtsen
[not found] ` <f17c50840020cf9e572e7ee701b457bb@teknik.io>
2 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2021-08-27 12:39 UTC (permalink / raw)
To: meedstrom; +Cc: 50224
> 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@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
2021-08-27 12:39 ` Eli Zaretskii
@ 2021-08-27 15:17 ` Lars Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-27 15:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: meedstrom, 50224
Eli Zaretskii <eliz@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
2021-08-27 11:06 bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-27 12:39 ` Eli Zaretskii
@ 2021-09-25 2:37 ` Lars Ingebrigtsen
[not found] ` <f17c50840020cf9e572e7ee701b457bb@teknik.io>
2 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-25 2:37 UTC (permalink / raw)
To: meedstrom; +Cc: 50224
meedstrom@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
[not found] ` <f17c50840020cf9e572e7ee701b457bb@teknik.io>
@ 2021-09-27 10:46 ` Lars Ingebrigtsen
2021-09-27 15:37 ` meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-27 10:46 UTC (permalink / raw)
To: meedstrom; +Cc: 50224
meedstrom@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds
[not found] ` <f17c50840020cf9e572e7ee701b457bb@teknik.io>
2021-09-27 10:46 ` Lars Ingebrigtsen
@ 2021-09-27 15:37 ` meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 6+ messages in thread
From: meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-27 15:37 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 50224
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@gnus.org> wrote:
> meedstrom@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-09-27 15:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 11:06 bug#50224: 27.2; auto-save-visited-mode blanks out the echo area after 5 seconds meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-27 12:39 ` Eli Zaretskii
2021-08-27 15:17 ` Lars Ingebrigtsen
2021-09-25 2:37 ` Lars Ingebrigtsen
[not found] ` <f17c50840020cf9e572e7ee701b457bb@teknik.io>
2021-09-27 10:46 ` Lars Ingebrigtsen
2021-09-27 15:37 ` meedstrom--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).