From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Malloy Newsgroups: gmane.emacs.bugs Subject: bug#8708: 24.0.50; up-list broken with custom forward-sexp-function Date: Fri, 20 May 2011 13:00:30 -0700 Message-ID: <4DD6C85E.7020103@malloys.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1305921494 5506 80.91.229.12 (20 May 2011 19:58:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 19:58:14 +0000 (UTC) To: 8708@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 20 21:58:11 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QNVpq-00074Y-GX for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 May 2011 21:58:10 +0200 Original-Received: from localhost ([::1]:56324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNVpq-0002f5-3l for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 May 2011 15:58:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNVpm-0002eu-9D for bug-gnu-emacs@gnu.org; Fri, 20 May 2011 15:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNVpk-00067l-Da for bug-gnu-emacs@gnu.org; Fri, 20 May 2011 15:58:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNVpk-00067f-Bp for bug-gnu-emacs@gnu.org; Fri, 20 May 2011 15:58:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QNVpj-0000yx-KB; Fri, 20 May 2011 15:58:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Malloy Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 May 2011 19:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8708 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.13059214313716 (code B ref -1); Fri, 20 May 2011 19:58:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2011 19:57:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QNVos-0000xt-HN for submit@debbugs.gnu.org; Fri, 20 May 2011 15:57:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QNVoq-0000xh-Tc for submit@debbugs.gnu.org; Fri, 20 May 2011 15:57:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNVok-00061C-Vc for submit@debbugs.gnu.org; Fri, 20 May 2011 15:57:04 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:58277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNVok-000618-UH for submit@debbugs.gnu.org; Fri, 20 May 2011 15:57:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNVoj-0002dq-OU for bug-gnu-emacs@gnu.org; Fri, 20 May 2011 15:57:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNVoi-00060t-Ki for bug-gnu-emacs@gnu.org; Fri, 20 May 2011 15:57:01 -0400 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:34964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNVoi-00060a-Cl for bug-gnu-emacs@gnu.org; Fri, 20 May 2011 15:57:00 -0400 Original-Received: by pzk4 with SMTP id 4so2476940pzk.0 for ; Fri, 20 May 2011 12:56:58 -0700 (PDT) Original-Received: by 10.68.36.199 with SMTP id s7mr17468pbj.131.1305921418384; Fri, 20 May 2011 12:56:58 -0700 (PDT) Original-Received: from [192.168.1.18] ([38.111.148.242]) by mx.google.com with ESMTPS id h4sm2637066pbj.2.2011.05.20.12.56.56 (version=SSLv3 cipher=OTHER); Fri, 20 May 2011 12:56:57 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 20 May 2011 15:58:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46615 Archived-At: Steps to reproduce: emacs -Q Switch to *scratch* (or any buffer) M-x lisp-mode Enter text (), move point between parens M-x up-list Point successfully moves to after the close-paren Move point back inside parens M-: (setq forward-sexp-function (lambda (n) (let ((forward-sexp-function nil)) (forward-sexp n)))) M-x up-list Expected behavior: Same as before, because this function has behavior identical to built-in forward-sexp Actual behavior: Point does not move, signal is raised, and error message is printed: up-list: Scan error: "Unbalanced parentheses", 193, 193 Bug does not exist in 23.1.1; something in the 24 series adds special handling in up-list that checks if forward-sexp-function is set and causes it to behave differently if so. Apparently that different behavior doesn't have the same net effect as the original behavior In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-05-18 on altair Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: d - s e x p - f u n c i o n t SPC DEL DEL DEL DEL DEL t i o n SPC n i l ) ) C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-f C-f n C-e C-b C-f DEL DEL ) ) DEL ( f o r w a r d - s e x p SPC n ) ) ) ) RET ESC x f o TAB r TAB w TAB s e TAB x TAB RET ESC C-f ESC x u p TAB l DEL - l i TAB RET ESC " DEL C-_ ESC : ESC p C-a C-k C-_ C-g C-g C-f C-g ESC x v e r s i o n RET ESC x l i s p SPC m o d e RET ESC x C-g ESC : ESC p RET C-b C-b C-k C-_ ESC x p a r e d TAB RET m TAB o TAB RET C-k ESC x u p SPC l i s t RET C-f ESC x ESC p RET ESC x p a r e d TAB m TAB o TAB RET C-b ESC x u p - l i TAB RET C-a ESC C-k C-_ C-f ESC C-k C-_ ESC C-k ESC C-k ESC C-k ESC C-k C-_ C-_ ESC x ESC p RET DEL DEL DEL ESC x u p TAB = - DEL DEL - l i TAB RET C-x b * M e TAB RET C-a C-@ C-n C-e C-p C-e ESC w C-a C-f C-f C-f ESC x r e p o TAB r TAB RET Recent messages: Paredit mode disabled up-list: Scan error: "Unbalanced parentheses", 196, 196 Undo! [2 times] forward-sexp: Scan error: "Containing expression ends prematurely", 193, 194 [2 times] Undo! [2 times] up-list: Scan error: "Unbalanced parentheses", 196, 196 Making completion list... up-list: Scan error: "Unbalanced parentheses", 193, 193 Mark set Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse auth-source eieio byte-opt bytecomp byte-compile assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr vc-git multi-isearch jka-compr find-func help-fns two-column iso-transl help-mode easymenu view paredit-autoloads package clojure-mode rx regexp-opt cl paredit edmacro kmacro tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)