From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Strange behavior of (beginning-of-defun 0) Date: Wed, 08 Feb 2017 06:29:01 +0100 Message-ID: <87r339s12a.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486531803 5554 195.159.176.226 (8 Feb 2017 05:30:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2017 05:30:03 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50.3 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 08 06:30:00 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbKpM-0001Br-1C for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2017 06:30:00 +0100 Original-Received: from localhost ([::1]:57796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbKpQ-0002VL-2t for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2017 00:30:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbKo2-0001mZ-SJ for emacs-devel@gnu.org; Wed, 08 Feb 2017 00:28:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbKnz-0001Z4-Oz for emacs-devel@gnu.org; Wed, 08 Feb 2017 00:28:38 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:53486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbKnz-0001Yk-Is for emacs-devel@gnu.org; Wed, 08 Feb 2017 00:28:35 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id CBAD3E677F for ; Wed, 8 Feb 2017 06:28:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pzDdsNJhfahZ for ; Wed, 8 Feb 2017 06:28:28 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 517F5E64C3 for ; Wed, 8 Feb 2017 06:28:28 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212123 Archived-At: Hi all, put this in an Elisp buffer: --8<---------------cut here---------------start------------->8--- (defun a () nil) -!-(defun b () nil) --8<---------------cut here---------------end--------------->8--- put the point where the -!- is (of course, "-!-" is only a marker and should not be in the buffer;-)) and say M-: (beginning-of-defun 0) (or C-u 0 C-M-a). The point goes up one line. Is that intended? Is the behavior of (beginning-of-defun 0) defined at all? Best, -- Marcin Borkowski