branch: externals/emacs-gc-stats commit 2fc536b3b2657bddc3d01f5a339a1f60b2d3228b Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
emacs-gc-stats-save-session: Query and open mailto: link * emacs-gc-stats.el (emacs-gc-stats-save-session): Prompt to send email and open mailto:emacs-gc-st...@gnu.org link. --- emacs-gc-stats.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs-gc-stats.el b/emacs-gc-stats.el index d8de3c37bf..ca4a69ff71 100644 --- a/emacs-gc-stats.el +++ b/emacs-gc-stats.el @@ -184,6 +184,10 @@ Otherwise, collect symbol." (setcdr (cdr existing) (cdr session)) (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)) + (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))) (defun emacs-gc-stats-clear ()