unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Lars Ingebrigtsen" <larsi@gnus.org>,
	"Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 45125@debbugs.gnu.org
Subject: bug#45125: Subject: 28.0.50; defvar dynamics
Date: Wed, 9 Dec 2020 11:55:16 -0800 (PST)	[thread overview]
Message-ID: <8b0e71df-4f37-4df7-9e84-35d32221c433@default> (raw)
In-Reply-To: <87czzix009.fsf@gnus.org>

> > Understand that thought as kind of convenience-feature. However,
> > problems for testing and debugging arise from this inconsistency.
> 
> Eval-region and friends still work the same as before.
> 
> If you're doing an `C-x C-e' on a `defvar' form, it doesn't seem like
> it should be surprising that something happens.

What if you do `C-x C-e' on a `let' or a `progn' or
a `when' or a <whatever> that contains a `defvar'?

For acting on a single `defvar' we already had (and
still have) `C-M-x'.  Now we've lost the ability to
use `C-x C-e' on an arbitrary sexp and have its
contained `defvar's be handled as they would be by
`eval-region'.

At the very least, I think this (big) difference
should be prominently called out in the doc (not
just doc strings) - letting users know that, in
effect', `C-x C-e' (now) behaves differently from
`eval-region'.

Some differences in behavior can be handy.  But
quirks can also lead to confusion.  The previous
behavior has existed for decades, and I'm not
aware of any complaints about it.

The case of `defface' is different.  There, the
(longstanding) complaint has been that it is the
outlier (IOW, a complaint _against_ an exception)
when it comes to `C-M-x'.  (And that odd behavior
is all the worse because `C-M-x' on a `defface'
echoes the face name, just as if it actually did
update the face definition.)

Really, these constructs deserved (still deserve?)
a serious general reconsideration, to perhaps
increase consistency and user-friendly behavior.
Instead, it looks like we got a quick reflex to a
request out of the blue - after long longstanding
behavior.

Don't get me wrong.  I'm glad that the question
was at least raised again and finally considered.
I just don't think we're really there yet.





      reply	other threads:[~2020-12-09 19:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08 19:46 bug#45125: Subject: 28.0.50; defvar dynamics Andreas Röhler
2020-12-08 20:25 ` Lars Ingebrigtsen
2020-12-08 21:54   ` Drew Adams
2020-12-09  7:34     ` Andreas Röhler
2020-12-09 12:56       ` Lars Ingebrigtsen
2020-12-09 19:03         ` Andreas Röhler
2020-12-09 19:17           ` Lars Ingebrigtsen
2020-12-09 19:55             ` Drew Adams [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8b0e71df-4f37-4df7-9e84-35d32221c433@default \
    --to=drew.adams@oracle.com \
    --cc=45125@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=larsi@gnus.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).