GNU bug report logs - #35579
Add example of setting view-exit-action to a "function with one argument"

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 5 May 2019 12:33:03 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 35579 <at> debbugs.gnu.org
Subject: Re: bug#35579: Add example of setting view-exit-action to a "function
 with one argument"
Date: Tue, 07 May 2019 08:49:41 +0800
I finally found an example:
(setq view-exit-action
      (lambda (buffer)
        (or (window-minibuffer-p (selected-window))
            (when (eq (window-buffer) (get-buffer "*Help*"))
              (if (one-window-p t)
                  (delete-frame)
                (delete-window))))))
So I think view-exit-action's docstring should have and example of what
they are expecting.




This bug report was last modified 5 years and 221 days ago.

Previous Next


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