branch: externals/emacs-gc-stats commit d9d6674b8ed3e3bc59c92f717e2d3b41954fb197 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
fixup! emacs-gc-stats-save-session: Query and open mailto: link --- emacs-gc-stats.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs-gc-stats.el b/emacs-gc-stats.el index 056ee4c628..68cd5471e3 100644 --- a/emacs-gc-stats.el +++ b/emacs-gc-stats.el @@ -185,8 +185,9 @@ Otherwise, collect symbol." (push session previous-sessions))) (prin1 previous-sessions (current-buffer))) (when - (yes-or-no-p - (format "GC stats saved to \"%s\". Send email to emacs-gc-st...@gnu.org? " emacs-gc-stats-file)) + (and (called-interactively-p) + (yes-or-no-p + (format "GC stats saved to \"%s\". Send email to emacs-gc-st...@gnu.org? " emacs-gc-stats-file))) (browse-url "mailto:emacs-gc-st...@gnu.org")) (message "GC stats saved to \"%s\". You can share the file by sending email to emacs-gc-st...@gnu.org" emacs-gc-stats-file)))