From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 17 19:11:27 2021 Received: (at submit) by debbugs.gnu.org; 18 Jan 2021 00:11:28 +0000 Received: from localhost ([127.0.0.1]:45895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1I8l-0003Hs-LY for submit@debbugs.gnu.org; Sun, 17 Jan 2021 19:11:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:39672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1I8g-0003Hh-Rq for submit@debbugs.gnu.org; Sun, 17 Jan 2021 19:11:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1I8g-0006KH-Lh for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 19:11:22 -0500 Received: from crocodile.elm.relay.mailchannels.net ([23.83.212.45]:65401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1I8e-0001ks-Rr for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 19:11:22 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1C5EF34182B; Mon, 18 Jan 2021 00:10:38 +0000 (UTC) Received: from cloud1.hostforweb.net (100-98-64-179.trex.outbound.svc.cluster.local [100.98.64.179]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 33EA7341ED5; Mon, 18 Jan 2021 00:10:37 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net Received: from cloud1.hostforweb.net (cloud1.hostforweb.net [154.16.119.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/6.0.1); Mon, 18 Jan 2021 00:10:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Juvenile-Rock: 230a67276811dbf6_1610928637760_654713128 X-MC-Loop-Signature: 1610928637759:2769786048 X-MC-Ingress-Time: 1610928637759 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jpl.org; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date:Sender :Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OBy+3FDRHIfgq8Xf4qOhkqVeYTnpJEu4cQ7tlIG88Qs=; b=j2jchBDjY4jeyQdw93jevQwIIn ZpQqKuIGuo+4RLGQoHmUh/7dqkKnc9H+B0fcbo9dEXwPf+jcf4emLDbAVDEahuM7KvI8Q/kvVj6H+ cYDo+eqWQZkn8vPIn2RXHuC9hBbT6CrZvd0M0fEws2YJXkdOZ5ESLVgbWUTpGVjW3jJ5eXVrMwR9p FkG2AI+AH45+jRfTNqRJmbV3D7ATCBkhxNZQt7p7ITdW89Z+lkxWXHM0qb3AGeenn6oCEp+1me1bi CVAsHhT4YYJu00QlR7TsCPlSA3IF/7uw9yVdxAcZSJOSTvZuxltESRHm9d1QHxb0mFaPmZ2MSVlhx ID08/LHA==; Received: from 113x33x36x204.ap113.ftth.ucom.ne.jp ([113.33.36.204]:57219 helo=localhost) by cloud1.hostforweb.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l1I7v-008Kwe-Qb; Sun, 17 Jan 2021 19:10:36 -0500 Date: Mon, 18 Jan 2021 09:10:31 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Mailabbrev sometimes hangs Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:NHnXP4UTqoCL974pwm6wMytinWM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AuthUser: yamaoka@cloud1.hostforweb.net Received-SPF: pass client-ip=23.83.212.45; envelope-from=yamaoka@jpl.org; helo=crocodile.elm.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi, When expanding a mail abbrev in the message header of a message- mode buffer, it sometime hangs like it goes into an infinite loop. It's ok for Emacs on the Linux platform because I can break it by C-g. However, on Cygwin, only I can do is to kill Emacs, as C-g doesn't break a Lisp infinite loop on Emacs built on that platform. Though I haven't found out the cause of the problem so far, it seems to happen when there are some kinds of contents in the message body, and seems not to happen if the body is empty. So, a workaround I'm using now is as follows: (defadvice abbrev--default-expand (around my-narrow-to-head activate) "Narrow the messge buffer to the headers when expanding an abbrev." (save-restriction (when (message-point-in-header-p) (let ((cur (point))) (message-narrow-to-headers) (goto-char cur))) ad-do-it)) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 18:39:10 2021 Received: (at 45944) by debbugs.gnu.org; 18 Jan 2021 23:39:10 +0000 Received: from localhost ([127.0.0.1]:48786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1e74-0005Rf-K4 for submit@debbugs.gnu.org; Mon, 18 Jan 2021 18:39:10 -0500 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:48680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1e72-0005RX-Rt for 45944@debbugs.gnu.org; Mon, 18 Jan 2021 18:39:09 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 43D95341366; Mon, 18 Jan 2021 23:39:07 +0000 (UTC) Received: from cloud1.hostforweb.net (100-96-9-240.trex.outbound.svc.cluster.local [100.96.9.240]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 0F9CB341F47; Mon, 18 Jan 2021 23:39:05 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net Received: from cloud1.hostforweb.net (cloud1.hostforweb.net [154.16.119.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/6.0.1); Mon, 18 Jan 2021 23:39:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Whispering-Occur: 3bdbe7693adf8ecd_1611013146695_4175899520 X-MC-Loop-Signature: 1611013146695:2569718887 X-MC-Ingress-Time: 1611013146695 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jpl.org; s=default; h=Content-Type:MIME-Version:References:Subject:To:From:Message-ID: Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+Y/JnfAFEbX1RBeOqiodzD4x0HyhVgPsuQpE8mP8AQQ=; b=gJBGjI/yEcOTU/gSF/wmcM/yEM ACjccgGveOlR8UynoB9Qy2O3lF9gJkr2ypLPDYOQEKR6tMzo1gNNUQQcvfR69gQUz9sLFVf5aGGlw 97OjrCC+Bcw6AMaFxfyRiGmp+Q17MNXmZ8KLJJlJGLzs+IG2Kb6PWTREYqVuXzLa5Id7pt24Tjdb7 EB2bCimO6CQ+CSuX8dSfK04sxmQB/EHT+9T7JEa8V6tsxFIUgfsX8tWHeHuChWP2x9xi81zSJnPRJ emK5mWHYmGgz93I1yntIk8wNEQ/4xCWWRxhQFtiHH4wRr19gngEG7SSled5g4yrJiLFc4tLq6fM1R wBdpJ7pQ==; Received: from 113x33x36x204.ap113.ftth.ucom.ne.jp ([113.33.36.204]:59140 helo=localhost) by cloud1.hostforweb.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l1e6y-00B7hI-KH; Mon, 18 Jan 2021 18:39:04 -0500 Date: Tue, 19 Jan 2021 08:39:00 +0900 Message-ID: From: Katsumi Yamaoka To: 45944@debbugs.gnu.org Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:ryooA3pPDrJ1vb8D0Ak+5UatIvM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AuthUser: yamaoka@cloud1.hostforweb.net X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45944 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Mon, 18 Jan 2021 09:10:31 +0900, Katsumi Yamaoka wrote: > When expanding a mail abbrev in the message header of a message- > mode buffer, it sometime hangs like it goes into an infinite loop. [...] > Though I haven't found out the cause of the problem so far,... I found it. `(forward-word 1)' in the `abbrev--before-point' function takes a very long time for a certain mail body contents (`hang' I wrote first was my misregarding). Here is a recipe to reproduce the problem in `emacs -Q': 1. Create the ~/.mailrc file, if it is absent. The file needs to contain at least a line like this: --8<---------------cut here---------------start------------->8--- foo foo@example.com.invalid --8<---------------cut here---------------end--------------->8--- 2. Eval this form in the *scratch* buffer. --8<---------------cut here---------------start------------->8--- (with-current-buffer (get-buffer-create "*testing*") (erase-buffer) (insert "To: \n--text follows this line--\n\ ________________________________________________________________\n") (message-mode) (mail-abbrevs-setup) (goto-char (point-min)) (end-of-line) (pop-to-buffer (current-buffer))) --8<---------------cut here---------------end--------------->8--- 3. In To: header, enter "foo" or something another and type ",". As far as I can observe, the more "____" line is long, the more it takes a long time. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 23:47:36 2021 Received: (at 45944) by debbugs.gnu.org; 19 Jan 2021 04:47:36 +0000 Received: from localhost ([127.0.0.1]:49039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1ivX-0001Cn-Qr for submit@debbugs.gnu.org; Mon, 18 Jan 2021 23:47:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1ivW-0001CW-HI for 45944@debbugs.gnu.org; Mon, 18 Jan 2021 23:47:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=JinTf2XMiwDZhlTQLccIh6keyZQD2KptqvwmulxwNH0=; b=WSk3Fc3SqJySzgppEYOe21ja7x WrNmrzLK1ypVWMYPJ4cx0B01zEMxqxPKcVqdGBP96aHeadAuqvxVmbMJA+vaICalH29ePP4xGhAPU CgcDnImL4WgRmorwX1EomV0ZWOKYI3AzvY/VaN8P9BYarRJlcXukrPHpobzG9JkuITLU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1ivJ-0003SF-Md; Tue, 19 Jan 2021 05:47:27 +0100 From: Lars Ingebrigtsen To: Katsumi Yamaoka Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs References: X-Now-Playing: Cocteau Twins's _Treasure Hiding (4): Sessions & Rarities_: "Smile" Date: Tue, 19 Jan 2021 05:47:20 +0100 In-Reply-To: (Katsumi Yamaoka's message of "Tue, 19 Jan 2021 08:39:00 +0900") Message-ID: <87o8hlpm7b.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: Katsumi Yamaoka writes: > As far as I can observe, the more "____" line is long, the more > it takes a long time. Curious. I can reproduce this with the example code, but the function that's hanging is apparently just doing: 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-Debbugs-Envelope-To: 45944 Cc: 45944@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Katsumi Yamaoka writes: > As far as I can observe, the more "____" line is long, the more > it takes a long time. Curious. I can reproduce this with the example code, but the function that's hanging is apparently just doing: (re-search-forward (concat "^" mail-citation-prefix-regexp ".*$") nil t) When I try this manually, then it doesn't hang, which is the curious thing? So why is it hanging from a syntax-propertize perspective but not when called directly? Debugger entered--Lisp error: (quit) search-forward-regexp("^\\([ \11]*\\(\\w\\|[_.]\\)+>+\\|[ \11]*[>|]\\)+.*$" 100 noerror) (while (search-forward-regexp citation-regexp end 'noerror) (let (( (let ((citation-regexp (concat "^" message-cite-prefix-regexp ".*$" message--syntax-propertize(1 100) syntax-propertize(100) internal--syntax-propertize(7) abbrev--before-point() Anyway, this is the regexp in question: (defcustom mail-citation-prefix-regexp (purecopy "\\([ \t]*\\(\\w\\|[_.]\\)+>+\\|[ \t]*[>|]\\)+") And I guess there's some extreme backtracking going on with the \\(\\w\\|[_.]\\)+> part? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 03:30:24 2021 Received: (at 45944) by debbugs.gnu.org; 19 Jan 2021 08:30:24 +0000 Received: from localhost ([127.0.0.1]:49408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1mP9-0006p5-QZ for submit@debbugs.gnu.org; Tue, 19 Jan 2021 03:30:24 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:36300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1mP8-0006ow-AK for 45944@debbugs.gnu.org; Tue, 19 Jan 2021 03:30:22 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4DKhg04xvPz1rypc; Tue, 19 Jan 2021 09:30:20 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4DKhg02Ftdz1qrPg; Tue, 19 Jan 2021 09:30:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 5HDh3Q_G_h1d; Tue, 19 Jan 2021 09:30:19 +0100 (CET) X-Auth-Info: aPErJD/oe54uqE1tRGNtPHyqYdtNUO2fZ+1otMtQ+JlYZvGVawLEPocRwbbHggl0 Received: from igel.home (ppp-46-244-184-249.dynamic.mnet-online.de [46.244.184.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 19 Jan 2021 09:30:19 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 05BDA2C31C8; Tue, 19 Jan 2021 09:30:18 +0100 (CET) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs References: <87o8hlpm7b.fsf@gnus.org> X-Yow: Is this the line for the latest whimsical YUGOSLAVIAN drama which also makes you want to CRY and reconsider the VIETNAM WAR? Date: Tue, 19 Jan 2021 09:30:18 +0100 In-Reply-To: <87o8hlpm7b.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Jan 2021 05:47:20 +0100") Message-ID: <87eeihqqg5.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 45944 Cc: Katsumi Yamaoka , 45944@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Jan 19 2021, Lars Ingebrigtsen wrote: > And I guess there's some extreme backtracking going on with the > > \\(\\w\\|[_.]\\)+> > > part? Does `\w' match `_'? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 06:07:51 2021 Received: (at 45944) by debbugs.gnu.org; 19 Jan 2021 11:07:51 +0000 Received: from localhost ([127.0.0.1]:49579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1orW-0004Ik-Rs for submit@debbugs.gnu.org; Tue, 19 Jan 2021 06:07:51 -0500 Received: from donkey.ash.relay.mailchannels.net ([23.83.222.49]:9902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1orU-0004IZ-Li for 45944@debbugs.gnu.org; Tue, 19 Jan 2021 06:07:49 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaokac@detroit.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2B75222993; Tue, 19 Jan 2021 11:07:44 +0000 (UTC) Received: from detroit.hostforweb.net (100-96-5-82.trex.outbound.svc.cluster.local [100.96.5.82]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 3320322662; Tue, 19 Jan 2021 11:07:42 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaokac@detroit.hostforweb.net Received: from detroit.hostforweb.net (detroit.hostforweb.net [179.61.137.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/6.0.1); Tue, 19 Jan 2021 11:07:43 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaokac@detroit.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Towering-Shelf: 1c1d7e687df75edc_1611054463789_1281672886 X-MC-Loop-Signature: 1611054463789:2053929800 X-MC-Ingress-Time: 1611054463789 Received: from fp9f1c9211.stmb102.ap.nuro.jp ([159.28.146.17]:59776 helo=yamaoka.cc) by detroit.hostforweb.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l1orM-0005LR-OK; Tue, 19 Jan 2021 05:07:41 -0600 From: Katsumi Yamaoka To: schwab@linux-m68k.org Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs References: <87o8hlpm7b.fsf@gnus.org> <87eeihqqg5.fsf@igel.home> X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Date: Tue, 19 Jan 2021 20:07:36 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:ZEswDgdo6hO+KJjFBUPpvtl9v8o= MIME-Version: 1.0 Content-Type: text/plain X-AuthUser: yamaokac@detroit.hostforweb.net X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45944 Cc: larsi@gnus.org, 45944@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andreas Schwab wrote: > On Jan 19 2021, Lars Ingebrigtsen wrote: >> And I guess there's some extreme backtracking going on with the >> \\(\\w\\|[_.]\\)+> >> part? > Does `\w' match `_'? Yes it does. While the hang arises, syntax table is overridden temporarily with `mail-abbrev-syntax-table'. (mail-abbrev-make-syntax-table) (with-syntax-table mail-abbrev-syntax-table (string-match "\\w" "_")) So, it explains some strange things, doesn't it? Actually, this advice looks to solve the problem: (defadvice message--syntax-propertize (around use-standard-syntax-table activate) "Use standard-syntax-table." (with-syntax-table (standard-syntax-table) ad-do-it)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 10:09:45 2021 Received: (at 45944) by debbugs.gnu.org; 19 Jan 2021 15:09:45 +0000 Received: from localhost ([127.0.0.1]:51256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1sdc-0001Ry-Ur for submit@debbugs.gnu.org; Tue, 19 Jan 2021 10:09:45 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1sda-0001RY-B4 for 45944@debbugs.gnu.org; Tue, 19 Jan 2021 10:09:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=mPprdP518cdsuLhD//R4d3dEnTAyMUrysply/ou0EE8=; b=IPuT4k3JR4JM+YGj4T7T9WaU0d Q+DaSRKkxSc+PcPtEJwICHsfZ4Dg7NJ9HzNZlegYWF0xCQmGh45eb9kTlsPevzoTbenZvR22a6fhY 346w9ybNbq1/E5B+PaIYmIu06DgLK9kHiAl58Ytdja+sWRBWrOlbFwR1ji+NWAD+Bq7k=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1sdN-0001Qf-RR; Tue, 19 Jan 2021 16:09:35 +0100 From: Lars Ingebrigtsen To: Katsumi Yamaoka Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs References: <87o8hlpm7b.fsf@gnus.org> <87eeihqqg5.fsf@igel.home> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEXhvIzWtIblwI/F p33ivYy9oHm5nXf////+TRBGAAAAAWJLR0QHFmGI6wAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0 SU1FB+UBEw4qLzu1LSsAAAGOSURBVDjLlVNbjtswDCRnH99kXPSbJtD/ePcCOcPuCXr/S3QoKoYd FEirOLGgITmcoSKyLxNRlWdLBU9j/nk9K6Vea3H/r6yDoF6+qvxwdTVz8Re7buM4sPxyscV/uv1e 4O/+9d0J6S9uvqj6dWMGX8ssldmpYtxkbeZarbZKTrd69mbZvCmViG5Wz8ddjAXc4KspRC8i17v5 PuqwW5Xghn3f7djkDSiAx58XbV8yaiqkNJYi10XWBngeq1ByAeCPrBcPupf8evha86Yn2gARZCxW iSsd4m5jj1IZwKDpotyVC9i1n4aTfPA3tMZGZDr4kDTKIjNwykBFZ2Thcc6oLhjOzwGILsWUGPHH nHE+6uF4jipSQE/zdQ8HeuATOdPH1IETd9ETuMlRBrqfAk4q0AIrMyv32JPM+oP2fN8jYyd8ML6I HqKB2QrLPRgfdylo/iGZUZhd0uJE9l/Q62WocbRXyDM3yvF2qm5ATMt4UrqGh5DX6OmMSzRG3eaO ud+G0J7FuCW3wRNTUY7R4g+x9yii4kt7tAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMS0xOVQx NDo0Mjo0NyswMDowMD78X9wAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDEtMTlUMTQ6NDI6NDcr MDA6MDBPoedgAAAAAElFTkSuQmCC X-Now-Playing: Tired Tape Machine's =?utf-8?Q?=5FH=C3=A4lsningar_fr=C3=A5n?= skogen_: "Life Is A Joke" Date: Tue, 19 Jan 2021 16:09:28 +0100 In-Reply-To: (Katsumi Yamaoka's message of "Tue, 19 Jan 2021 20:07:36 +0900") Message-ID: <874kjdj74n.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: Katsumi Yamaoka writes: > Yes it does. While the hang arises, syntax table is overridden > temporarily with `mail-abbrev-syntax-table'. > > (mail-abbrev-make-syntax-table) > (with-syntax-table mail-abbrev-syntax-table > (str [...] 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-Debbugs-Envelope-To: 45944 Cc: schwab@linux-m68k.org, 45944@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Katsumi Yamaoka writes: > Yes it does. While the hang arises, syntax table is overridden > temporarily with `mail-abbrev-syntax-table'. > > (mail-abbrev-make-syntax-table) > (with-syntax-table mail-abbrev-syntax-table > (string-match "\\w" "_")) > > So, it explains some strange things, doesn't it? Actually, this > advice looks to solve the problem: > > (defadvice message--syntax-propertize (around use-standard-syntax-table > activate) > "Use standard-syntax-table." > (with-syntax-table (standard-syntax-table) > ad-do-it)) I've now changed the function along these lines -- it now starts with (defun message--syntax-propertize (beg end) "Syntax-propertize certain message text specially." (with-syntax-table message-mode-syntax-table and this seems to fix the reported test case. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 10:09:55 2021 Received: (at control) by debbugs.gnu.org; 19 Jan 2021 15:09:55 +0000 Received: from localhost ([127.0.0.1]:51259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1sdn-0001Sd-84 for submit@debbugs.gnu.org; Tue, 19 Jan 2021 10:09:55 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1sdl-0001SC-AA for control@debbugs.gnu.org; Tue, 19 Jan 2021 10:09:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n11govjHyYzih8ru2JzDyvfHxL+1xX8woAvu7jrf8CY=; b=Tgak+OR+xKHjZ8YxnSw4pnnIbs kD7sVL52xU9k0y3OK4Rr96Eu4oIkdnikEMU4hTy24zEHNY3rXfW25EpnAVWuFGziL2qxrIQJgkYUA Q1sLpO0/WnI9Jx9kQteNpFJ8FhYNh2fEytestKZ2KYMgXavkVKvqBy4kKQ8Hc8hVxdKw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1sdd-0001Qu-Pp for control@debbugs.gnu.org; Tue, 19 Jan 2021 16:09:47 +0100 Date: Tue, 19 Jan 2021 16:09:44 +0100 Message-Id: <87zh15hsjr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45944 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: tags 45944 fixed close 45944 28.1 quit 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-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 45944 fixed close 45944 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 16:50:34 2021 Received: (at 45944-done) by debbugs.gnu.org; 19 Jan 2021 21:50:34 +0000 Received: from localhost ([127.0.0.1]:51971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1ytR-0006NU-Dn for submit@debbugs.gnu.org; Tue, 19 Jan 2021 16:50:34 -0500 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:17938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1ytM-0006NG-0H for 45944-done@debbugs.gnu.org; Tue, 19 Jan 2021 16:50:27 -0500 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 839CB482CF0; Tue, 19 Jan 2021 21:50:22 +0000 (UTC) Received: from cloud1.hostforweb.net (100-96-45-5.trex.outbound.svc.cluster.local [100.96.45.5]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id BE565482821; Tue, 19 Jan 2021 21:50:21 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net Received: from cloud1.hostforweb.net (cloud1.hostforweb.net [154.16.119.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/6.0.1); Tue, 19 Jan 2021 21:50:22 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@cloud1.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Harmony-Daffy: 32e16cc85dac322f_1611093022306_1227699478 X-MC-Loop-Signature: 1611093022306:1115679245 X-MC-Ingress-Time: 1611093022306 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jpl.org; s=default; h=Content-Type:MIME-Version:References:Subject:Cc:To:From: Message-ID:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xFhZWI05kwJoHfIjVLAAMyth7SN58FOjc8S96EozPnI=; b=Akq6EeQKDhSSRCqiFVH2mUqT00 C+vHdjHtIMJm793FmyjnBqe91EcgSFoLCY/toswmxSbfPxk/KUio31T0gRJIpMCFc37p/ZJ8AkMJ6 oZYonp0J32GRT6OzTJPa0ZHR5LBVZctK0Y5NcPbGiKn6Pfu3zmybNqMi4fUCu4mycpWdlFk4c8qHE RuMwqIx9x+Z1htjEqOiYg955I5UiZjatNEDZUQtlIjg1Rm2vj33Hi8boLdlngMDL7ook4XSWnT5yS pxv9ksVHdC3n/86y21r0PPP4sN5P/ZRZ1Qw6564B74wy4sk3njLjvUHwJZ1B07Ge4k7+wSLugTgm8 QpX8vljg==; Received: from 113x33x36x204.ap113.ftth.ucom.ne.jp ([113.33.36.204]:52598 helo=localhost) by cloud1.hostforweb.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l1ytI-00CCJ6-H9; Tue, 19 Jan 2021 16:50:20 -0500 Date: Wed, 20 Jan 2021 06:50:15 +0900 Message-ID: From: Katsumi Yamaoka To: Lars Ingebrigtsen Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs References: <87o8hlpm7b.fsf@gnus.org> <87eeihqqg5.fsf@igel.home> <874kjdj74n.fsf@gnus.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:cjwJrZNIIC1RlgEs/BCDDEkV+io= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AuthUser: yamaoka@cloud1.hostforweb.net X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45944-done Cc: schwab@linux-m68k.org, 45944-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 19 Jan 2021 16:09:28 +0100, Lars Ingebrigtsen wrote: > I've now changed the function along these lines -- it now starts with > (defun message--syntax-propertize (beg end) > "Syntax-propertize certain message text specially." > (with-syntax-table message-mode-syntax-table > and this seems to fix the reported test case. Good! This fixes the problem that arises when manipulating the header of a reply message to the actual email I first found it. Thanks. Closing. From unknown Wed Aug 20 03:11:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 Feb 2021 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator