From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#17247: 24.4.50; end-of-defun bug in elisp Date: Tue, 20 May 2014 19:32:21 +0300 Message-ID: <537B8395.2000109@yandex.ru> References: <53576985.9090305@easy-emacs.de> <87sio5ksio.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1400603624 24362 80.91.229.3 (20 May 2014 16:33:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 16:33:44 +0000 (UTC) Cc: 17247@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 20 18:33:33 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 1Wmmyk-0007c0-0x for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 18:33:26 +0200 Original-Received: from localhost ([::1]:54527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmmyj-000050-Lu for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 May 2014 12:33:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmmyU-0008QC-LZ for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 12:33:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmmyN-0003ma-2R for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 12:33:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmmyM-0003mV-V9 for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WmmyM-00054b-EJ for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 May 2014 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17247 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17247-submit@debbugs.gnu.org id=B17247.140060355319449 (code B ref 17247); Tue, 20 May 2014 16:33:02 +0000 Original-Received: (at 17247) by debbugs.gnu.org; 20 May 2014 16:32:33 +0000 Original-Received: from localhost ([127.0.0.1]:54464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmmxt-00053c-7B for submit@debbugs.gnu.org; Tue, 20 May 2014 12:32:33 -0400 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:64706) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmmxq-00053K-BN for 17247@debbugs.gnu.org; Tue, 20 May 2014 12:32:31 -0400 Original-Received: by mail-we0-f172.google.com with SMTP id k48so794372wev.31 for <17247@debbugs.gnu.org>; Tue, 20 May 2014 09:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=3bXExTwA9k80QnA+n9SVRgUzawXp2pCtt/nZd7wN0m0=; b=yLN1im+avfs8/X0I2FpMVWuR3+E0AYJwB/qWON5JZb4xzWj7rY0thiUQGeJCOD+pqx hZZ/JyNLVtH/Q75AycWRVf6IfGA6V5qwY8SrF0QTl7fkEKs/LxZhBNMpV584RxXdYSLi ytnZqNpeEeRPT7my3TxzoYZ3SzDNSRKZ/ZKd37IvACARuDq4ZPIuatNxNDekQS44erKQ x8Bay6+wQJ/S44WZxKfNb4vTZieSmC81TifiYrI8woH/PqkK7t7Y9VnwFgAhxvHtFLB0 OatEXDkG5P3xysIdd5OCGXtn9A6/TR3zKervzVJDp+fVyQcJQT5hOg7cLe6cii/cOcnr YsJw== X-Received: by 10.180.13.113 with SMTP id g17mr5217843wic.48.1400603544450; Tue, 20 May 2014 09:32:24 -0700 (PDT) Original-Received: from [192.168.0.36] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id ej2sm18950367wjd.21.2014.05.20.09.32.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 May 2014 09:32:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: 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:89286 Archived-At: On 20.05.2014 17:20, Stefan Monnier wrote: >> Anyway, the patch below seems to work fine. Not sure what the purpose of >> `end-of-line' was there. > > As Andreas mentioned, the end-of-line is there to make sure > we "stay put" in case `pos' is already at a beginning of defun. Is the current bug invalid, then? If we "stay put" in the current defun (which starts right after point), then when passed an argument of -1, shouldn't `end-of-defun' go to the end of the previous defun, which happens to be the same position?