all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: rms@gnu.org
Cc: michael_heerdegen@web.de, jidanni@jidanni.org, 38818@debbugs.gnu.org
Subject: bug#38818: Dired: mention deleting buffers, not just windows
Date: Wed, 1 Jan 2020 19:29:50 -0800 (PST)	[thread overview]
Message-ID: <d2f7cf62-6c83-40e3-87df-1fd3a4ce7e86@default> (raw)
In-Reply-To: <E1imnGG-0006KT-8K@fencepost.gnu.org>

> How about this addition?

LGTM.

> +  It works to put a @code{lambda}-expression function on a hook, but
> +we recommend avoiding this because it can lead to confusion.  If you
> +add the same @code{lambda}-expression a second time but write it
> +slightly differently, you will get two equivalent but distinct
> +functions on the hook.  If you then remove one of them, the other will
> +still be on it.

But see Noam's reply to my message.

Given that, we might want to describe better
how two lambda forms that you might think
represent the same function can be considered
different in this context.

(I know I've been bitten by that, in particular
not recalling exactly how I wrote a lambda form
that I added, when I later wanted to remove it,
and not bothering to check its form on the hook.
But I'm sure Noam is right in what he says.)

Alternatively, maybe the language should just
be vague enough to skirt the conditions that
can treat two seemingly "equal" anonymous
functions as different.  IOW, that's not really
the point here, which is just to tell users that
they probably want to use named functions on hooks.

Your "because it can lead to confusion" is maybe
sufficient, here.





  reply	other threads:[~2020-01-02  3:29 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 16:09 bug#38818: Dired: mention deleting buffers, not just windows 積丹尼 Dan Jacobson
2019-12-30 17:53 ` martin rudalics
2019-12-30 18:11   ` 積丹尼 Dan Jacobson
2019-12-31  7:59     ` martin rudalics
2019-12-31 17:33 ` Michael Heerdegen
2020-01-01  2:14   ` 積丹尼 Dan Jacobson
2020-01-01  2:47     ` Michael Heerdegen
2020-01-01  3:07       ` 積丹尼 Dan Jacobson
2020-01-01  3:45         ` Michael Heerdegen
2020-01-01  3:59           ` 積丹尼 Dan Jacobson
2020-01-01  4:53             ` Michael Heerdegen
2020-01-01  5:11               ` 積丹尼 Dan Jacobson
2020-01-01  5:31                 ` Michael Heerdegen
2020-01-01  6:53                   ` Drew Adams
2020-01-01 14:38                     ` Noam Postavsky
2020-01-01 23:18                     ` Richard Stallman
2020-01-02  3:29                       ` Drew Adams [this message]
2020-01-02 21:59                         ` Richard Stallman
2020-01-11  9:40                       ` Eli Zaretskii
2020-01-01 16:46               ` Pieter van Oostrum
2020-01-02  4:14                 ` Michael Heerdegen
2020-01-03 15:10                 ` 積丹尼 Dan Jacobson
2020-01-03 23:18                   ` Pieter van Oostrum
2020-01-03 23:31                     ` 積丹尼 Dan Jacobson
2020-01-03 23:51                       ` Pieter van Oostrum
2020-01-04  0:13                         ` 積丹尼 Dan Jacobson
2020-01-04 13:58                           ` Pieter van Oostrum
2020-01-04 23:48                           ` Richard Stallman
2020-01-05  7:39                             ` Pieter van Oostrum
2020-01-05 22:18                               ` Richard Stallman
2020-01-05  8:06                             ` Pieter van Oostrum
2020-01-05 15:31                               ` Eli Zaretskii
2020-01-05 18:19                                 ` 積丹尼 Dan Jacobson
2020-01-05 18:48                                   ` Eli Zaretskii
2020-01-05 19:09                                     ` bug#38818: jidanni's mail headers not perfect?! 積丹尼 Dan Jacobson
2020-01-05 19:33                                       ` Eli Zaretskii
2020-01-05 20:48                                         ` Pieter van Oostrum
2020-01-06  3:26                                           ` Eli Zaretskii
2020-01-06  9:56                                             ` Pieter van Oostrum
2020-01-06 10:09                                               ` Eli Zaretskii
2020-01-06 10:16                                                 ` Andreas Schwab
2020-01-06  8:30                                         ` Andreas Schwab
2020-01-06  8:50                                           ` Eli Zaretskii
2020-01-06  9:23                                             ` Andreas Schwab
2020-01-06 10:02                                               ` Eli Zaretskii
2020-01-06 10:13                                                 ` Andreas Schwab
2020-01-05 22:19                                   ` bug#38818: Dired: mention deleting buffers, not just windows Richard Stallman
2020-01-05 23:30                                     ` 積丹尼 Dan Jacobson
2020-01-06  3:32                                     ` Eli Zaretskii
2020-01-06 23:08                                       ` Richard Stallman
2020-01-07 15:42                                         ` Bad RFC 2047 decoding in Rmail Eli Zaretskii
2020-01-07 17:35                                           ` Stefan Monnier
2020-01-07 23:49                                             ` Richard Stallman
2020-01-22 12:47                                         ` bug#38818: Dired: mention deleting buffers, not just windows Lars Ingebrigtsen
2020-01-22 13:17                                           ` 積丹尼 Dan Jacobson
2020-01-22 13:19                                             ` Lars Ingebrigtsen
2020-01-05 22:21                             ` improvement in functions.texi Richard Stallman
2020-01-11  9:49                               ` Eli Zaretskii
2020-01-04  6:16                       ` bug#38818: Dired: mention deleting buffers, not just windows Michael Heerdegen
2020-01-04 13:57                         ` Pieter van Oostrum
2020-01-05 18:20                           ` 積丹尼 Dan Jacobson
2020-01-04 13:26             ` Noam Postavsky
2020-01-01  6:47       ` Drew Adams
2020-01-22 12:51 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2f7cf62-6c83-40e3-87df-1fd3a4ce7e86@default \
    --to=drew.adams@oracle.com \
    --cc=38818@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=michael_heerdegen@web.de \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.