X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 05 Jul 2019 19:14:02 +0000 Resent-Message-ID: <handler.36516.B.156235400615802 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36516 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.156235400615802 (code B ref -1); Fri, 05 Jul 2019 19:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jul 2019 19:13:26 +0000 Received: from localhost ([127.0.0.1]:53766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hjTe6-00046k-UX for submit <at> debbugs.gnu.org; Fri, 05 Jul 2019 15:13:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:48741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1hjTe4-00046Z-Aj for submit <at> debbugs.gnu.org; Fri, 05 Jul 2019 15:13:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48794) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <juri@HIDDEN>) id 1hjTe3-0002ew-GM for bug-gnu-emacs@HIDDEN; Fri, 05 Jul 2019 15:13:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1hjTe1-0008HS-6h for bug-gnu-emacs@HIDDEN; Fri, 05 Jul 2019 15:13:19 -0400 Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:9852) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1hjTdy-0008FK-4k for bug-gnu-emacs@HIDDEN; Fri, 05 Jul 2019 15:13:15 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F18612163F for <bug-gnu-emacs@HIDDEN>; Fri, 5 Jul 2019 19:13:08 +0000 (UTC) Received: from pdx1-sub0-mail-a47.g.dreamhost.com (100-96-15-174.trex.outbound.svc.cluster.local [100.96.15.174]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 85964219FF for <bug-gnu-emacs@HIDDEN>; Fri, 5 Jul 2019 19:13:08 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a47.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Fri, 05 Jul 2019 19:13:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Whimsical-Wipe: 6869a3971d79cce3_1562353988791_3758618118 X-MC-Loop-Signature: 1562353988791:1831203200 X-MC-Ingress-Time: 1562353988791 Received: from pdx1-sub0-mail-a47.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTP id AF84883219 for <bug-gnu-emacs@HIDDEN>; Fri, 5 Jul 2019 12:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=MCRd81bzli8Je/7tJyvavbpQWF8=; b=nhzgfR6eftHeUcqz9 lEy4zO8AvAbUWBY72ngLTxwsnyfCMP0i78/sIiouPLUPUYcGaRktsp0FrXeLWo9t /xoq9W1+9tyVvzi8iJLkNc7qCRWM2JPsH4imTKTozCgkooDzOHuOiARoTynPthAI 7//G/H2tZR53ChKQYlXrw0uJ8M= Received: from mail.jurta.org (m91-129-109-127.cust.tele2.ee [91.129.109.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 861F383223 for <bug-gnu-emacs@HIDDEN>; Fri, 5 Jul 2019 12:13:02 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a47 From: Juri Linkov <juri@HIDDEN> Organization: LINKOV.NET Date: Fri, 05 Jul 2019 21:38:39 +0300 Message-ID: <8736jks4wg.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrfeeggddufeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledruddvjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrdduvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.17 X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) 0. emacs -Q 1. Type these two lines: str 1 str 2 2. On the third line type: s ;; self-insert-command t ;; self-insert-command r ;; self-insert-command SPC ;; self-insert-command M-/ ;; dabbrev-expand M-/ ;; dabbrev-expand 3. The result is correct, the third line is correctly expanded to: str 1 Now the test case that exposes the error: 0. emacs -Q 1. Type these two lines: str 1 str 2 2. On the third line type: s ;; self-insert-command M-/ ;; dabbrev-expand SPC ;; self-insert-command M-/ ;; dabbrev-expand M-/ ;; dabbrev-expand 3. The word after "str " is expanded to some random word.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Juri Linkov <juri@HIDDEN> Subject: bug#36516: Acknowledgement (Wrong dynamic abbrev expansion after space) Message-ID: <handler.36516.B.156235400615802.ack <at> debbugs.gnu.org> References: <8736jks4wg.fsf@HIDDEN> X-Gnu-PR-Message: ack 36516 X-Gnu-PR-Package: emacs Reply-To: 36516 <at> debbugs.gnu.org Date: Fri, 05 Jul 2019 19:14:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 36516 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 36516: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36516 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 05 Jul 2019 19:24:01 +0000 Resent-Message-ID: <handler.36516.B36516.156235464025232 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156235464025232 (code B ref 36516); Fri, 05 Jul 2019 19:24:01 +0000 Received: (at 36516) by debbugs.gnu.org; 5 Jul 2019 19:24:00 +0000 Received: from localhost ([127.0.0.1]:53792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hjToO-0006Yu-70 for submit <at> debbugs.gnu.org; Fri, 05 Jul 2019 15:24:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1hjToN-0006YT-2X for 36516 <at> debbugs.gnu.org; Fri, 05 Jul 2019 15:23:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>) id 1hjToG-0000X6-Pt; Fri, 05 Jul 2019 15:23:52 -0400 Received: from [176.228.60.248] (port=2688 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1hjToE-0007CX-K1; Fri, 05 Jul 2019 15:23:52 -0400 Date: Fri, 05 Jul 2019 22:23:43 +0300 Message-Id: <83imsg9tfk.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <8736jks4wg.fsf@HIDDEN> (message from Juri Linkov on Fri, 05 Jul 2019 21:38:39 +0300) References: <8736jks4wg.fsf@HIDDEN> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Date: Fri, 05 Jul 2019 21:38:39 +0300 > > 0. emacs -Q > 1. Type these two lines: > str 1 > str 2 > 2. On the third line type: > s ;; self-insert-command > M-/ ;; dabbrev-expand > SPC ;; self-insert-command > M-/ ;; dabbrev-expand > M-/ ;; dabbrev-expand > 3. The word after "str " is expanded to some random word. Why did you expect something different? The first M-/ copies "2", but the next one after that replaces "2" with some alternative, which exactly depends on what other buffers you have. I see no bug here, you are just expecting from M-/ something it cannot give you. The "SPC M-/" trick is already reaching too far out, IMO.
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 07 Jul 2019 22:22:01 +0000 Resent-Message-ID: <handler.36516.B36516.15625381135723 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.15625381135723 (code B ref 36516); Sun, 07 Jul 2019 22:22:01 +0000 Received: (at 36516) by debbugs.gnu.org; 7 Jul 2019 22:21:53 +0000 Received: from localhost ([127.0.0.1]:57514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hkFXb-0001UD-5r for submit <at> debbugs.gnu.org; Sun, 07 Jul 2019 18:21:51 -0400 Received: from bisque.elm.relay.mailchannels.net ([23.83.212.18]:37728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1hkFXY-0001U4-Sa for 36516 <at> debbugs.gnu.org; Sun, 07 Jul 2019 18:21:49 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CB1CE14035F; Sun, 7 Jul 2019 22:21:47 +0000 (UTC) Received: from pdx1-sub0-mail-a86.g.dreamhost.com (100-96-38-45.trex.outbound.svc.cluster.local [100.96.38.45]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2118514153B; Sun, 7 Jul 2019 22:21:46 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sun, 07 Jul 2019 22:21:47 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Versed-Name: 32680ff170b6632d_1562538107644_3519150701 X-MC-Loop-Signature: 1562538107644:233363532 X-MC-Ingress-Time: 1562538107644 Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 0162380137; Sun, 7 Jul 2019 15:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=Q53BmA dNhtbW3ynGBx+QMJoYPYs=; b=IDnWlIEpcqlJEhwJrtxGemBOBJNzTZxq/D00Ji JuDfuQNmk4AZPjOd+cCISwRNJw2OO6hSZSDpkkuB+lSXn5GZ2NN+OSN5pphKr6Ul wndHfUF79SL2Zg7Ag+qKOfz9FjGchx1alhp+hPvh9Cj9ts5d0tkFh2fexXU2ZoDC cM4Pw= Received: from mail.jurta.org (m91-129-109-127.cust.tele2.ee [91.129.109.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id 0662F80168; Sun, 7 Jul 2019 15:21:39 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a86 From: Juri Linkov <juri@HIDDEN> Organization: LINKOV.NET References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> Date: Mon, 08 Jul 2019 01:13:13 +0300 In-Reply-To: <83imsg9tfk.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 05 Jul 2019 22:23:43 +0300") Message-ID: <87zhlp33kh.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrfeelgddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucffohhmrghinhepghhuthgvnhgsvghrghdrohhrghenucfkphepledurdduvdelrddutdelrdduvdejnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledruddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> 0. emacs -Q >> 1. Type these two lines: >> str 1 >> str 2 >> 2. On the third line type: >> s ;; self-insert-command >> M-/ ;; dabbrev-expand >> SPC ;; self-insert-command >> M-/ ;; dabbrev-expand >> M-/ ;; dabbrev-expand >> 3. The word after "str " is expanded to some random word. > > Why did you expect something different? The first M-/ copies "2", but > the next one after that replaces "2" with some alternative, which > exactly depends on what other buffers you have. I see no bug here, > you are just expecting from M-/ something it cannot give you. The > "SPC M-/" trick is already reaching too far out, IMO. The example in the first part of my bug report demonstrates that this useful feature works as documented in the manual. Also using =E2=80=98C-M-/=E2=80=99 (=E2=80=98dabbrev-completion=E2=80=99) conf= irms that it works as expected by displaying correct completions for both cases. BTW, while reading the manual, I noticed the documentation bug in (info "(emacs) Dynamic Abbrevs") that could be fixed by this patch: diff --git a/doc/emacs/abbrevs.texi b/doc/emacs/abbrevs.texi index 9c8a280efb..708adbb8a6 100644 --- a/doc/emacs/abbrevs.texi +++ b/doc/emacs/abbrevs.texi @@ -465,7 +465,7 @@ Dabbrev Customization generally appropriate for expanding symbols in a program source and also for human-readable text in many languages, but may not be what you want in a text buffer that includes unusual punctuation characters; -in that case, the value @code{"\\sw"} might produce better results. +in that case, the value @code{\\sw} might produce better results. =20 @vindex dabbrev-abbrev-skip-leading-regexp In shell scripts and makefiles, a variable name is sometimes prefixed PS: Also I noticed that the documentation of =E2=80=98M-x dissociated-pre= ss=E2=80=99 has no references to https://www.gutenberg.org/files/829/829-h/829-h.htm the text starting with =E2=80=9CHe then led me to the frame, about the si= des, whereof all his pupils stood in ranks.=E2=80=9D But maybe the device des= cribed in Gulliver's Travels has a different text generation algorithm than dissociated-press, I'm not sure.
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 08 Jul 2019 02:34:01 +0000 Resent-Message-ID: <handler.36516.B36516.15625532354446 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.15625532354446 (code B ref 36516); Mon, 08 Jul 2019 02:34:01 +0000 Received: (at 36516) by debbugs.gnu.org; 8 Jul 2019 02:33:55 +0000 Received: from localhost ([127.0.0.1]:57623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hkJTW-00019e-L8 for submit <at> debbugs.gnu.org; Sun, 07 Jul 2019 22:33:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1hkJTV-00019Q-3f for 36516 <at> debbugs.gnu.org; Sun, 07 Jul 2019 22:33:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>) id 1hkJTP-0000hj-Si; Sun, 07 Jul 2019 22:33:47 -0400 Received: from [176.228.60.248] (port=4433 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1hkJTP-00075s-CK; Sun, 07 Jul 2019 22:33:47 -0400 Date: Mon, 08 Jul 2019 05:33:34 +0300 Message-Id: <83k1ct6yrl.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <87zhlp33kh.fsf@HIDDEN> (message from Juri Linkov on Mon, 08 Jul 2019 01:13:13 +0300) References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: 36516 <at> debbugs.gnu.org > Date: Mon, 08 Jul 2019 01:13:13 +0300 > > >> 0. emacs -Q > >> 1. Type these two lines: > >> str 1 > >> str 2 > >> 2. On the third line type: > >> s ;; self-insert-command > >> M-/ ;; dabbrev-expand > >> SPC ;; self-insert-command > >> M-/ ;; dabbrev-expand > >> M-/ ;; dabbrev-expand > >> 3. The word after "str " is expanded to some random word. > > > > Why did you expect something different? The first M-/ copies "2", but > > the next one after that replaces "2" with some alternative, which > > exactly depends on what other buffers you have. I see no bug here, > > you are just expecting from M-/ something it cannot give you. The > > "SPC M-/" trick is already reaching too far out, IMO. > > The example in the first part of my bug report demonstrates that > this useful feature works as documented in the manual. It does? Please explain how it does, because I don't see it.
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 08 Jul 2019 21:49:02 +0000 Resent-Message-ID: <handler.36516.B36516.156262251811689 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156262251811689 (code B ref 36516); Mon, 08 Jul 2019 21:49:02 +0000 Received: (at 36516) by debbugs.gnu.org; 8 Jul 2019 21:48:38 +0000 Received: from localhost ([127.0.0.1]:59782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hkbV0-00032T-BR for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 17:48:38 -0400 Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:5622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1hkbUx-00032G-O0 for 36516 <at> debbugs.gnu.org; Mon, 08 Jul 2019 17:48:36 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C6CCC142418; Mon, 8 Jul 2019 21:48:33 +0000 (UTC) Received: from pdx1-sub0-mail-a97.g.dreamhost.com (100-96-1-102.trex.outbound.svc.cluster.local [100.96.1.102]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5CBB214192E; Mon, 8 Jul 2019 21:48:33 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a97.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Mon, 08 Jul 2019 21:48:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Minister-Trouble: 5c2d0eea7e922826_1562622513653_1939009921 X-MC-Loop-Signature: 1562622513653:1018130496 X-MC-Ingress-Time: 1562622513653 Received: from pdx1-sub0-mail-a97.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a97.g.dreamhost.com (Postfix) with ESMTP id 109D981FD2; Mon, 8 Jul 2019 14:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=Ipo9dJ fDHkk0PDXI7SRR5rRj1Zw=; b=Uif5/8Rw14kDMVnBPmhdgNdFvBsY4r2JldXMJt XIc2KIHj5qBuQYoJyeTAUjKiOHrwcuaZKKXIE0V57vbNB/4cG8++hrVtGuNvxpD/ iywVzEPlhzdJCjsI1sCDJVleODliOaSxUZZSUZGz59QaUWPM9TFa8CH/i6FOsqwQ 8HzQc= Received: from mail.jurta.org (m91-129-109-127.cust.tele2.ee [91.129.109.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a97.g.dreamhost.com (Postfix) with ESMTPSA id 4180981FC1; Mon, 8 Jul 2019 14:48:25 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a97 From: Juri Linkov <juri@HIDDEN> Organization: LINKOV.NET References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> Date: Tue, 09 Jul 2019 00:35:44 +0300 In-Reply-To: <83k1ct6yrl.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 08 Jul 2019 05:33:34 +0300") Message-ID: <87o9241a6n.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgedugddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrdduvdejnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledruddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> The example in the first part of my bug report demonstrates that >> this useful feature works as documented in the manual. > > It does? Please explain how it does, because I don't see it. For example: 0. emacs -Q 1. Type these two lines: str 1 str 2 2. On the third line type: s ;; self-insert-command M-/ ;; dabbrev-expand SPC ;; self-insert-command C-M-/ ;; dabbrev-completion This correctly displays all available completions =E2=80=9Cstr 1=E2=80=9D and =E2=80=9Cstr 2=E2=80=9D. But =E2=80=98s M-/ = SPC M-/ M-/=E2=80=99 doesn't get the second completion.
Received: (at control) by debbugs.gnu.org; 8 Jul 2019 22:03:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 08 18:03:33 2019 Received: from localhost ([127.0.0.1]:59811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hkbjQ-0003QP-Se for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 18:03:33 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:45499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1hkbjO-0003Q7-Rb for control <at> debbugs.gnu.org; Mon, 08 Jul 2019 18:03:31 -0400 Received: by mail-io1-f52.google.com with SMTP id g20so17683908ioc.12 for <control <at> debbugs.gnu.org>; Mon, 08 Jul 2019 15:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=Y3m3MFi78OiolldrIW9L2a0iq3MtDHSgYhl8rm5wxdY=; b=WopvwWBtWq/rEXM/CfzTxQvJVVRLG7Zfg9dPRgWLx8Srp17oMpFLjxZgO1xxi4BoP4 czf+W6/AlayICfoUCoYgED3PW7Fb1a5a4LrtijL0BjTwkIXhGjZZoaPND7LtADAqu2EU htP8qw/qxC/E8JuG4By4Q0+G8SQPwPvX57+9MoqkjpyHDHbeubbrBJHBH6ewUN92zK+H UaapVLzb4icmhOMPRILK8MClaVprHGq+WwuIkygKWjoYR0lDb5jC9Y9D2NI4rkvs+Cc4 eix7MxzdUwjQLYG/oOF5iAVATNSkTPbCWq4p89bZRmGyQyaMDgkyluV2SUyOR7vDjIy0 gOuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Y3m3MFi78OiolldrIW9L2a0iq3MtDHSgYhl8rm5wxdY=; b=WSV3vqYJYhUwWuFxzXSLnwYXFfRSu290w/EcawMo153cAqHWO4mqw2rMgZYpMt2kmB aJPATwcHlIU9Uut3pTQ+vuNOWBEpHPa969SinkDoNqX29amGEzvUxqcZwtXLMiSuZMWa WqcxE3rmSnnVG5qNqALeeBKBgUcKSq9QKhoqxB6Bp5vIsWYhGvx9Ajk56B9qVDoJGN/8 5n8IIelz5gsHhQWjcLzvylaTyXCKf4EMs7MLmFQiT9ag6bbfthMHNAtOmpHeTqmSfixV Mj17W6Bda9AFT8OXMlLDWF7PKQGJkUp++gzA94RlxvFUSO7IEf66jmgFyJYDM0Cs0Zll 43FA== X-Gm-Message-State: APjAAAVERxj+v43QesN0vnahMyPnLr+DTDyUGA94zXwY2Fy0BhHGndAp zlPw3N08pz3tGksCb+uOYn68Rag0 X-Google-Smtp-Source: APXvYqyNXK2fgDN9KzVothwXIXo5DG/1FqU+BNifQV4qxkRfLPEJNBAZ6AuwABpT8JEcQje67Dc2Nw== X-Received: by 2002:a02:6016:: with SMTP id i22mr23554563jac.56.1562623405135; Mon, 08 Jul 2019 15:03:25 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id c23sm22949481iod.11.2019.07.08.15.03.24 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Jul 2019 15:03:24 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> To: control <at> debbugs.gnu.org Subject: control message for bug #36516 Date: Mon, 08 Jul 2019 18:03:23 -0400 Message-ID: <87pnmk2nh0.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 36516 minor quit Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.166.52 listed in list.dnswl.org] 1.3 PDS_NO_HELO_DNS High profile HELO but no A record X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.3 (/) severity 36516 minor quit
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 13 Jul 2019 08:11:02 +0000 Resent-Message-ID: <handler.36516.B36516.156300545719970 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156300545719970 (code B ref 36516); Sat, 13 Jul 2019 08:11:02 +0000 Received: (at 36516) by debbugs.gnu.org; 13 Jul 2019 08:10:57 +0000 Received: from localhost ([127.0.0.1]:41410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hmD7R-0005C1-FE for submit <at> debbugs.gnu.org; Sat, 13 Jul 2019 04:10:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1hmD7P-0005Bl-IR for 36516 <at> debbugs.gnu.org; Sat, 13 Jul 2019 04:10:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>) id 1hmD7K-00042K-46; Sat, 13 Jul 2019 04:10:50 -0400 Received: from [176.228.60.248] (port=1455 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1hmD7J-0007zp-6w; Sat, 13 Jul 2019 04:10:49 -0400 Date: Sat, 13 Jul 2019 11:10:45 +0300 Message-Id: <83lfx21hiy.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-reply-to: <87o9241a6n.fsf@HIDDEN> (message from Juri Linkov on Tue, 09 Jul 2019 00:35:44 +0300) References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> <87o9241a6n.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: 36516 <at> debbugs.gnu.org > Date: Tue, 09 Jul 2019 00:35:44 +0300 > > 0. emacs -Q > 1. Type these two lines: > str 1 > str 2 > 2. On the third line type: > s ;; self-insert-command > M-/ ;; dabbrev-expand > SPC ;; self-insert-command > C-M-/ ;; dabbrev-completion > > This correctly displays all available completions > “str 1” and “str 2”. But ‘s M-/ SPC M-/ M-/’ doesn't get > the second completion. It does, if you type M-/ a couple more times.
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Noam Postavsky <npostavs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 22 Jul 2019 15:35:02 +0000 Resent-Message-ID: <handler.36516.B36516.15638096866384 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.15638096866384 (code B ref 36516); Mon, 22 Jul 2019 15:35:02 +0000 Received: (at 36516) by debbugs.gnu.org; 22 Jul 2019 15:34:46 +0000 Received: from localhost ([127.0.0.1]:33504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hpaKr-0001eu-QZ for submit <at> debbugs.gnu.org; Mon, 22 Jul 2019 11:34:45 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:36157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1hpaKq-0001eh-Iu for 36516 <at> debbugs.gnu.org; Mon, 22 Jul 2019 11:34:45 -0400 Received: by mail-io1-f52.google.com with SMTP id o9so74926059iom.3 for <36516 <at> debbugs.gnu.org>; Mon, 22 Jul 2019 08:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=quzuXTBnYjhPvGWvyvN2lP/2EIMBemLkIySsXxmUDXM=; b=pGFfKaBAZemoSlZB4B+GT8uk6kZf+xcld8FsKUB3b9WSWWDXijlC1fNsWvCj0CyJoW oEWtLYtKa+eFAz5DonnAH459DJqVCCvZKgUWhdIEC/MjrSs70QAYPxxNL9f2xEcV/kEr 9U+9RwJTZX+V8IE1uywTAxs0xpboWzLRxX6UwEcg0qYPAO+T4TkDERlrrYk1/Kn/tx4r lYVWDM4Jev8R4MfNg23ohtwEPh+Siri5hFOzAP4Z/HmNbPbFMHijKLw3q1mD8feghgf0 pMR04Lb/kMhYtqiVFULqoi3wKmbCDpvdeVqnlwqExac1PcQVrvt9hV62gzR4g1F3niAc Mu9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=quzuXTBnYjhPvGWvyvN2lP/2EIMBemLkIySsXxmUDXM=; b=Q5GOrM141gkdEchgxegyeGy0iez/cO+NpVlLIwwgkAMcRLrQw8wgSEIQARV9BD7W+g LqpmJYhn46Vti9nMv1klVa77Xq27EiocUItV8HFL7n1mDBKvuUuSH4ySXSVZO5B9A7gx Jxv9h9tvt8ffkqpaaga3ylXPDoL5EVGMMZXQedmP0XXQRY7KqeMlx74y/Q+hHMdxqLFp a7e4Gnt0/OadsMGn25zYrxJLICbi1svHoNpOP+DfpgfqZAq/EalSwF7H/jbi5REmmEAz vb/yxGnqIkr24wrMXkorX9dDZBYRaFfOFWY+f2fR/R6YZTrtXuMKUj9Dj6HvAXJy3kFc GseA== X-Gm-Message-State: APjAAAXDSgwl1FXu31a4w9rZZorwZzo8zDujZcBa0UsJds9pkN8hns3h gxxvMjMf78YygsJp7BLiRJJ8ePY5 X-Google-Smtp-Source: APXvYqwXOl2h7ICyaUjFg0CafQs3GqBP0ca9wTlqeHRLXJx09WCzbPFU9fTY74Jgb0W8TBB8lWHl8Q== X-Received: by 2002:a5e:c00e:: with SMTP id u14mr33043487iol.196.1563809678713; Mon, 22 Jul 2019 08:34:38 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id d25sm33021598iom.52.2019.07.22.08.34.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2019 08:34:37 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> References: <8736jks4wg.fsf@HIDDEN> Date: Mon, 22 Jul 2019 11:34:37 -0400 In-Reply-To: <8736jks4wg.fsf@HIDDEN> (Juri Linkov's message of "Fri, 05 Jul 2019 21:38:39 +0300") Message-ID: <85sgqyjd6a.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Juri Linkov <juri@HIDDEN> writes: > 2. On the third line type: > s ;; self-insert-command > M-/ ;; dabbrev-expand > SPC ;; self-insert-command > M-/ ;; dabbrev-expand > M-/ ;; dabbrev-expand > 3. The word after "str " is expanded to some random word. It's due to this code in dabbrev.el: (defun dabbrev-expand (arg) ... ;; If the user inserts a space after expanding ;; and then asks to expand again, always fetch the next word. (if (and (eq (preceding-char) ?\s) (markerp dabbrev--last-abbrev-location) (marker-position dabbrev--last-abbrev-location) (= (point) (1+ dabbrev--last-abbrev-location))) (progn ;; The "abbrev" to expand is just the space. (setq abbrev " ") ... This triggers on the second M-/ in your recipe above, which causes the third M-/ to expand " " instead of "str ". Not sure what to do about it though. Removing this `if' will fix your case, but probably break others.
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 23 Jul 2019 21:17:02 +0000 Resent-Message-ID: <handler.36516.B36516.156391659429939 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Noam Postavsky <npostavs@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156391659429939 (code B ref 36516); Tue, 23 Jul 2019 21:17:02 +0000 Received: (at 36516) by debbugs.gnu.org; 23 Jul 2019 21:16:34 +0000 Received: from localhost ([127.0.0.1]:35705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hq29B-0007mp-Ly for submit <at> debbugs.gnu.org; Tue, 23 Jul 2019 17:16:33 -0400 Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:58183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1hq298-0007mf-HG for 36516 <at> debbugs.gnu.org; Tue, 23 Jul 2019 17:16:31 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D5D02341F11; Tue, 23 Jul 2019 21:16:28 +0000 (UTC) Received: from pdx1-sub0-mail-a97.g.dreamhost.com (100-96-38-36.trex.outbound.svc.cluster.local [100.96.38.36]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 59A77341150; Tue, 23 Jul 2019 21:16:28 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a97.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Tue, 23 Jul 2019 21:16:28 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Glossy-Harmony: 038ccd39436ef0ea_1563916588635_1254057988 X-MC-Loop-Signature: 1563916588634:3671069969 X-MC-Ingress-Time: 1563916588634 Received: from pdx1-sub0-mail-a97.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a97.g.dreamhost.com (Postfix) with ESMTP id 1F43A80AA6; Tue, 23 Jul 2019 14:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=YmxHg7+pX2mGFGup60DRQNrG8Wk=; b= iivfTSFKWhr3emRT7j5R20EBL3OF7ljtXDVQtpSnVbWwPDo6Ea/yCtc3+HX57cDm /AM4csdQShY3JxM1wz2tL2zGrLh+UIzshpcUxNUs8RxhkpavWDc4ak5uRrA+AQDy 1qVx1OR6N3Jj/y1pg817FCK1hIaEbB0RD8GE/NyV9sE= Received: from mail.jurta.org (m91-129-106-30.cust.tele2.ee [91.129.106.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a97.g.dreamhost.com (Postfix) with ESMTPSA id 8AA8D80AA0; Tue, 23 Jul 2019 14:16:21 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a97 From: Juri Linkov <juri@HIDDEN> Organization: LINKOV.NET References: <8736jks4wg.fsf@HIDDEN> <85sgqyjd6a.fsf@HIDDEN> Date: Wed, 24 Jul 2019 00:15:16 +0300 In-Reply-To: <85sgqyjd6a.fsf@HIDDEN> (Noam Postavsky's message of "Mon, 22 Jul 2019 11:34:37 -0400") Message-ID: <87zhl4tpuj.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrjeekgdduheelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdeirdeftdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdeirdeftddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehnphhoshhtrghvshesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> 2. On the third line type: >> s ;; self-insert-command >> M-/ ;; dabbrev-expand >> SPC ;; self-insert-command >> M-/ ;; dabbrev-expand >> M-/ ;; dabbrev-expand >> 3. The word after "str " is expanded to some random word. > > It's due to this code in dabbrev.el: > > (defun dabbrev-expand (arg) > ... > ;; If the user inserts a space after expanding > ;; and then asks to expand again, always fetch the next word. > (if (and (eq (preceding-char) ?\s) > (markerp dabbrev--last-abbrev-location) > (marker-position dabbrev--last-abbrev-location) > (= (point) (1+ dabbrev--last-abbrev-location))) > (progn > ;; The "abbrev" to expand is just the space. > (setq abbrev " ") > ... > > This triggers on the second M-/ in your recipe above, which causes the > third M-/ to expand " " instead of "str ". Not sure what to do about it > though. Removing this `if' will fix your case, but probably break > others. Thanks for investigating this. Out of curiosity, I checked now the test directory, and here it is: test/lisp/dabbrev-tests.el - the already existing test with exactly the same recipe as in my report. But for some reason this test doesn't fail.
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Noam Postavsky <npostavs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 23 Jul 2019 21:28:01 +0000 Resent-Message-ID: <handler.36516.B36516.156391727331162 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156391727331162 (code B ref 36516); Tue, 23 Jul 2019 21:28:01 +0000 Received: (at 36516) by debbugs.gnu.org; 23 Jul 2019 21:27:53 +0000 Received: from localhost ([127.0.0.1]:35713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hq2K9-00086Y-69 for submit <at> debbugs.gnu.org; Tue, 23 Jul 2019 17:27:53 -0400 Received: from mail-io1-f51.google.com ([209.85.166.51]:44638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1hq2K5-000865-6K for 36516 <at> debbugs.gnu.org; Tue, 23 Jul 2019 17:27:50 -0400 Received: by mail-io1-f51.google.com with SMTP id s7so84902508iob.11 for <36516 <at> debbugs.gnu.org>; Tue, 23 Jul 2019 14:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=URrhi0L5aJPJJhJJXDSqdathiqSfCw973jpEqXeWoMQ=; b=EiENFi8INj3iMMOhmYYh9hNwSNPBUxjoCzZ07UQKI9jL2AR4V5hlR/TPnRuKE46NJQ +EI5498Kw26r50nGSU/C/RsBySeQpp8hupV3fADMzvkKca/xeLPMfXaiaPPFZ9s5LLYm Pabdu9Jv/+TdfYjKYwtdh2YFR+7Ojh3RRvcQ4PEHFYAXVMYs9Z86cotK28IJOWnzXKCU ceaqmL/VdPIMoLODvf9xr5uM06vh41Hv3I1wXsja8bwu/rZA81Apm1TZs/uULWhPUrC5 8H3DWMfE821VZwMY506bqeijpEURYRVV45F42LdZnj4UawxqMH3v47hzcTznysYU1ns/ Kdhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=URrhi0L5aJPJJhJJXDSqdathiqSfCw973jpEqXeWoMQ=; b=VtA+f4uUEKg6+K86tJJ8r7XNUtv0gM6uYfzw+5ihp1kAaUzGFyow17t/uAZOwZgUSj iT9IjlH/RRLRGwBhgois0ASbkLQs92tX75prnZDGJAlJBPDCOVWHKzodn25rA/TffugM OWqixc7zxzIX1LlcEWmT7PZXxypvzKqJMGAoWHC7tKO+FEsbJbRorN0KD/sNt6CgLJIV OS0QN8RWwXbQzYm11wWGHYNfl91M0hffeRHksUYnKv9AsllqxUr0OMuU2eQkn024FWrp WpBeM2ts2M/P4sOFhxbez/iRwehUfjM4UdCZeA4CeyoRDKb/xBgB5BkmJa446oqgGxFK bN/Q== X-Gm-Message-State: APjAAAWJ/S4y35i2QHkGEEHETUnkIvYnKNMKkuyUfzsX20X9V3zaL8/9 E0V1BzuT51qBpX5V8O1U9jUMDslB X-Google-Smtp-Source: APXvYqwapXYo2WAwG+FAjYBkpvyJRRrbMEdlnM335X3OIWoOL8Gi5zlgK8Npr0PN9bywYyjjBSNWKQ== X-Received: by 2002:a5d:884d:: with SMTP id t13mr10098945ios.233.1563917263503; Tue, 23 Jul 2019 14:27:43 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id j14sm37355414ioa.78.2019.07.23.14.27.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2019 14:27:42 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> References: <8736jks4wg.fsf@HIDDEN> <85sgqyjd6a.fsf@HIDDEN> <87zhl4tpuj.fsf@HIDDEN> Date: Tue, 23 Jul 2019 17:27:42 -0400 In-Reply-To: <87zhl4tpuj.fsf@HIDDEN> (Juri Linkov's message of "Wed, 24 Jul 2019 00:15:16 +0300") Message-ID: <85muh4jvap.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Juri Linkov <juri@HIDDEN> writes: > > Out of curiosity, I checked now > the test directory, and here it is: test/lisp/dabbrev-tests.el - > the already existing test with exactly the same recipe as in my report. > But for some reason this test doesn't fail. Having 2 spaces between the tokens and expanding from the middle line make the difference (not sure why exactly).
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Alan Third <alan@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 27 Jul 2019 10:27:02 +0000 Resent-Message-ID: <handler.36516.B36516.156422321223737 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: 36516 <at> debbugs.gnu.org, Noam Postavsky <npostavs@HIDDEN> Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156422321223737 (code B ref 36516); Sat, 27 Jul 2019 10:27:02 +0000 Received: (at 36516) by debbugs.gnu.org; 27 Jul 2019 10:26:52 +0000 Received: from localhost ([127.0.0.1]:43626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hrJue-0006An-3O for submit <at> debbugs.gnu.org; Sat, 27 Jul 2019 06:26:52 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:33059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <athird@HIDDEN>) id 1hrJuZ-0006AX-FR for 36516 <at> debbugs.gnu.org; Sat, 27 Jul 2019 06:26:49 -0400 Received: by mail-wr1-f46.google.com with SMTP id n9so56950904wru.0 for <36516 <at> debbugs.gnu.org>; Sat, 27 Jul 2019 03:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=bHZ5bC/qykOWGRpUkvviG20392psz4OLehpDxs8pXqw=; b=HxZGUy3VwP0hoOTsMEdQx0axISwPyLFiOu7b95rW1zHg0qUhp8R2EHiWxMqQTFRSI5 FGSeszWer5+fusK1rRx9/9Bbvuq/Kd3qa59QqIPaTQ/8ouxTiLdVIGsoFV600kRQ+Xe9 JAWrizy2SdW3sc8piQXkwyC3sQQZucuZOZ+rY2JY0HVJ2dM5X0e0sA1p6yGi9xNH4AXi g/b444WpyJK8M91fpRLff1F5aC1WORoDP0oGASepzOCvkmLtq2f7qxiOYCklUUZxYt48 BwEDHLwgpYvfwKP32rKh0HVHeXIZfDbivMRIhFWQarJ/wY2oZMpFBweAgind2adZoOml t5MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=bHZ5bC/qykOWGRpUkvviG20392psz4OLehpDxs8pXqw=; b=rIbzpxSJ+03kplLtcOL/1FU3L1GcY7m09CM34JawWaXBrwhgx1DYsy/6Fn9B5wu41y 2S4Jq0Uy43cpLgfkR5j3g5TuL7OPQg/QRbHNVLbIznCer4DeeLS3wsGfBQh3NXo0AU8q CslkBowbaSj+qAOFfLqu54jvp3egsAPwEkqLQvZY8ZGLOHi4iAHvtHWX40w2y8jpzQS+ JmigcwryVCqUVc1622YMaX65Y2gcmC+3sL8+hrGsU1X4kQ5nCMuT6Wmhnb4xDWeFvoDy D6jCfgYau2kK5y/xULpEpuoTKduKpMQp7h3LKLeHhlKYce6ZTv5DcUYBN7es2IyPLlUA ux6Q== X-Gm-Message-State: APjAAAWuDuS+mJc4zBMFf9qE79PKlzD7Z0maPL29g1LLNPoJbS53Ghii 60Wg1EC5a5UXKqKrBavrwF4= X-Google-Smtp-Source: APXvYqxhi4+j2U8UNiBRQkoquL17K0IfY8f4MZURcyCFgP8K35HpjWlfDaM0eQGGNJXErCtrbFkyeQ== X-Received: by 2002:adf:de10:: with SMTP id b16mr73798657wrm.296.1564223201532; Sat, 27 Jul 2019 03:26:41 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-98d4-610b-1803-bac5.holly.idiocy.org. [2001:8b0:3f8:8129:98d4:610b:1803:bac5]) by smtp.gmail.com with ESMTPSA id j17sm87590694wrb.35.2019.07.27.03.26.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Jul 2019 03:26:40 -0700 (PDT) Date: Sat, 27 Jul 2019 11:26:38 +0100 From: Alan Third <alan@HIDDEN> Message-ID: <20190727102638.GB80460@HIDDEN> References: <8736jks4wg.fsf@HIDDEN> <85sgqyjd6a.fsf@HIDDEN> <87zhl4tpuj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87zhl4tpuj.fsf@HIDDEN> User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On Wed, Jul 24, 2019 at 12:15:16AM +0300, Juri Linkov wrote: > >> 2. On the third line type: > >> s ;; self-insert-command > >> M-/ ;; dabbrev-expand > >> SPC ;; self-insert-command > >> M-/ ;; dabbrev-expand > >> M-/ ;; dabbrev-expand > >> 3. The word after "str " is expanded to some random word. > > > > It's due to this code in dabbrev.el: > > > > (defun dabbrev-expand (arg) > > ... > > ;; If the user inserts a space after expanding > > ;; and then asks to expand again, always fetch the next word. > > (if (and (eq (preceding-char) ?\s) > > (markerp dabbrev--last-abbrev-location) > > (marker-position dabbrev--last-abbrev-location) > > (= (point) (1+ dabbrev--last-abbrev-location))) > > (progn > > ;; The "abbrev" to expand is just the space. > > (setq abbrev " ") > > ... > > > > This triggers on the second M-/ in your recipe above, which causes the > > third M-/ to expand " " instead of "str ". Not sure what to do about it > > though. Removing this `if' will fix your case, but probably break > > others. > > Thanks for investigating this. Out of curiosity, I checked now > the test directory, and here it is: test/lisp/dabbrev-tests.el - > the already existing test with exactly the same recipe as in my report. > But for some reason this test doesn't fail. I remembered writing that test and checked previously. It’s not exactly the same recipe. That one was where there were two spaces and subsequent calls to dabbrev-expand would replace the wrong text with the correct expansion, not replace the correct text with the wrong expansion. I hope that makes sense... A bit more info here: https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01721.html -- Alan Third
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Alan Third <alan@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 27 Jul 2019 17:19:02 +0000 Resent-Message-ID: <handler.36516.B36516.156424792324593 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156424792324593 (code B ref 36516); Sat, 27 Jul 2019 17:19:02 +0000 Received: (at 36516) by debbugs.gnu.org; 27 Jul 2019 17:18:43 +0000 Received: from localhost ([127.0.0.1]:45367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hrQLD-0006Ob-Eb for submit <at> debbugs.gnu.org; Sat, 27 Jul 2019 13:18:43 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:44870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <athird@HIDDEN>) id 1hrQLA-0006OM-MY for 36516 <at> debbugs.gnu.org; Sat, 27 Jul 2019 13:18:41 -0400 Received: by mail-wr1-f49.google.com with SMTP id p17so57481051wrf.11 for <36516 <at> debbugs.gnu.org>; Sat, 27 Jul 2019 10:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=mJ2IswsnHsgWyxOsLByKFpTee3Jn09IJRZqKjw3nDKU=; b=naYlhhZYW0E0osFherSWABeUmRyhiPTH1FXcL9oJjpwBLpB0yWmGk1ZuQaxORfcwFz wlXZq7fuJoP3QBOtKU4kd8tV+u16XOChId92b6s1Ncz53JSyQJQBViaFFTkISqYtRLRh Fofn4QZcOAN1r0epfOawDGMRpNJya5oCADc4le9mNkVjF1s6NFMpS6+OLVJ5yAf4CYuO lA/9imeZGScE83RTdt4OvLRh9rtKI/uXc+M2x1SsrLAvlV/PfjCa0sbOqZMKUayXYpfD s5HbEhXm09QR6C97wg9qkBJmgTj51boZTdqhYPyUvl1yy6K0ySSkiEJr94UY8BF24jw0 ssgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=mJ2IswsnHsgWyxOsLByKFpTee3Jn09IJRZqKjw3nDKU=; b=cS/4alPnZsE11s0eem5JiI4/cv9X0Z9RxEK79vaRTA7K69zlXXFVyiYdmcxUWm48u3 qX9LPi0Hivo3ZoGRES3wm74EZ3LAKhhp1CJotV9Y5dqqgmRhlfnkDsRaX5Bs/xqQheYi fH9/uc+N7lq5uhRPuJI7PnbYZBpoYlDWw67ehbT/EKrE+32RFhdKWZElBIUC3uBbp133 R1ondl793VpBdHPwi3kFyYRAzyCEWr/oHXkMGJp2Em4QscXonQsudi7a2LyDX6senUJx Do4U0TJxbEk0Jvlc10NXsOqQ0ru/YIIvzxcwXWdNzqw1tFDC18jBZBH7oFmsSjtKERyY HYwg== X-Gm-Message-State: APjAAAUP3VP1ekhfG6XZmQxMFpBqBBtFF28HIH8mcfbyCUFZE+lrgvUd 1YhAnD0NLli5PhSaYXkvHNvOCWfAIV8= X-Google-Smtp-Source: APXvYqznrBS4zXvk395gCWp/u9FWigDb1mkw5OVAfHWB0VnZnjMO8x8j0rJutkugJwebKV1U3cDMjA== X-Received: by 2002:a5d:6144:: with SMTP id y4mr111149493wrt.84.1564247914493; Sat, 27 Jul 2019 10:18:34 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-98d4-610b-1803-bac5.holly.idiocy.org. [2001:8b0:3f8:8129:98d4:610b:1803:bac5]) by smtp.gmail.com with ESMTPSA id g10sm40980924wrw.60.2019.07.27.10.18.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Jul 2019 10:18:33 -0700 (PDT) Date: Sat, 27 Jul 2019 18:18:31 +0100 From: Alan Third <alan@HIDDEN> Message-ID: <20190727171831.GB81205@HIDDEN> References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> <87o9241a6n.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87o9241a6n.fsf@HIDDEN> User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On Tue, Jul 09, 2019 at 12:35:44AM +0300, Juri Linkov wrote: > >> The example in the first part of my bug report demonstrates that > >> this useful feature works as documented in the manual. > > > > It does? Please explain how it does, because I don't see it. > > For example: > > 0. emacs -Q > 1. Type these two lines: > str 1 > str 2 > 2. On the third line type: > s ;; self-insert-command > M-/ ;; dabbrev-expand > SPC ;; self-insert-command > C-M-/ ;; dabbrev-completion > > This correctly displays all available completions > “str 1” and “str 2”. But ‘s M-/ SPC M-/ M-/’ doesn't get > the second completion. ’s M-/ SPC M-/’ doesn’t do a normal completion, it does this (from the manual): After you have expanded a dynamic abbrev, you can copy additional words that follow the expansion in its original context. Simply type <SPC> M-/ for each additional word you want to copy. The spacing and punctuation between words is copied along with the words. I suppose that subsequent M-/’s are undocumented, but the current behaviour is, IMO, definitely confusing as it seems to search other buffers for completions even though there are valid completions in the current buffer. -- Alan Third
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 28 Jul 2019 21:24:02 +0000 Resent-Message-ID: <handler.36516.B36516.156434903226265 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third <alan@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156434903226265 (code B ref 36516); Sun, 28 Jul 2019 21:24:02 +0000 Received: (at 36516) by debbugs.gnu.org; 28 Jul 2019 21:23:52 +0000 Received: from localhost ([127.0.0.1]:47256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hrqdz-0006pY-Sx for submit <at> debbugs.gnu.org; Sun, 28 Jul 2019 17:23:52 -0400 Received: from brown.elm.relay.mailchannels.net ([23.83.212.23]:29462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1hrqdx-0006pO-Ne for 36516 <at> debbugs.gnu.org; Sun, 28 Jul 2019 17:23:50 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AD33C21692; Sun, 28 Jul 2019 21:23:48 +0000 (UTC) Received: from pdx1-sub0-mail-a90.g.dreamhost.com (100-96-15-27.trex.outbound.svc.cluster.local [100.96.15.27]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3A4AC212FB; Sun, 28 Jul 2019 21:23:48 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a90.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sun, 28 Jul 2019 21:23:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Skirt-Zesty: 7fdc71dc29370b17_1564349028536_2782874952 X-MC-Loop-Signature: 1564349028536:2912931654 X-MC-Ingress-Time: 1564349028535 Received: from pdx1-sub0-mail-a90.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a90.g.dreamhost.com (Postfix) with ESMTP id 330DE7FD00; Sun, 28 Jul 2019 14:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=d97U71A55edx7+Er9RL+R0IJJQU=; b= pmMzdgTFq5y4nY7WDH5a7/MnpGUWWhycX25qt92QI/lUzoeYI/o4h0z4q0dOvVZf YYaSoAlO53I2ctrlGj5cC+G6F5hivDUDLUEDNxCk7mcdqGAZvp4YigNZUnIvO7un rtzQvJpZ3hTdFqyswfkkdC+q1Oue4XzwOv/QxzGCOko= Received: from mail.jurta.org (m91-129-103-76.cust.tele2.ee [91.129.103.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a90.g.dreamhost.com (Postfix) with ESMTPSA id 973AE7FCF0; Sun, 28 Jul 2019 14:23:40 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a90 From: Juri Linkov <juri@HIDDEN> Organization: LINKOV.NET References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> <87o9241a6n.fsf@HIDDEN> <20190727171831.GB81205@HIDDEN> Date: Sun, 28 Jul 2019 23:47:53 +0300 In-Reply-To: <20190727171831.GB81205@HIDDEN> (Alan Third's message of "Sat, 27 Jul 2019 18:18:31 +0100") Message-ID: <87k1c2qazy.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrkeelgdduieefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdejieenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdejiedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegrlhgrnhesihguihhotgihrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> 0. emacs -Q >> 1. Type these two lines: >> str 1 >> str 2 >> 2. On the third line type: >> s ;; self-insert-command >> M-/ ;; dabbrev-expand >> SPC ;; self-insert-command >> C-M-/ ;; dabbrev-completion >> >> This correctly displays all available completions >> =E2=80=9Cstr 1=E2=80=9D and =E2=80=9Cstr 2=E2=80=9D. But =E2=80=98s M= -/ SPC M-/ M-/=E2=80=99 doesn't get >> the second completion. > > =E2=80=99s M-/ SPC M-/=E2=80=99 doesn=E2=80=99t do a normal completion,= it does this (from=20 > the manual): > > After you have expanded a dynamic abbrev, you can copy additional > words that follow the expansion in its original context. Simply typ= e > <SPC> M-/ for each additional word you want to copy. The spacing an= d > punctuation between words is copied along with the words. Oh, this special-casing unfortunately breaks the natural workflow. > I suppose that subsequent M-/=E2=80=99s are undocumented, but the curre= nt > behaviour is, IMO, definitely confusing as it seems to search other > buffers for completions even though there are valid completions in the > current buffer. Maybe it's possible to break out of the vicious cycle of =E2=80=98SPC M-/= =E2=80=99 repetitions by making =E2=80=98SPC M-/=E2=80=99 look like a normal expans= ion, e.g.: --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=dabbrev.patch Content-Transfer-Encoding: quoted-printable diff --git a/test/lisp/dabbrev-tests.el b/test/lisp/dabbrev-tests.el index a6ab2e7201..39fd37db1d 100644 --- a/test/lisp/dabbrev-tests.el +++ b/test/lisp/dabbrev-tests.el @@ -40,3 +40,27 @@ ;; M-/ SPC M-/ M-/ (execute-kbd-macro "\257 \257\257")) (should (string=3D (buffer-string) "ab x\nab y\nab y")))) + +(ert-deftest dabbrev-with-space-word () + "Test for bug#36516. +Check that the =E2=80=98<SPC> M-/=E2=80=99 feature still works as docume= nted +in `(emacs) Dynamic Abbrevs'." + (with-temp-buffer + (insert "sub a b\nstr a c\ns") + (save-window-excursion + (set-window-buffer nil (current-buffer)) + ;; M-/ M-/ SPC M-/ SPC M-/ + (execute-kbd-macro "\257\257 \257 \257")) + (should (string=3D (buffer-string) "sub a b\nstr a c\nsub a b")))) + +(ert-deftest dabbrev-without-space-word () + "Test for bug#36516. +Check that =E2=80=98<SPC> M-/ M-/=E2=80=99 doesn't conflict with the =E2= =80=98<SPC> M-/=E2=80=99 feature +documented in `(emacs) Dynamic Abbrevs'." + (with-temp-buffer + (insert "str 1\nstr 2\ns") + (save-window-excursion + (set-window-buffer nil (current-buffer)) + ;; M-/ SPC M-/ M-/ + (execute-kbd-macro "\257 \257\257")) + (should (string=3D (buffer-string) "str 1\nstr 2\nstr 1")))) diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el index 23abe7ae16..ffb1b7d819 100644 --- a/lisp/dabbrev.el +++ b/lisp/dabbrev.el @@ -472,43 +472,35 @@ dabbrev-expand (markerp dabbrev--last-abbrev-location) (marker-position dabbrev--last-abbrev-location) (=3D (point) (1+ dabbrev--last-abbrev-location))) - (progn - ;; The "abbrev" to expand is just the space. - (setq abbrev " ") - (save-excursion - (save-restriction - (widen) - (if dabbrev--last-buffer - (set-buffer dabbrev--last-buffer)) - ;; Find the end of the last "expansion" word. - (if (or (eq dabbrev--last-direction 1) - (and (eq dabbrev--last-direction 0) - (< dabbrev--last-expansion-location (point)))) - (setq dabbrev--last-expansion-location - (+ dabbrev--last-expansion-location - (length dabbrev--last-expansion)))) - (goto-char dabbrev--last-expansion-location) - ;; Take the following word, with intermediate separators, - ;; as our expansion this time. - (re-search-forward - (concat "\\(?:" dabbrev--abbrev-char-regexp "\\)+")) - (setq expansion (buffer-substring-no-properties - dabbrev--last-expansion-location (point))) - - ;; Record the end of this expansion, in case we repeat this. - (setq dabbrev--last-expansion-location (point)))) - ;; Indicate that dabbrev--last-expansion-location is - ;; at the end of the expansion. - (setq dabbrev--last-direction -1)) + (save-excursion + (save-restriction + (widen) + (if dabbrev--last-buffer + (set-buffer dabbrev--last-buffer)) + ;; Find the end of the last "expansion" word. + (if (or (eq dabbrev--last-direction 1) + (and (eq dabbrev--last-direction 0) + (< dabbrev--last-expansion-location (point)))) + (setq dabbrev--last-expansion-location + (+ dabbrev--last-expansion-location + (length dabbrev--last-expansion)))) + (goto-char dabbrev--last-expansion-location) + ;; Take the following word, with intermediate separators, + ;; as our expansion this time. + (re-search-forward + (concat "\\(?:" dabbrev--abbrev-char-regexp "\\)+")) =20 + ;; Record the end of this expansion, in case we repeat this. + (setq dabbrev--last-expansion-location (point)))) ;; We have a different abbrev to expand. - (dabbrev--reset-global-variables) - (setq direction (if (null arg) - (if dabbrev-backward-only 1 0) - (prefix-numeric-value arg))) - (setq abbrev (dabbrev--abbrev-at-point)) - (setq record-case-pattern t) - (setq old nil))) + (dabbrev--reset-global-variables)) + + (setq direction (if (null arg) + (if dabbrev-backward-only 1 0) + (prefix-numeric-value arg))) + (setq abbrev (dabbrev--abbrev-at-point)) + (setq record-case-pattern t) + (setq old nil)) =20 ;;-------------------------------- ;; Find the expansion --=-=-=--
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Alan Third <alan@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 03 Aug 2019 11:35:01 +0000 Resent-Message-ID: <handler.36516.B36516.156483209229552 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.156483209229552 (code B ref 36516); Sat, 03 Aug 2019 11:35:01 +0000 Received: (at 36516) by debbugs.gnu.org; 3 Aug 2019 11:34:52 +0000 Received: from localhost ([127.0.0.1]:58376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1htsJH-0007ga-Vj for submit <at> debbugs.gnu.org; Sat, 03 Aug 2019 07:34:52 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:37368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <athird@HIDDEN>) id 1htsJF-0007gK-LE for 36516 <at> debbugs.gnu.org; Sat, 03 Aug 2019 07:34:50 -0400 Received: by mail-wr1-f42.google.com with SMTP id n9so54718278wrr.4 for <36516 <at> debbugs.gnu.org>; Sat, 03 Aug 2019 04:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=sL6KRW0ydeA1AaDfP+29WhovEuYhnU4la+znTRqIi1I=; b=G+o6xs43YhFz98luCuwXgVYqZyD9jeK04MxjnfzqFzrGx5t9z1yVFvJP1cu6sPObJi DCoV+NiYGdQczL0UUf582cH6ZB+WZYJLtzscY1n6WkbAuxWWYksWTagYzLQ0x2wGEotc iwj1KyjK95QGQFEhbnj9sz/BBGxbC4tbhD+qAG7b9G33TuXvyGN3Nh69g7v+HGh0eDk5 SoAhEiOhX/60w5iWi4iDxqzimMHEZHKpFKsDZDf94lmXwEyz4bmLyqCKIGaGGEQZsGQ+ lcoHdqbuiuj+ogMI6UNQ90a02IzPHWd9sCwGH0P50do0pDg61EFAyvEbbfUiJ1Inp/Jr IJRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=sL6KRW0ydeA1AaDfP+29WhovEuYhnU4la+znTRqIi1I=; b=q5jXN1/2xbp4wCgwkvPvEuEAsY7kYHoF1/vntH/L5mYn3AImmrB0kJS7tSt2DHEwjl gL77FlIlvZPtqyD2wV8U7vpv3cRkyISWmllK5J4j9ajWolLuPCkGaa9ThLxz1fego7hd cz2Ql22b20XlQfEP1dESdBkv+DUkqvZOad5PjWXN3fIcPHKPJEQ0vFb1qSkUoKl6NcP3 lfHLQFuWLstIZPqD0Gz/F/LbLUOm9sFjTDexPl3EiCJz6EqnvyPisIawgPChbsH/RqqC j3G2nHa5SuG53mQtRP7yg6Dc+JlcmhCK4HDt/r/50RyyRU9LDz4TOG6MoaswwWCgpY3P P3bA== X-Gm-Message-State: APjAAAUAznr7QxqEBx4ZYg5sIzHQkj2kwshVpkK0jlTCPZolOmqUkRxg 2F1ZVPKN43kc24wcyqRAF54= X-Google-Smtp-Source: APXvYqwUMDJVo2TbQ1KPwvlia+7rJSkVV9LYSKB31CB10NH0tahMj6oQDeIopc5f/0kBMqsjRsYjHQ== X-Received: by 2002:a5d:62c9:: with SMTP id o9mr25488230wrv.186.1564832083707; Sat, 03 Aug 2019 04:34:43 -0700 (PDT) Received: from breton.holly.idiocy.org (94.197.121.37.threembb.co.uk. [94.197.121.37]) by smtp.gmail.com with ESMTPSA id w67sm110554979wma.24.2019.08.03.04.34.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Aug 2019 04:34:42 -0700 (PDT) Date: Sat, 3 Aug 2019 12:34:39 +0100 From: Alan Third <alan@HIDDEN> Message-ID: <20190803113439.GC31224@HIDDEN> References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> <87o9241a6n.fsf@HIDDEN> <20190727171831.GB81205@HIDDEN> <87k1c2qazy.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87k1c2qazy.fsf@HIDDEN> User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) On Sun, Jul 28, 2019 at 11:47:53PM +0300, Juri Linkov wrote: > > I suppose that subsequent M-/’s are undocumented, but the current > > behaviour is, IMO, definitely confusing as it seems to search other > > buffers for completions even though there are valid completions in the > > current buffer. > > Maybe it's possible to break out of the vicious cycle of ‘SPC M-/’ > repetitions by making ‘SPC M-/’ look like a normal expansion, e.g.: This looks good to me. The only problem is it breaks the test for bug#1948. I think it no longer squashes all the spaces. -- Alan Third
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 03 Aug 2019 21:42:02 +0000 Resent-Message-ID: <handler.36516.B36516.15648684838969 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third <alan@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.15648684838969 (code B ref 36516); Sat, 03 Aug 2019 21:42:02 +0000 Received: (at 36516) by debbugs.gnu.org; 3 Aug 2019 21:41:23 +0000 Received: from localhost ([127.0.0.1]:60147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hu1mF-0002Ka-Gb for submit <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:41:23 -0400 Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:54476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1hu1mD-0002KR-AU for 36516 <at> debbugs.gnu.org; Sat, 03 Aug 2019 17:41:22 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 18BE3501FD1; Sat, 3 Aug 2019 21:41:20 +0000 (UTC) Received: from pdx1-sub0-mail-a75.g.dreamhost.com (100-96-15-31.trex.outbound.svc.cluster.local [100.96.15.31]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 82D6F501541; Sat, 3 Aug 2019 21:41:19 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN Received: from pdx1-sub0-mail-a75.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Sat, 03 Aug 2019 21:41:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Little-Belong: 382faec93d010142_1564868479862_177988658 X-MC-Loop-Signature: 1564868479862:3470728577 X-MC-Ingress-Time: 1564868479861 Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 249C37FEB7; Sat, 3 Aug 2019 14:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=A4FzxB IlHWff6Y1XlNUDTrBB8DI=; b=hwm++LU4GoGtcL/ADn+wBiKa9M37BCX4D3SJ+7 89OJBn1M30DnNx6G6QKG/TlLniYtXtZGTma3puyyUABa7hHh+ZKGs8FVRB8+B5d5 8dVxgmRqjNz/vJ+0QRl186itYHSUpjpZwVXFT61JWi/pFyE1U01qabxBDUcHa6Ps OfNfk= Received: from mail.jurta.org (m91-129-103-76.cust.tele2.ee [91.129.103.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@HIDDEN) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 88E997F0F9; Sat, 3 Aug 2019 14:41:11 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a75 From: Juri Linkov <juri@HIDDEN> Organization: LINKOV.NET References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> <87o9241a6n.fsf@HIDDEN> <20190727171831.GB81205@HIDDEN> <87k1c2qazy.fsf@HIDDEN> <20190803113439.GC31224@HIDDEN> Date: Sat, 03 Aug 2019 23:58:13 +0300 In-Reply-To: <20190803113439.GC31224@HIDDEN> (Alan Third's message of "Sat, 3 Aug 2019 12:34:39 +0100") Message-ID: <877e7ux8q6.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddtvddgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrjeeinecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrjeeipdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprghlrghnsehiughiohgthidrohhrghenucevlhhushhtvghrufhiiigvpedt Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> Maybe it's possible to break out of the vicious cycle of =E2=80=98SPC = M-/=E2=80=99 >> repetitions by making =E2=80=98SPC M-/=E2=80=99 look like a normal exp= ansion, e.g.: > > This looks good to me. The only problem is it breaks the test for > bug#1948. I think it no longer squashes all the spaces. Sorry for breaking the test, I'll try to find a fix that will pass all te= sts. Meanwhile, I started to rely heavily on consequent calls of M-/ and today this feature reared its ugly head (so then could it be called a misfeature). Here's is the case that raises the error: 0. emacs -Q 1. Type these two lines: str 1 str 2 (optionally set debug-on-error to t) 2. On the third line type: s ;; self-insert-command M-/ ;; dabbrev-expand SPC ;; self-insert-command M-/ ;; dabbrev-expand M-/ ;; dabbrev-expand <backspace> ;; backward-delete-char-untabify <backspace> ;; backward-delete-char-untabify <backspace> ;; backward-delete-char-untabify <backspace> ;; backward-delete-char-untabify <backspace> ;; backward-delete-char-untabify The amount of <backspace> keypresses depends on the length of the random word expanded, so the intention is to delete that word and the space character. SPC ;; self-insert-command M-/ ;; dabbrev-expand and the bug is revealed that signals this error: Debugger entered--Lisp error: (search-failed "\\(?:\\sw\\|\\s_\\)+") re-search-forward("\\(?:\\sw\\|\\s_\\)+") dabbrev-expand(nil) funcall-interactively(dabbrev-expand nil) call-interactively(dabbrev-expand nil nil) command-execute(dabbrev-expand)
X-Loop: help-debbugs@HIDDEN Subject: bug#36516: Wrong dynamic abbrev expansion after space Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 22 Aug 2020 14:20:02 +0000 Resent-Message-ID: <handler.36516.B36516.15981059435693 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: Alan Third <alan@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 36516 <at> debbugs.gnu.org Received: via spool by 36516-submit <at> debbugs.gnu.org id=B36516.15981059435693 (code B ref 36516); Sat, 22 Aug 2020 14:20:02 +0000 Received: (at 36516) by debbugs.gnu.org; 22 Aug 2020 14:19:03 +0000 Received: from localhost ([127.0.0.1]:50924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1k9UMI-0001Tl-TE for submit <at> debbugs.gnu.org; Sat, 22 Aug 2020 10:19:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1k9UMG-0001TB-KZ for 36516 <at> debbugs.gnu.org; Sat, 22 Aug 2020 10:19:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2UrFtPvfbEy+kxukZXlFbsBIofMCvD5AiOrIfZCyjkc=; b=j/DhMRN2uscXIaFQIa/AwI1L4l jej8t4ku8WTvE+fK8Z3IBMbmmcbCL4swx0HLhLnS++lWqbwVBSqYM+SGEmRYHlwJnJdroh/P86CxT 2i5h/Yeivt8ZNC0UMYSMKdvFVVo0T5KMQFrzWm6gj9DukJQkr/EDGPoFoYjK/VIMnW+g=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1k9UM7-0008Ny-Gq; Sat, 22 Aug 2020 16:18:54 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <8736jks4wg.fsf@HIDDEN> <83imsg9tfk.fsf@HIDDEN> <87zhlp33kh.fsf@HIDDEN> <83k1ct6yrl.fsf@HIDDEN> <87o9241a6n.fsf@HIDDEN> <20190727171831.GB81205@HIDDEN> <87k1c2qazy.fsf@HIDDEN> <20190803113439.GC31224@HIDDEN> <877e7ux8q6.fsf@HIDDEN> X-Now-Playing: Mia Doi Todd's _Floresta_: "Portal Da Cor" Date: Sat, 22 Aug 2020 16:18:49 +0200 In-Reply-To: <877e7ux8q6.fsf@HIDDEN> (Juri Linkov's message of "Sat, 03 Aug 2019 23:58:13 +0300") Message-ID: <87pn7ilq5y.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov <juri@HIDDEN> writes: >>> Maybe it's possible to break out of the vicious cycle of =?UTF-8?Q?=E2=80=98SPC_?= =?UTF-8?Q?M-/=E2=80=99?= >>> repetitions by making =?UTF-8?Q?=E2=80=98SPC_?= =?UTF-8?Q?M-/=E2=80=99?= look like a normal expansion, e.g.: >> >> This looks good to me. The only problem is [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Juri Linkov <juri@HIDDEN> writes: >>> Maybe it's possible to break out of the vicious cycle of =E2=80=98SPC M= -/=E2=80=99 >>> repetitions by making =E2=80=98SPC M-/=E2=80=99 look like a normal expa= nsion, e.g.: >> >> This looks good to me. The only problem is it breaks the test for >> bug#1948. I think it no longer squashes all the spaces. > > Sorry for breaking the test, I'll try to find a fix that will pass all te= sts. This was a year ago -- Juri, did you get any further with this? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.