From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#2002: `beginning-of-defun' pushes mark undocumentedly. It shouldn't! Date: Fri, 23 Jan 2009 11:27:14 +0000 Message-ID: <20090123112714.GA3056@muc.de> Reply-To: Alan Mackenzie , 2002@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232709833 18396 80.91.229.12 (23 Jan 2009 11:23:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2009 11:23:53 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 12:25:05 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQK9o-00076e-F0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 12:25:04 +0100 Original-Received: from localhost ([127.0.0.1]:44704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQK8W-0001sR-D7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 06:23:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQK8K-0001sE-T6 for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQK8J-0001rj-8H for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:23:31 -0500 Original-Received: from [199.232.76.173] (port=41377 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQK8J-0001rg-07 for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:23:31 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57915) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQK8I-0000Je-Hx for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:23:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0NBNSbw025282; Fri, 23 Jan 2009 03:23:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0NBF30M023088; Fri, 23 Jan 2009 03:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 23 Jan 2009 11:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2002 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123270892821751 (code B ref -1); Fri, 23 Jan 2009 11:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jan 2009 11:08:48 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0NB8i2W021745 for ; Fri, 23 Jan 2009 03:08:46 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQJu0-0006f8-3o for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:08:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQJtz-0006eQ-6u for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:08:43 -0500 Original-Received: from [199.232.76.173] (port=34367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQJtz-0006eK-3M for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:08:43 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:4589 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQJty-0006w7-KC for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 06:08:42 -0500 Original-Received: (qmail 71677 invoked by uid 3782); 23 Jan 2009 11:08:40 -0000 Original-Received: from acm.muc.de (pD9E51D5E.dip.t-dialin.net [217.229.29.94]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 23 Jan 2009 12:08:38 +0100 Original-Received: (qmail 3468 invoked by uid 1000); 23 Jan 2009 11:27:14 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 23 Jan 2009 06:23:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24416 Archived-At: Hi, Emacs! I was "horrified" to find `beginning-of-defun' pushes the mark. OK, maybe I should wake up, this having been done as long ago as 2004-05-01 in .../emacs-lisp/lisp.el 1.53. However, this pushing of the mark is NOT DOCUMENTED, neither in the Emacs nor the Elisp manual. THIS IS A BUG!!!! This marking is fine (maybe) when a user types C-M-a. Actually, I think it's of marginal utility - it's about as likely to be a nuisance as to be helpful. The marking is NOT ACCEPTABLE when begining-of-defun is used in a lisp program. Using b-o-d in a program is a reasonable thing to do. The feature, if it is to remain must be documented in both manuals. OK, I'm volunteering to do this. ;-) POSSIBLE FIXES ============== 1. A new customizable option, with a name better than `defun-movement-leaves-mark'. This could be bound to nil by lisp programs. 2. Document that lisp programs should use `beginning-of-defun-raw'. (Does this exist in XEmacs?). 3. Revert b-o-d to leaving the mark well alone. What do people think? -- Alan Mackenzie (Nuremberg, Germany).