From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56110: 27+; switching from line-mode to char-mode Date: Sun, 26 Jun 2022 11:15:46 -0400 Message-ID: References: <875ykvs9gq.fsf@electra.home.arpa> <87wndaw84w.fsf@web.de> <87sfnyw6m7.fsf@web.de> <877d58obnn.fsf@web.de> <87k097mi81.fsf@web.de> <87wnd5aqdq.fsf@web.de> <87bkuf8y6r.fsf@web.de> <877d538tkv.fsf@web.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5450"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "C. Michailidis" , 56110@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 26 17:16:23 2022 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 1o5Tzp-0001Bf-HS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 17:16:21 +0200 Original-Received: from localhost ([::1]:48140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5Tzo-0000gS-6K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 11:16:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5TzX-0000g6-2I for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 11:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5TzW-0006SC-Qp for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5TzW-0003g9-Lf for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2022 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56110 X-GNU-PR-Package: emacs Original-Received: via spool by 56110-submit@debbugs.gnu.org id=B56110.165625656014029 (code B ref 56110); Sun, 26 Jun 2022 15:16:02 +0000 Original-Received: (at 56110) by debbugs.gnu.org; 26 Jun 2022 15:16:00 +0000 Original-Received: from localhost ([127.0.0.1]:48689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5TzU-0003dy-39 for submit@debbugs.gnu.org; Sun, 26 Jun 2022 11:16:00 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5TzQ-0003TP-1f for 56110@debbugs.gnu.org; Sun, 26 Jun 2022 11:15:59 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4753D805C8; Sun, 26 Jun 2022 11:15:50 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0793D80626; Sun, 26 Jun 2022 11:15:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656256549; bh=UZIh8PMhP2bmLdu6mVWrlYrHTDe4Eeffdivo36ODWi8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=D5GL5B1oI9aBMMFcpq67r7BPZ2+9KUgnM2h/26wDqc+M6X6B2lL52jpOYm/BCN9MT LiGIRH8vsjgE5s+SrpaZQ+vSLZWSI+wnRamUcYU7RlNEQDP4EtlC7czAxU8lM63Lb+ Oq+3fg8d26FsZuMNR16tsSatqNnqukFq6gyRxHZSfncPvsYEIBR4YZL+makNuYJ4uD KVd9Ijm0mvh5W+VnX5LQQKMBGpUyxvlYosvcE/2RE5XL1kJTRR+e7jTn4UO31lUJN6 mkHGC+Oc87T8cRr+atOGFBLz6bngCQjg6zPNh7Dnv3a8mY1OJsV8o7RMeEsHDKP5P+ YLrAKxy1aswrA== Original-Received: from alfajor (165.63.10.93.rev.sfr.net [93.10.63.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4F9E71205A2; Sun, 26 Jun 2022 11:15:48 -0400 (EDT) In-Reply-To: <877d538tkv.fsf@web.de> (Michael Heerdegen's message of "Sun, 26 Jun 2022 15:04:00 +0200") 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:235350 Archived-At: >> > Simply speaking I meant one has to figure out whether one wants to >> > `add-function' to var or to 'var. >> `add-function` expects a "place", like `setf`. > Thanks, I had an error in my mental model, partly induced by the SYMBOL > without quote vs. (local 'SYMBOL) with quote thing. Right, that's because for the argument to `local`, we can actually accept any expression (i.e. an rvalue) as long as it returns a symbol (just like for `(setf (car EXP) ..)` where can accept an expression EXP as long as it returns a cons-cell). I did hesitate to restrict the syntax to (local SYMBOL) because of the asymmetry it between "SYMBOL" for the global case and "(local 'SYMBOL)" for the local case, but there is no technical reason to restrict it this way. > Do we want a let-like environment (`let-function'?) that does the same > as `add-function' temporarily? I'm not sure it's common enough to be worthwhile. But if we do, then we'd also want to add something for the `add/remove-hook` version of the problem. Stefan