From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#4854: 23.1.50; before-string overlay and show-paren-mode Date: Mon, 04 Jul 2016 00:23:18 +0200 Message-ID: <87inwmmkdl.fsf@gmx.net> References: <87fx8x0yng.fsf@escher.local.home> <877hu5zy5r.fsf@escher.local.home> <87k2h5gpyh.fsf@users.sourceforge.net> <87r3ban653.fsf@gmx.net> <874m86g2e6.fsf@users.sourceforge.net> <83d1muramh.fsf@gnu.org> <871t3ag1d3.fsf@users.sourceforge.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467584677 12938 80.91.229.3 (3 Jul 2016 22:24:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 22:24:37 +0000 (UTC) Cc: 4854-done@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 00:24:26 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJpoH-0004HV-Jp for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 00:24:17 +0200 Original-Received: from localhost ([::1]:44351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJpoG-0003wR-5t for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2016 18:24:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJpo7-0003vM-TW for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 18:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJpo2-0004Ya-Np for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 18:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJpo2-0004YI-KA for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 18:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJpo2-00082C-GI for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 18:24:02 -0400 Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2016 22:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 4854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Mail-Followup-To: 4854@debbugs.gnu.org, stephen.berman@gmx.net, stephen.berman@gmx.net Original-Received: via spool by 4854-done@debbugs.gnu.org id=D4854.146758462230850 (code D ref 4854); Sun, 03 Jul 2016 22:24:02 +0000 Original-Received: (at 4854-done) by debbugs.gnu.org; 3 Jul 2016 22:23:42 +0000 Original-Received: from localhost ([127.0.0.1]:36291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJpni-00081W-B5 for submit@debbugs.gnu.org; Sun, 03 Jul 2016 18:23:42 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJpng-00081J-RU for 4854-done@debbugs.gnu.org; Sun, 03 Jul 2016 18:23:41 -0400 Original-Received: from rosalinde ([89.245.64.176]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MF4eJ-1b4juF2CGx-00GLuK; Mon, 04 Jul 2016 00:23:20 +0200 In-Reply-To: <871t3ag1d3.fsf@users.sourceforge.net> (npostavs's message of "Sun, 03 Jul 2016 11:58:16 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:gqkwWYtA/WEbt6DINvhFF/pMPylgw/NdMEOYXNyEBprhd2TXJ1H h/dw0j2fMMrtfjRdPuvLGORq1iTB9uSkLdGsLQkDalImkOeKPWfb6ZmbcDIILe4sg3dW5LN xX/vaM3+pIpexvSBbaAMLa9gerdRQAtY7TMTE6N+mVGWRYqha01WybPBAkgG+xFjGfX4Zxx QoX4j3Cf3SmxqSCk9UMog== X-UI-Out-Filterresults: notjunk:1;V01:K0:BZ779ADamGU=:MXJE6IN0I4vxsazWhY/PeZ EfvPsZGNVWiQVpKybaNOBiWl7cpsaX0SM8gG1RpPpAKA7dzObmVtLzxoxkepGiVecN7krFPdB JRU4/mstlC/KGbMmDPrEfs5vXYQdOazeHxVvMJEQZGtsrY+g4JW49ieo9tjbvArk7IpBydLXo KyxG3MR37415ltKsguG28ePy0LJWp2q5q7iplOyzo2Lf5PBQHxAK7wQPczwaod9okgV3S2UTG yN0Qy2z/GjB/0JycPJuu1L5Bq4fjbxjscoUJ49rXkov5k1ZT6gw9RISnSQvN3ic7rHqUHGnhk WbNOas4ztXYpp85DgB6Da/Zi4SI0GyXV1InlJFMywEMUGsO33QAeZqjMylKdG0qFn+jM5dExG JB1nJljzGTp+0DeZxy1QhOA0GFsNVIi/O3AeEh6UZvpwh2rChncEQML+MJ+9+AsyVHMDSRgRL Lc0pa9rSub78OXCSkGnR3M6E3/4NMxCDhZFgLqLQLtbC9IU1Z3XsIjTZy582OKDD71CRuWtMH gLXlPAxoRb2a3SQdOOMByR6tMg1Lw5A84IOw/ugd0qxHUnzDtwMX4k0GT19U06yiXUg+RmUJ7 UF1KLMsRiweFAmfCzLDDrHI6sPNum56dpsr+RFj9NjWD2j3DPsrXX8kmr5SK/+FexopjjsVxq hv+gWnxvsFYJbsyTt5Foy/MSr9ioeSdxHcH3fJAleUt91hmwVfATIQVZHib2iwOGdrr9nex+U iZN9aMR+TjGNG80C4eaWaPpGuX+4iAhcTfvapnpNartsRP41f4xjpVUMOqKT7vOJk1H4AJqA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120374 Archived-At: On Sun, 03 Jul 2016 11:58:16 -0400 npostavs@users.sourceforge.net wrote: > Eli Zaretskii writes: > >>> From: npostavs@users.sourceforge.net >>> Date: Sun, 03 Jul 2016 11:36:01 -0400 >>> Cc: 4854@debbugs.gnu.org >>> >>> Well, it's possible to avoid moving overlays to minibuffer, but then >>> show-paren-mode stops working in the minibuffer, which I don't think is >>> so great. >> >> To say the least. Please don't, I edit expressions in the minibuffer >> quite a lot, and find show-paren invaluable in general and there in >> particular. > > Don't worry, I wasn't intending to. That patch was just for > demonstration. I completely agree that preventing show-paren-mode from working in the minibuffer is out of the question. > I suppose it might be possible to have paren overlay > per-buffer, so that the overlay doesn't disappear and reappear all the > time, but I don't think it's worth the complication. I'm pretty sure it > would remain possible to write a command that's able to observe some > inconsistencies regardless: since show-paren-mode relies on idle-timers, > the behaviour is affected by the timing of the user's keystrokes. It's probably not worth putting much effort into trying to change it, though I still think it's surprising, and not unlikely an unintended consequence of the implementation of show-paren-mode, that the effect of invoking a command that interacts with it differs depending on how it's invoked (self-insert-command is really a special case, I think). > It's > best to write commands that are oblivious to what show-paren-mode does > (e.g., the (cl-some ...) condition I posted in that same message). This is certainly sound advice, and indeed I applied it long ago in dealing with the issue (in todo-mode.el) that prompted this bug report. Again, thanks for the feedback and clarifying the issue. I'm closing this bug now. Steve Berman