From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17281@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139771506830119 (code B ref -1); Thu, 17 Apr 2014 06:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Apr 2014 06:11:08 +0000 Received: from localhost ([127.0.0.1]:50158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WafXP-0007pi-3F for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:11:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45619) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WafXM-0007pB-Fo for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WafXB-0000dO-GA for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:10:58 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WafXB-0000dK-Cv for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:10:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WafX6-0004jh-7D for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 02:10:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WafX0-0000cO-WB for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 02:10:48 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:50199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WafX0-0000c9-Lm for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 02:10:42 -0400 Received: from pille.home (port-92-201-122-80.dynamic.qsc.de [92.201.122.80]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0MV2eD-1WSaVB0zQz-00YTyX; Thu, 17 Apr 2014 08:10:40 +0200 Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s3H6AcCQ031784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Apr 2014 08:10:38 +0200 Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s3H6Abv8031783; Thu, 17 Apr 2014 08:10:37 +0200 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Date: Thu, 17 Apr 2014 08:10:37 +0200 From: "Stefan-W. Hahn" Message-ID: <20140417061037.GB23131@pille.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Organization: -no organization- X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:lBkgvObf3z5vKuzeakZmduyolPLGffrf2blD2F8ox6O g+aVDWhwYpo4iV+fRf4LXBCg/8Zfb3Fa5jzjYFQmqNFB6TbDpI wg6Dic5xVtTzATevxNz9BnQIvxJPd4xMtqcyvHCQJRfNKsRGom SklWV/f63YW8xBW9jab0hmLKMLKBoX9R+NMRJrEMNBq8CoVeDB 7iBO4nSF1gZP7duMz3GzbgyFBtoPZP6TW07hR0vrCrlI22VfuO iBcJfQU4BVv4xbdPESzXeVNzSpptvCpV1NL4HiBJxLMNVOb3qp 6To1d/2dgWcXb3DekIvuP5tMdzLT9TFCy1Gzl+4sjlQbMSieYo 35MWiKvkkMqfsCwNZKI8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) In GNU Emacs 24.4.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2014-03-31 on pille commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 If loading a mail from mutt with emacsclient and emacs is in an org-mode file, emacs hangs. I use ; $Id: post.el,v 1.10 2008/02/24 23:49:23 rreid Exp $ ;; post.el --- Use (X?)Emacs(client) as an external editor for mail and new= s. to colorize my mutt mails. Stripping this down it seems, that (next-line) is the problem. I have made following simple mode: #+BEGIN_SRC: elisp "next-line.el" (defun test () (interactive) (goto-char (point-min)) (save-match-data (re-search-forward "^$" nil t)) (next-line 1)) (require 'derived) (define-derived-mode test-mode text-mode "Test" "" (test)) #+END_SRC #+BEGIN_SRC: "mutt-test" -*- mode: test; -*- =46rom: my-address@xxx.org To:=20 Cc:=20 Bcc:=20 Subject:=20 Reply-To:=20 Organization: -no organization- X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D56 --=20 my-address #+END_SRC If I now do the following, emacs hangs: - start "emacs -Q" - load next-line.el - eval-buffer - load test-neuter.org (big org-mode file) - load mutt-test If I remove the line " D56" in mutt-test, than emacs does not hang. Here is my configuration output from report-emacs-bugs: Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.4 (wheezy) Configured using: `configure --prefix=3D/opt/emacs24' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB Important settings: value of $LC_COLLATE: de_DE.UTF-8 value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: en_GB.UTF8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x b u g s =20 e m a c s - =20 =20 r e p o r r t - =20 t - Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 8 75924 4097) (symbols 24 17699 0) (miscs 20 37 148) (strings 16 10600 3890) (string-bytes 1 288533) (vectors 8 9808) (vector-slots 4 382981 1800) (floats 8 64 65) (intervals 28 226 30) (buffers 512 13) (heap 1024 14126 551)) With kind regards Stefan --=20 Stefan-W. Hahn It is easy to make things. It is hard to make things simple. From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 07:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Stefan-W. Hahn" Cc: 17281@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.13977187814230 (code B ref 17281); Thu, 17 Apr 2014 07:13:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 07:13:01 +0000 Received: from localhost ([127.0.0.1]:50198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WagVI-000169-Gz for submit@debbugs.gnu.org; Thu, 17 Apr 2014 03:13:00 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:55393) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WagVF-00015q-9Q for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 03:12:58 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N4500400YNGOQ00@a-mtaout21.012.net.il> for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 10:12:50 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N45004EJYPEI980@a-mtaout21.012.net.il>; Thu, 17 Apr 2014 10:12:50 +0300 (IDT) Date: Thu, 17 Apr 2014 10:13:02 +0300 From: Eli Zaretskii In-reply-to: <20140417061037.GB23131@pille.home> X-012-Sender: halo1@inter.net.il Message-id: <834n1sjuo1.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) > Date: Thu, 17 Apr 2014 08:10:37 +0200 > From: "Stefan-W. Hahn" > > In GNU Emacs 24.4.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10) > of 2014-03-31 on pille > > commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 Thanks for the report, but please don't cite git sha1 values alone to specify a commit; please show the full commit log message instead. As long as we use bzr as the primary VCS, git sha values don't bring enough information to identify a commit, not without some extra work. > Stripping this down it seems, that (next-line) is the problem. Sounds like another duplicate of 17269. Does setting cache-long-scans to nil solve the problem? From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17281@debbugs.gnu.org Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.13977195405576 (code B ref 17281); Thu, 17 Apr 2014 07:26:01 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 07:25:40 +0000 Received: from localhost ([127.0.0.1]:50213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaghX-0001Rr-51 for submit@debbugs.gnu.org; Thu, 17 Apr 2014 03:25:39 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:54248) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaghS-0001Rb-9F for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 03:25:35 -0400 Received: from pille.home (port-92-201-122-80.dynamic.qsc.de [92.201.122.80]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0Lz2g4-1X5T3V45Ka-0148hL; Thu, 17 Apr 2014 09:25:26 +0200 Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s3H7POP4032596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Apr 2014 09:25:24 +0200 Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s3H7PNha032595; Thu, 17 Apr 2014 09:25:23 +0200 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Date: Thu, 17 Apr 2014 09:25:23 +0200 From: "Stefan-W. Hahn" Message-ID: <20140417072523.GC23131@pille.home> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <834n1sjuo1.fsf@gnu.org> Organization: -no organization- X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:mWG3yqOQxAxWuOdIkUgy6qpDo4LMKcuDjNA78D/d6vZ AdFEuH3ryGzPeqVgibokJ18cSe/hwmqsOMERglFwZfyfRxyzTL oaYxplsGe7mQpklKD3u6JC4318ZMLXCH8UsZVI/+hDCFqd95rF AlWW8cseVNMwMlBFZdJ4NF9ifeRyH0DF1Y9uXtBnf2e+GyLG7y 1DqFGuaRnItUmuht//V2dpG0hzdsBHCWyaoDR39a3q8NhvN7WD bMttruRiyj4rJT6YjNF50ZiEUftW4N3H30Jl0nVxZvRImRhOcq iESswJD9SzbFQIBlZvO8HYdqVRpK0mpxE6dIQyp0GOI1O3MeVf RMsuF2gL2cRt+zl3zsfw= X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.0 (/) Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 10:13:02 +0300: > > Date: Thu, 17 Apr 2014 08:10:37 +0200 > > From: "Stefan-W. Hahn" > > > > In GNU Emacs 24.4.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10) > > of 2014-03-31 on pille > > > > commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 > > Thanks for the report, but please don't cite git sha1 values alone to > specify a commit; please show the full commit log message instead. As > long as we use bzr as the primary VCS, git sha values don't bring > enough information to identify a commit, not without some extra work. Sorry, commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 Author: Dmitry Antipov Date: Mon Mar 31 11:13:58 2014 +0400 * search.c (Freplace_match): Use make_specified_string. * xterm.c, w32term.c (x_set_glyph_string_gc): Use emacs_abort to catch bogus override face of glyph strings. > > > Stripping this down it seems, that (next-line) is the problem. > > Sounds like another duplicate of 17269. Does setting cache-long-scans > to nil solve the problem? No it does not solve it. With kind regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple. From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Stefan-W. Hahn" Cc: 17281@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.13977216089309 (code B ref 17281); Thu, 17 Apr 2014 08:01:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 08:00:08 +0000 Received: from localhost ([127.0.0.1]:50260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WahEp-0002PZ-CF for submit@debbugs.gnu.org; Thu, 17 Apr 2014 04:00:06 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:59461) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WahEl-0002OZ-5a for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 04:00:00 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N4600J000VM2B00@a-mtaout20.012.net.il> for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 10:59:52 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4600I680VSD4B0@a-mtaout20.012.net.il>; Thu, 17 Apr 2014 10:59:52 +0300 (IDT) Date: Thu, 17 Apr 2014 11:00:05 +0300 From: Eli Zaretskii In-reply-to: <20140417072523.GC23131@pille.home> X-012-Sender: halo1@inter.net.il Message-id: <83y4z4idx6.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) > Date: Thu, 17 Apr 2014 09:25:23 +0200 > From: "Stefan-W. Hahn" > Cc: 17281@debbugs.gnu.org > > Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 10:13:02 +0300: > > > Date: Thu, 17 Apr 2014 08:10:37 +0200 > > > From: "Stefan-W. Hahn" > > > > > > In GNU Emacs 24.4.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10) > > > of 2014-03-31 on pille > > > > > > commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 > > > > Thanks for the report, but please don't cite git sha1 values alone to > > specify a commit; please show the full commit log message instead. As > > long as we use bzr as the primary VCS, git sha values don't bring > > enough information to identify a commit, not without some extra work. > > Sorry, > > commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 > Author: Dmitry Antipov > Date: Mon Mar 31 11:13:58 2014 +0400 > > * search.c (Freplace_match): Use make_specified_string. > * xterm.c, w32term.c (x_set_glyph_string_gc): Use emacs_abort > to catch bogus override face of glyph strings. Thanks. > > > Stripping this down it seems, that (next-line) is the problem. > > > > Sounds like another duplicate of 17269. Does setting cache-long-scans > > to nil solve the problem? > > No it does not solve it. Then it's a different bug. Are you sure it didn't happen before the above commit? I seem to be able to reproduce it as far back as Mar 15 (I have no easy way of trying older versions, due to changes in Lisp files involved in this recipe). From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 08:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17281@debbugs.gnu.org Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139772338612453 (code B ref 17281); Thu, 17 Apr 2014 08:30:03 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 08:29:46 +0000 Received: from localhost ([127.0.0.1]:50291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WahhY-0003El-Mt for submit@debbugs.gnu.org; Thu, 17 Apr 2014 04:29:45 -0400 Received: from moutng.kundenserver.de ([212.227.17.24]:52527) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WahhV-0003ES-G3 for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 04:29:42 -0400 Received: from pille.home (port-92-201-122-80.dynamic.qsc.de [92.201.122.80]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0LjJi3-1X5efC3L5T-00dYtw; Thu, 17 Apr 2014 10:29:34 +0200 Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s3H8TVEr000736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Apr 2014 10:29:32 +0200 Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s3H8TVMq000735; Thu, 17 Apr 2014 10:29:31 +0200 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Date: Thu, 17 Apr 2014 10:29:31 +0200 From: "Stefan-W. Hahn" Message-ID: <20140417082931.GD23131@pille.home> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <83y4z4idx6.fsf@gnu.org> Organization: -no organization- X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:bNNwFUwb6xfE0AU5+s/PRS8Lu2hc0lTFbypOFIFw9WQ Zo1S4411Ipzf25dgimvXgjYP9wJcnA+Z18JHWCi1Rp3UjDOW6B BSvZd8m4Xx9WH61m/F2rLzn06M3F3689M5T8EL3dPfSM6pa8nP o27LCIjXmi018rHaC08Ua4aIdapwIgKXN/yoYmTn11hpMxFNfD Y2iIW8aYokqncjlguRsYLVfFsHc6imQidI8rZktjUogc8fTgaj DTLf5M1udZ8rltU3cn/hhTqFr6xfsfogYK8eo8/AwOYKZdR5np qsboLZmwT8NQpagED2M1cOr68p8uqjBcCjgLpxjuu6JtR+pbFZ F/z1/tGUVAjB6K9lKDQU= X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.0 (/) Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 11:00:05 +0300: > > Date: Thu, 17 Apr 2014 09:25:23 +0200 > > From: "Stefan-W. Hahn" > > Cc: 17281@debbugs.gnu.org > > > Then it's a different bug. Are you sure it didn't happen before the > above commit? I seem to be able to reproduce it as far back as Mar 15 > (I have no easy way of trying older versions, due to changes in Lisp > files involved in this recipe). I tried it back till 17. Dec 2013, but not all versions are compileable. All tried vesions have the same problem. I even tried to debug it and I came to line-pixel-height (xdisp.c), which calls start-display(). I made a debug output in line-pixel-height before the call to start_display() and after. In the problematic case I never saw the debug output after start_display(). With kind regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple. From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 09:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Stefan-W. Hahn" Cc: 17281@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139772538516121 (code B ref 17281); Thu, 17 Apr 2014 09:04:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 09:03:05 +0000 Received: from localhost ([127.0.0.1]:50303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaiDp-0004Bx-0J for submit@debbugs.gnu.org; Thu, 17 Apr 2014 05:03:05 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:38960) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaiDj-0004BK-JS for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 05:03:01 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N4600J003LBLR00@a-mtaout20.012.net.il> for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 12:02:52 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4600JZK3SQFT30@a-mtaout20.012.net.il>; Thu, 17 Apr 2014 12:02:50 +0300 (IDT) Date: Thu, 17 Apr 2014 12:03:03 +0300 From: Eli Zaretskii In-reply-to: <20140417082931.GD23131@pille.home> X-012-Sender: halo1@inter.net.il Message-id: <83wqeoib08.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) > Date: Thu, 17 Apr 2014 10:29:31 +0200 > From: "Stefan-W. Hahn" > Cc: 17281@debbugs.gnu.org > > Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 11:00:05 +0300: > > > Date: Thu, 17 Apr 2014 09:25:23 +0200 > > > From: "Stefan-W. Hahn" > > > Cc: 17281@debbugs.gnu.org > > > > > Then it's a different bug. Are you sure it didn't happen before the > > above commit? I seem to be able to reproduce it as far back as Mar 15 > > (I have no easy way of trying older versions, due to changes in Lisp > > files involved in this recipe). > > I tried it back till 17. Dec 2013, but not all versions are compileable. > All tried vesions have the same problem. > > I even tried to debug it and I came to line-pixel-height (xdisp.c), which > calls start-display(). I made a debug output in line-pixel-height before the > call to start_display() and after. In the problematic case I never saw the > debug output after start_display(). The infloop was indeed inside line-pixel-height. Please try the patch below, which I just committed to the emacs-24 branch. It fixes your recipe, so I hope the original use case with emacsclient will also be fixed. === modified file 'src/xdisp.c' --- src/xdisp.c 2014-04-12 11:21:47 +0000 +++ src/xdisp.c 2014-04-17 08:58:59 +0000 @@ -1262,12 +1262,23 @@ Value is the height in pixels of the lin struct it it; struct text_pos pt; struct window *w = XWINDOW (selected_window); + struct buffer *old_buffer = NULL; + Lisp_Object result; + if (XBUFFER (w->contents) != current_buffer) + { + old_buffer = current_buffer; + set_buffer_internal_1 (XBUFFER (w->contents)); + } SET_TEXT_POS (pt, PT, PT_BYTE); start_display (&it, w, pt); it.vpos = it.current_y = 0; last_height = 0; - return make_number (line_bottom_y (&it)); + result = make_number (line_bottom_y (&it)); + if (old_buffer) + set_buffer_internal_1 (old_buffer); + + return result; } /* Return the default pixel height of text lines in window W. The From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: stefan.hahn@s-hahn.de, Stefan Monnier Cc: 17281@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139772980923971 (code B ref 17281); Thu, 17 Apr 2014 10:17:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 10:16:49 +0000 Received: from localhost ([127.0.0.1]:50362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WajNB-0006EY-3U for submit@debbugs.gnu.org; Thu, 17 Apr 2014 06:16:49 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:37019) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WajN7-0006EF-Va for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 06:16:47 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N4600B006SWM900@mtaout25.012.net.il> for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 13:14:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N46007P174ORP50@mtaout25.012.net.il>; Thu, 17 Apr 2014 13:14:49 +0300 (IDT) Date: Thu, 17 Apr 2014 13:16:52 +0300 From: Eli Zaretskii In-reply-to: <83wqeoib08.fsf@gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <83r44wi7l7.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) Btw, just FYI, this code: (defun test () (interactive) (goto-char (point-min)) (save-match-data (re-search-forward "^$" nil t)) (next-line 1)) doesn't do what you think. next-line does TRT for the selected window, but in this case the mode function 'test' runs when the buffer that visits the file is not yet displayed in any window, certainly not in the selected one. You want to call forward-line instead. Stefan (Monnier), this raises a general issue with next-line: is it supposed to work accurately in a buffer that is not the currently selected window's buffer? If so, the call to line-pixel-height should be made after switching to the current buffer in the selected window. Right now, line-pixel-height returns its result computed for the selected window, which is OK when next-line is invoked interactively, but not if it is part of some non-interactive code, such as the mode function in this case. From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17281@debbugs.gnu.org, Stefan Monnier Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773246329153 (code B ref 17281); Thu, 17 Apr 2014 11:02:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 11:01:03 +0000 Received: from localhost ([127.0.0.1]:50385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wak3y-0007Zw-80 for submit@debbugs.gnu.org; Thu, 17 Apr 2014 07:01:02 -0400 Received: from moutng.kundenserver.de ([212.227.17.24]:52019) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wak3t-0007ZU-NH for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 07:00:58 -0400 Received: from pille.home (port-92-201-122-80.dynamic.qsc.de [92.201.122.80]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0M9XvL-1WfODl2dJ9-00D1Cy; Thu, 17 Apr 2014 13:00:51 +0200 Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s3HB0mt1028675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Apr 2014 13:00:48 +0200 Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s3HB0lHC028674; Thu, 17 Apr 2014 13:00:47 +0200 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Date: Thu, 17 Apr 2014 13:00:47 +0200 From: "Stefan-W. Hahn" Message-ID: <20140417110047.GE23131@pille.home> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <83r44wi7l7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <83r44wi7l7.fsf@gnu.org> Organization: -no organization- X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:4uLJWFkPaeNX8HvQlK8120PRiDrldLoWg2cABhKrBYU WVdfV0m8YI1F0LZH2CRolDwF677BGo9H9/rqJRX78L/Oja3aYE /3ZlTcDWZmP19GPSi4nx0LOzvzrdRFeIkDkhotv22S2e4C+1uS //Gl4Ll14URAXMbzgdugdAzWzfXO0gA2F26mNKvP9z3gLi/VZZ 42QBd6Pf9Iha0M/xvAtYoY47iV4ZOGXxpEzf/WuBVYS6OJ4xs5 o+Unofmg4FT7Akkvwq3Uesyo04KBttrcdZeAR/xX43sLitIiKK JKwf++Ct1c1FPcAieJRADYaJVzOLmxG3gRq11WfQ68+617z9Ie pAR+GwyxsQI+5iYY7PsM= X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.0 (/) Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 13:16:52 +0300: > Btw, just FYI, this code: > > (defun test () > (interactive) > (goto-char (point-min)) > (save-match-data (re-search-forward "^$" nil t)) > (next-line 1)) > > doesn't do what you think. next-line does TRT for the selected > window, but in this case the mode function 'test' runs when the buffer > that visits the file is not yet displayed in any window, certainly not > in the selected one. You want to call forward-line instead. Thx. It's just an excerpt from ; $Id: post.el,v 1.10 2008/02/24 23:49:23 rreid Exp $ ;; post.el --- Use (X?)Emacs(client) as an external editor for mail and news. #+BEGIN_SRC elisp (defun post-goto-body () "Go to the beginning of the message body." (interactive) (goto-char (point-min)) ;; If the message has header, slide downward. (and header-mode (save-match-data (re-search-forward "^$" nil t)) (next-line 1)) ) #+END_SRC Is there a better mode for writing emails (I use mutt calling emacs for that). With kind regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple. From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Stefan-W. Hahn" Cc: 17281@debbugs.gnu.org, monnier@iro.umontreal.ca Reply-To: Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773393931738 (code B ref 17281); Thu, 17 Apr 2014 11:26:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 11:25:39 +0000 Received: from localhost ([127.0.0.1]:50393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WakRm-0008Fp-Ne for submit@debbugs.gnu.org; Thu, 17 Apr 2014 07:25:39 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:40955) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WakRi-0008FY-SV for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 07:25:36 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N4600B009Y8AD00@mtaout24.012.net.il> for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 14:23:38 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N46005PKABEXE70@mtaout24.012.net.il>; Thu, 17 Apr 2014 14:23:38 +0300 (IDT) Date: Thu, 17 Apr 2014 14:25:40 +0300 From: Eli Zaretskii In-reply-to: <20140417110047.GE23131@pille.home> X-012-Sender: halo1@inter.net.il Message-id: <83k3aoi4ej.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <83r44wi7l7.fsf@gnu.org> <20140417110047.GE23131@pille.home> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) > Date: Thu, 17 Apr 2014 13:00:47 +0200 > From: "Stefan-W. Hahn" > Cc: Stefan Monnier , 17281@debbugs.gnu.org > > Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 13:16:52 +0300: > > Btw, just FYI, this code: > > > > (defun test () > > (interactive) > > (goto-char (point-min)) > > (save-match-data (re-search-forward "^$" nil t)) > > (next-line 1)) > > > > doesn't do what you think. next-line does TRT for the selected > > window, but in this case the mode function 'test' runs when the buffer > > that visits the file is not yet displayed in any window, certainly not > > in the selected one. You want to call forward-line instead. > > Thx. > > It's just an excerpt from > > ; $Id: post.el,v 1.10 2008/02/24 23:49:23 rreid Exp $ > ;; post.el --- Use (X?)Emacs(client) as an external editor for mail and news. > > #+BEGIN_SRC elisp > (defun post-goto-body () > "Go to the beginning of the message body." > (interactive) > (goto-char (point-min)) > ;; If the message has header, slide downward. > (and header-mode (save-match-data (re-search-forward "^$" nil t)) > (next-line 1)) > ) > #+END_SRC If this function can be invoked when the message is not displayed in the currently selected window, next-line will not work correctly, because it assumes it's invoked in the selected window. (It will still do a perfect job in many cases, though, as long as the selected window doesn't use any fonts or faces that significantly change the size of the current line.) > Is there a better mode for writing emails (I use mutt calling emacs for > that). There are many ways of using Emacs for email, but that's tangential to the issue at point. Is the original problem solved by the patch I showed? From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 12:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17281@debbugs.gnu.org, stefan.hahn@s-hahn.de Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773827211751 (code B ref 17281); Thu, 17 Apr 2014 12:38:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 12:37:52 +0000 Received: from localhost ([127.0.0.1]:50529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WalZg-00033S-6n for submit@debbugs.gnu.org; Thu, 17 Apr 2014 08:37:52 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:50299) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WalZb-00033D-Oa for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 08:37:49 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3HCbjtE015632; Thu, 17 Apr 2014 08:37:46 -0400 Received: by pastel.home (Postfix, from userid 20848) id 4BD35600DB; Thu, 17 Apr 2014 08:37:45 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <83r44wi7l7.fsf@gnu.org> Date: Thu, 17 Apr 2014 08:37:45 -0400 In-Reply-To: <83r44wi7l7.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Apr 2014 13:16:52 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4915=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4915> : inlines <744> : streams <1161443> : uri <1731994> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (--) > Stefan (Monnier), this raises a general issue with next-line: is it > supposed to work accurately in a buffer that is not the currently > selected window's buffer? No. Stefan From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 12:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Stefan-W. Hahn" Cc: 17281@debbugs.gnu.org, Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773838211996 (code B ref 17281); Thu, 17 Apr 2014 12:40:01 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 12:39:42 +0000 Received: from localhost ([127.0.0.1]:50534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WalbS-00037Q-0C for submit@debbugs.gnu.org; Thu, 17 Apr 2014 08:39:42 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:48855) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WalbP-00037G-DN for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 08:39:40 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3HCdaEp029665; Thu, 17 Apr 2014 08:39:37 -0400 Received: by pastel.home (Postfix, from userid 20848) id A500B600DB; Thu, 17 Apr 2014 08:39:36 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <83r44wi7l7.fsf@gnu.org> <20140417110047.GE23131@pille.home> Date: Thu, 17 Apr 2014 08:39:36 -0400 In-Reply-To: <20140417110047.GE23131@pille.home> (Stefan-W. Hahn's message of "Thu, 17 Apr 2014 13:00:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4915=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4915> : inlines <744> : streams <1161444> : uri <1731996> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (--) > It's just an excerpt from [...] > ;; post.el --- Use (X?)Emacs(client) as an external editor for mail and news. [...] > (next-line 1)) C-h f next-line: [...] This function is for interactive use only; in Lisp code use `forward-line' instead. [...] I.e. please report this to post.el's maintainers. Stefan From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 17281@debbugs.gnu.org, stefan.hahn@s-hahn.de Reply-To: Eli Zaretskii Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773887512937 (code B ref 17281); Thu, 17 Apr 2014 12:48:01 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 12:47:55 +0000 Received: from localhost ([127.0.0.1]:50552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaljO-0003Ma-V1 for submit@debbugs.gnu.org; Thu, 17 Apr 2014 08:47:55 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:47136) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WaljM-0003MG-91 for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 08:47:53 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N4600L00E1UKR00@a-mtaout20.012.net.il> for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 15:47:45 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4600L22E7LDZ50@a-mtaout20.012.net.il>; Thu, 17 Apr 2014 15:47:45 +0300 (IDT) Date: Thu, 17 Apr 2014 15:47:58 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83fvlci0ld.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <83r44wi7l7.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) > From: Stefan Monnier > Cc: stefan.hahn@s-hahn.de, 17281@debbugs.gnu.org > Date: Thu, 17 Apr 2014 08:37:45 -0400 > > > Stefan (Monnier), this raises a general issue with next-line: is it > > supposed to work accurately in a buffer that is not the currently > > selected window's buffer? > > No. OK, then the fix in line-pixel-height I committed to prevent it from inflooping should be good enough. Those who use next-line from a buffer that is not in the selected window will simply get a value from a potentially different buffer. From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17281@debbugs.gnu.org Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773941713876 (code B ref 17281); Thu, 17 Apr 2014 12:57:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 12:56:57 +0000 Received: from localhost ([127.0.0.1]:50560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wals8-0003bi-52 for submit@debbugs.gnu.org; Thu, 17 Apr 2014 08:56:56 -0400 Received: from moutng.kundenserver.de ([212.227.17.24]:51790) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wals2-0003bN-Gb for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 08:56:51 -0400 Received: from pille.home (port-92-201-122-80.dynamic.qsc.de [92.201.122.80]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0M5xYf-1Wu60R1ZM1-00xubO; Thu, 17 Apr 2014 14:56:42 +0200 Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s3HCudFu025220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Apr 2014 14:56:40 +0200 Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s3HCubxe025219; Thu, 17 Apr 2014 14:56:37 +0200 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Date: Thu, 17 Apr 2014 14:56:37 +0200 From: "Stefan-W. Hahn" Message-ID: <20140417125636.GH23131@pille.home> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <83wqeoib08.fsf@gnu.org> Organization: -no organization- X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:5u7gUamWkVgr11TLabo9BIS104+WBDczbLSaaTCTRu+ 2z4pFw6uy9gND1nas5bbojkRv0oSCbUt0DBSwGPuEI8T9IaDBt poZeFl5Pe96QrxT9DQmQl7hSB/MP9Sst8X29bG1KL2kiToe/fv ZxKgLODHH0ODGAHyQZxA4FpOypH46ZIClJWn7YXSSmssshxR8+ u46R+UkDwT40/3/SdZA7FvtF1ZmVzwy4d20RiNzpui/DeACucr +KP4msdmQ515tSxJ9bGovl2PtiT/DbTGxhXrj+hOymrIAIW9zV qcRmx6OjRCz0P8ONAceJBKw57jE4dE1ijyqxTWv7SVISJKM4Pv KEZnoMIc29GJirTixNVM= X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.0 (/) Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 12:03:03 +0300: > > Date: Thu, 17 Apr 2014 10:29:31 +0200 > > From: "Stefan-W. Hahn" > > Cc: 17281@debbugs.gnu.org > > > > Mail von Eli Zaretskii, Thu, 17 Apr 2014 at 11:00:05 +0300: > > > > Date: Thu, 17 Apr 2014 09:25:23 +0200 > > > > From: "Stefan-W. Hahn" > > > > Cc: 17281@debbugs.gnu.org > > > > > > > Then it's a different bug. Are you sure it didn't happen before the > > > above commit? I seem to be able to reproduce it as far back as Mar 15 > > > (I have no easy way of trying older versions, due to changes in Lisp > > > files involved in this recipe). > > > > I tried it back till 17. Dec 2013, but not all versions are compileable. > > All tried vesions have the same problem. > > > > I even tried to debug it and I came to line-pixel-height (xdisp.c), which > > calls start-display(). I made a debug output in line-pixel-height before the > > call to start_display() and after. In the problematic case I never saw the > > debug output after start_display(). > > The infloop was indeed inside line-pixel-height. Please try the patch > below, which I just committed to the emacs-24 branch. It fixes your > recipe, so I hope the original use case with emacsclient will also be > fixed. Yes your patch fixes the problem in the stripped down case and also in my use case with mutt. Thanks for your quick response. P.S. "make bootstrap" did the trick to build emacs. With kind regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple. From unknown Fri Aug 15 17:18:42 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Stefan-W. Hahn" Subject: bug#17281: closed (Re: bug#17281: 24.4.50; emacs hangs in next-line) Message-ID: References: <83d2gghzf1.fsf@gnu.org> <20140417061037.GB23131@pille.home> X-Gnu-PR-Message: they-closed 17281 X-Gnu-PR-Package: emacs Reply-To: 17281@debbugs.gnu.org Date: Thu, 17 Apr 2014 13:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1397740442-15784-1" This is a multi-part message in MIME format... ------------=_1397740442-15784-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17281: 24.4.50; emacs hangs in next-line which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17281@debbugs.gnu.org. --=20 17281: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17281 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1397740442-15784-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17281-done) by debbugs.gnu.org; 17 Apr 2014 13:13:20 +0000 Received: from localhost ([127.0.0.1]:50568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wam7z-00045G-2V for submit@debbugs.gnu.org; Thu, 17 Apr 2014 09:13:19 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:51446) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wam7v-00044z-Q2 for 17281-done@debbugs.gnu.org; Thu, 17 Apr 2014 09:13:16 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N4600L00F4ESQ00@a-mtaout20.012.net.il> for 17281-done@debbugs.gnu.org; Thu, 17 Apr 2014 16:13:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4600LRLFDXDZ90@a-mtaout20.012.net.il>; Thu, 17 Apr 2014 16:13:09 +0300 (IDT) Date: Thu, 17 Apr 2014 16:13:22 +0300 From: Eli Zaretskii Subject: Re: bug#17281: 24.4.50; emacs hangs in next-line In-reply-to: <20140417125636.GH23131@pille.home> X-012-Sender: halo1@inter.net.il To: "Stefan-W. Hahn" Message-id: <83d2gghzf1.fsf@gnu.org> References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <20140417125636.GH23131@pille.home> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17281-done Cc: 17281-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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 (+) > Date: Thu, 17 Apr 2014 14:56:37 +0200 > From: "Stefan-W. Hahn" > Cc: 17281@debbugs.gnu.org > > > The infloop was indeed inside line-pixel-height. Please try the patch > > below, which I just committed to the emacs-24 branch. It fixes your > > recipe, so I hope the original use case with emacsclient will also be > > fixed. > > Yes your patch fixes the problem in the stripped down case and also in my > use case with mutt. > > Thanks for your quick response. Great, closing. ------------=_1397740442-15784-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Apr 2014 06:11:08 +0000 Received: from localhost ([127.0.0.1]:50158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WafXP-0007pi-3F for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:11:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45619) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WafXM-0007pB-Fo for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WafXB-0000dO-GA for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:10:58 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WafXB-0000dK-Cv for submit@debbugs.gnu.org; Thu, 17 Apr 2014 02:10:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WafX6-0004jh-7D for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 02:10:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WafX0-0000cO-WB for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 02:10:48 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:50199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WafX0-0000c9-Lm for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 02:10:42 -0400 Received: from pille.home (port-92-201-122-80.dynamic.qsc.de [92.201.122.80]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0MV2eD-1WSaVB0zQz-00YTyX; Thu, 17 Apr 2014 08:10:40 +0200 Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s3H6AcCQ031784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Apr 2014 08:10:38 +0200 Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s3H6Abv8031783; Thu, 17 Apr 2014 08:10:37 +0200 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Date: Thu, 17 Apr 2014 08:10:37 +0200 From: "Stefan-W. Hahn" To: bug-gnu-emacs@gnu.org Subject: 24.4.50; emacs hangs in next-line Message-ID: <20140417061037.GB23131@pille.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Organization: -no organization- X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:lBkgvObf3z5vKuzeakZmduyolPLGffrf2blD2F8ox6O g+aVDWhwYpo4iV+fRf4LXBCg/8Zfb3Fa5jzjYFQmqNFB6TbDpI wg6Dic5xVtTzATevxNz9BnQIvxJPd4xMtqcyvHCQJRfNKsRGom SklWV/f63YW8xBW9jab0hmLKMLKBoX9R+NMRJrEMNBq8CoVeDB 7iBO4nSF1gZP7duMz3GzbgyFBtoPZP6TW07hR0vrCrlI22VfuO iBcJfQU4BVv4xbdPESzXeVNzSpptvCpV1NL4HiBJxLMNVOb3qp 6To1d/2dgWcXb3DekIvuP5tMdzLT9TFCy1Gzl+4sjlQbMSieYo 35MWiKvkkMqfsCwNZKI8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) In GNU Emacs 24.4.50.2 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2014-03-31 on pille commit 79bbb1454f3e44bf69096f03c26bb42f4930e591 If loading a mail from mutt with emacsclient and emacs is in an org-mode file, emacs hangs. I use ; $Id: post.el,v 1.10 2008/02/24 23:49:23 rreid Exp $ ;; post.el --- Use (X?)Emacs(client) as an external editor for mail and new= s. to colorize my mutt mails. Stripping this down it seems, that (next-line) is the problem. I have made following simple mode: #+BEGIN_SRC: elisp "next-line.el" (defun test () (interactive) (goto-char (point-min)) (save-match-data (re-search-forward "^$" nil t)) (next-line 1)) (require 'derived) (define-derived-mode test-mode text-mode "Test" "" (test)) #+END_SRC #+BEGIN_SRC: "mutt-test" -*- mode: test; -*- =46rom: my-address@xxx.org To:=20 Cc:=20 Bcc:=20 Subject:=20 Reply-To:=20 Organization: -no organization- X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D56 --=20 my-address #+END_SRC If I now do the following, emacs hangs: - start "emacs -Q" - load next-line.el - eval-buffer - load test-neuter.org (big org-mode file) - load mutt-test If I remove the line " D56" in mutt-test, than emacs does not hang. Here is my configuration output from report-emacs-bugs: Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.4 (wheezy) Configured using: `configure --prefix=3D/opt/emacs24' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB Important settings: value of $LC_COLLATE: de_DE.UTF-8 value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: en_GB.UTF8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x b u g s =20 e m a c s - =20 =20 r e p o r r t - =20 t - Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 8 75924 4097) (symbols 24 17699 0) (miscs 20 37 148) (strings 16 10600 3890) (string-bytes 1 288533) (vectors 8 9808) (vector-slots 4 382981 1800) (floats 8 64 65) (intervals 28 226 30) (buffers 512 13) (heap 1024 14126 551)) With kind regards Stefan --=20 Stefan-W. Hahn It is easy to make things. It is hard to make things simple. ------------=_1397740442-15784-1-- From unknown Fri Aug 15 17:18:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17281: 24.4.50; emacs hangs in next-line Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Apr 2014 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17281 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17281@debbugs.gnu.org, stefan.hahn@s-hahn.de Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139774058116083 (code B ref 17281); Thu, 17 Apr 2014 13:17:02 +0000 Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 13:16:21 +0000 Received: from localhost ([127.0.0.1]:50574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WamAu-0004BJ-9G for submit@debbugs.gnu.org; Thu, 17 Apr 2014 09:16:20 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:48572) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WamAr-0004B6-EZ for 17281@debbugs.gnu.org; Thu, 17 Apr 2014 09:16:18 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3HDGFSl005950; Thu, 17 Apr 2014 09:16:16 -0400 Received: by pastel.home (Postfix, from userid 20848) id B8198600DB; Thu, 17 Apr 2014 09:16:15 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20140417061037.GB23131@pille.home> <834n1sjuo1.fsf@gnu.org> <20140417072523.GC23131@pille.home> <83y4z4idx6.fsf@gnu.org> <20140417082931.GD23131@pille.home> <83wqeoib08.fsf@gnu.org> <83r44wi7l7.fsf@gnu.org> <83fvlci0ld.fsf@gnu.org> Date: Thu, 17 Apr 2014 09:16:15 -0400 In-Reply-To: <83fvlci0ld.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Apr 2014 15:47:58 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4915=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4915> : inlines <744> : streams <1161466> : uri <1732028> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (--) >> > Stefan (Monnier), this raises a general issue with next-line: is it >> > supposed to work accurately in a buffer that is not the currently >> > selected window's buffer? >> No. > OK, then the fix in line-pixel-height I committed to prevent it from > inflooping should be good enough. Yes, that's perfectly fine, thank you, Stefan