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 #14 received at 35579 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 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, 7 May 2019 10:15:52 +0200
> 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.

To me this example is confusing since the BUFFER argument is nowhere
used within the lambda.

martin




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.