From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#45944: 28.0.50; Mailabbrev sometimes hangs Date: Mon, 18 Jan 2021 09:10:31 +0900 Organization: Emacsen advocacy group Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1004"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-cygwin) To: 45944@debbugs.gnu.org Cancel-Lock: sha1:NHnXP4UTqoCL974pwm6wMytinWM= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 18 01:12:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1I9S-00009K-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jan 2021 01:12:10 +0100 Original-Received: from localhost ([::1]:45524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1I9Q-0006MT-Rk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jan 2021 19:12:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1I9K-0006MB-Dp for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 19:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1I9K-000298-0K for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 19:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1I9J-0003Ii-RL for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 19:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2021 00:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45944 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161092868812644 (code B ref -1); Mon, 18 Jan 2021 00:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jan 2021 00:11:28 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 Original-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==; Original-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 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&( 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198066 Archived-At: 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.