From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16453: 24.3.50; Motion functions not respecting field boundaries as documented Date: Wed, 15 Jan 2014 08:17:19 -0800 (PST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389802704 2331 80.91.229.3 (15 Jan 2014 16:18:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 16:18:24 +0000 (UTC) To: 16453@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 15 17:18:29 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 1W3TAj-0005WY-5j for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 17:18:29 +0100 Original-Received: from localhost ([::1]:55746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3TAi-0004J0-OR for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 11:18:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3TAV-0004BY-Tk for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:18:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3TAJ-00078O-4d for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:18:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3TAJ-00078H-1J for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:18:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W3TAI-0005hW-Gy for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2014 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16453 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138980267621894 (code B ref -1); Wed, 15 Jan 2014 16:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jan 2014 16:17:56 +0000 Original-Received: from localhost ([127.0.0.1]:52257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3TAB-0005h3-G3 for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:17:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41580) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3TA8-0005gu-4J for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:17:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3T9x-0006yt-DR for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:17:51 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T9x-0006yp-9J for submit@debbugs.gnu.org; Wed, 15 Jan 2014 11:17:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T9o-0003Qf-Ev for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:17:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3T9f-0006sm-Gd for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:17:32 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:18667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3T9f-0006sZ-9O for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 11:17:23 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0FGHL3T027234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 Jan 2014 16:17:22 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0FGHK7I029995 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Jan 2014 16:17:20 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s0FGHJut001381 for ; Wed, 15 Jan 2014 16:17:19 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:83538 Archived-At: (elisp) `Introduction to Minibuffers' says this: The text in the minibuffer always starts with the "prompt string", the text that was specified by the program that is using the minibuffer to tell the user what sort of input to type. This text is marked read-only so you won't accidentally delete or change it. It is also marked as a field (*note Fields::), so that certain motion functions, including `beginning-of-line', `forward-word', `forward-sentence', and `forward-paragraph', stop at the boundary between the prompt and the actual text. So I would expect that `backward-word' and `backward-sexp' would stop at the field boundary, which is the end of the prompt. `beginning-of-line' does indeed do this, as the doc suggests. But `backward-word' and `backward-sexp', at least, do not - they move backward into the prompt. Seems like this is the wrong behavior, and the doc describes the right behavior. But perhaps it is the other way around and this is a doc bug. FWIW, I noticed this because I use a different Lisp symbol completion function in the minibuffer. It moves `backward-sexp' and later tries to delete the text corresponding to the symbol prefix to be completed. If that prefix is empty then it raises the error of attempting to modify read-only text. If `backward-sexp' did what the doc says then it would not leave the field and enter the prompt. This is not important to the bug report - just mentioning how I happened to notice this. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2014-01-07 on ODIEONE Bzr revision: 115916 bzg@gnu.org-20140107233629-du2solx6tmxnx0np Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include'