From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stefan-W. Hahn" Newsgroups: gmane.emacs.bugs Subject: bug#17281: 24.4.50; emacs hangs in next-line Date: Thu, 17 Apr 2014 13:00:47 +0200 Organization: -no organization- 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1397732808 17993 80.91.229.3 (17 Apr 2014 11:06:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2014 11:06:48 +0000 (UTC) Cc: 17281@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 17 13:06:41 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wak9P-00052W-SQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Apr 2014 13:06:40 +0200 Original-Received: from localhost ([::1]:59728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wak9P-0004Mw-3w for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Apr 2014 07:06:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wak9E-0004Dv-6V for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 07:06:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wak4x-0003yW-L0 for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 07:02:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wak4x-0003yS-Fb for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 07:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wak4w-0007bd-OP for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2014 07:02:02 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 17281-submit@debbugs.gnu.org id=B17281.139773246329153 (code B ref 17281); Thu, 17 Apr 2014 11:02:02 +0000 Original-Received: (at 17281) by debbugs.gnu.org; 17 Apr 2014 11:01:03 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Content-Disposition: inline In-Reply-To: <83r44wi7l7.fsf@gnu.org> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88091 Archived-At: 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.