From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#45125: Subject: 28.0.50; defvar dynamics Date: Tue, 8 Dec 2020 13:54:15 -0800 (PST) Message-ID: References: <01017daf-0373-e7fe-9cd1-34e27d1795e8@easy-emacs.de> <87o8j49haq.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2049"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45125@debbugs.gnu.org To: Lars Ingebrigtsen , Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 23:40:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmled-0000R2-GD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 23:40:19 +0100 Original-Received: from localhost ([::1]:39432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmlec-0005vw-FR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 17:40:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmkws-0008So-6j for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 16:55:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmkwo-0008Ao-4U for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 16:55:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmkwo-0004VU-1c for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 16:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 21:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 45125-submit@debbugs.gnu.org id=B45125.160746447117279 (code B ref 45125); Tue, 08 Dec 2020 21:55:01 +0000 Original-Received: (at 45125) by debbugs.gnu.org; 8 Dec 2020 21:54:31 +0000 Original-Received: from localhost ([127.0.0.1]:60026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmkwJ-0004Uc-7p for submit@debbugs.gnu.org; Tue, 08 Dec 2020 16:54:31 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:37746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmkwG-0004UK-8w for 45125@debbugs.gnu.org; Tue, 08 Dec 2020 16:54:29 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B8LnJlb046794; Tue, 8 Dec 2020 21:54:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=DWj2spC0IDhOhsTzPqyXqq3ySj0kwZEoWy9zEcgEenw=; b=leMbXJst+ec8SbL0FLKHbZdzHi/NA6SJogMmoYrXIn2flNcbbsHha8m30kQr+bJByDF+ fUvvrhIQhSUq1cIPxLAH15d8USx7o3F258rt5T0vsT4rYQEoe206G6/LKNt2/exQMNjv hPCHE/V0NAtlJ3uAmsCRQN8SNMMzbJHgT36Gxzxr6THQbu4NhLlxmY6aezEIoNK26V9g 153W+cEcXDO4nsZxwt67M2rMXh2qOXD1hY2DY86IOiKfC6dH+vJ7+1jmra5IfQZfNngP AVKNLvJiDBj7DCycCWAbwEEDoxHsa4ku13LjfTC1ModwIoLJ4ihqUpVXU73XOnSihimW tQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 357yqbw9yc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 08 Dec 2020 21:54:22 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B8LieAL067376; Tue, 8 Dec 2020 21:54:21 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 358kytjfyj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 08 Dec 2020 21:54:21 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B8LsGop014851; Tue, 8 Dec 2020 21:54:20 GMT In-Reply-To: <87o8j49haq.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9829 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080135 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9829 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 clxscore=1011 malwarescore=0 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080135 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195452 Archived-At: > See NEWS: >=20 > ** 'eval-last-sexp' now handles 'defvar'/'defcustom'/'defface' > specially. > This command would previously not redefine values defined by these > forms, but this command has now been changed to work more like > 'eval-defun', and reset the values as specified. Yes, well, this does mean that you can no longer realize the old behavior. It's good to be able to interactively evaluate an individual defvar, to have updated text take effect. But by putting this on `C-x C-e' it means that you can no longer select a whole bunch of code that might include some defvars, and be able to count on the defvars having their normal behavior (eval only when not yet initialized). It might be good to have some way of getting the best of both worlds. Unfortunately, prefix args of various sorts are already defined, and there's no easy way to have a prefix arg that's orthogonal (i.e., can apply across the other prefix-arg behaviors). Of course, we still have `eval-region'. Still, there's a loss here, even if there's some gain. IIRC, the main motivation for this change was the repeated complaint that `C-M-x' doesn't update a `defface'. How we ended up with a wholesale change of `C-x C-e', including for `defvar', I'm not certain. Seems a bit of a shame, no?