From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Ecay Newsgroups: gmane.emacs.bugs Subject: bug#13529: 24.3.50; wrong-type-argument with show-paren-mode Date: Tue, 22 Jan 2013 18:59:00 -0500 Message-ID: <87libkepmj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358899451 12012 80.91.229.3 (23 Jan 2013 00:04:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 00:04:11 +0000 (UTC) To: 13529@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 01:04:29 2013 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 1TxnpK-0003Yr-VY for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 01:04:27 +0100 Original-Received: from localhost ([::1]:51807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txnp3-0000qx-Ri for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2013 19:04:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxnoO-0000pZ-TF for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 19:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txnnn-0003mJ-4b for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 19:03:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txnnn-0003mF-13 for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 19:02:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Txnow-0007TT-6M for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 19:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Ecay Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jan 2013 00:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13529 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.135889939128619 (code B ref -1); Wed, 23 Jan 2013 00:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jan 2013 00:03:11 +0000 Original-Received: from localhost ([127.0.0.1]:45241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Txno7-0007RW-3E for submit@debbugs.gnu.org; Tue, 22 Jan 2013 19:03:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38546) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Txno4-0007RN-Ot for submit@debbugs.gnu.org; Tue, 22 Jan 2013 19:03:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txnlu-0003Xy-EV for submit@debbugs.gnu.org; Tue, 22 Jan 2013 19:01:56 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:33125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txnlu-0003Xu-Az for submit@debbugs.gnu.org; Tue, 22 Jan 2013 19:00:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txnl0-0008Gq-AY for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 19:00:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txnk8-00030J-Oa for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 18:59:58 -0500 Original-Received: from mail-ve0-f178.google.com ([209.85.128.178]:49866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txnk8-00030E-JG for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 18:59:04 -0500 Original-Received: by mail-ve0-f178.google.com with SMTP id oz10so757886veb.37 for ; Tue, 22 Jan 2013 15:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=poSOaR8xkKo4dfi9TN9QmE6gm850v2TeSADTwmiW9I0=; b=xMecw5AhNYyRhwnzqwd3+1VKmad3URxtTlzHs3wJSpvpVz5p/6+5fR1j8CEZhOGSAo 9kefVKu5uFN0IbQVyLLVsnA3U4TKre0k42i9imVb5wVIvrXGNajbLopOYhRpLsaTT6nu VcxQdp8t39hYoN8v1eb2iOatz7SM2foE+hwkSpgMCzJdKQhAMudodFRlWpQ0dS4bSyqb O1MHYyQdzyUOs1ONjx+YSCxGCurLlm32e1mpmbC7E4wgAKKAoHiMCsndYXyD6o1Bzi7Z GDBWWnO8OTWPqJoeek/yTaz7uwt8xffIsvyW40oXshamP38tnOFQ4sirS9vABhTXOH06 BLyQ== X-Received: by 10.52.68.4 with SMTP id r4mr22315068vdt.15.1358899143826; Tue, 22 Jan 2013 15:59:03 -0800 (PST) Original-Received: from localhost (vagvlan536.102.wlan.library.upenn.edu. [158.130.208.103]) by mx.google.com with ESMTPS id dx4sm10463232vdb.16.2013.01.22.15.59.01 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 22 Jan 2013 15:59:02 -0800 (PST) User-Agent: Notmuch/0.14+247~g7fad82b (http://notmuchmail.org) Emacs/24.3.50.4 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:70189 Archived-At: The following is with emacs trunk built from git commit 36964d8b4 (Tue Jan 22 15:48:00 2013 +0400) 1) emacs -Q 2) M-x set-variable debug-on-error t 3) M-x find-library paren 4) M-x eval-buffer --- steps 3 and 4 are to get a better backtrace of byte-compiled functions 5) C-x b *scratch* 6) M-x show-paren-mode (mode is now enabled) 7) type ) =E2=80=93 i.e. a closing parenthesis 8) Receive the following backtrace Debugger entered--Lisp error: (wrong-type-argument overlayp nil) delete-overlay(nil) (if (integerp pos) nil (delete-overlay show-paren-overlay)) (if (not pos) (progn (and show-paren-overlay (overlay-buffer show-paren-o= verlay) (delete-overlay show-paren-overlay)) (and show-paren-overlay-1 (ove= rlay-buffer show-paren-overlay-1) (delete-overlay show-paren-overlay-1))) (= if mismatch (progn (if show-paren-ring-bell-on-mismatch (beep)) (setq face = (quote show-paren-mismatch))) (setq face (quote show-paren-match))) (if (an= d (not show-paren-highlight-openparen) (=3D dir 1) (integerp pos)) (if (and= show-paren-overlay-1 (overlay-buffer show-paren-overlay-1)) (progn (delete= -overlay show-paren-overlay-1))) (let ((from (if (=3D dir 1) (point) (- (po= int) 1))) (to (if (=3D dir 1) (+ (point) 1) (point)))) (if show-paren-overl= ay-1 (move-overlay show-paren-overlay-1 from to (current-buffer)) (setq sho= w-paren-overlay-1 (make-overlay from to nil t))) (overlay-put show-paren-ov= erlay-1 (quote priority) show-paren-priority) (overlay-put show-paren-overl= ay-1 (quote face) face))) (if (integerp pos) nil (delete-overlay show-paren= -overlay)) (let ((to (if (or (eq show-paren-style (quote expression)) (and = (eq show-paren-style ...) (not ...))) (point) pos)) (from (if (or (eq show-= paren-style (quote expression)) (and (eq show-paren-style ...) (not ...))) = pos (save-excursion (goto-char pos) (- (point) dir))))) (if show-paren-over= lay (move-overlay show-paren-overlay from to (current-buffer)) (setq show-p= aren-overlay (make-overlay from to nil t)))) (overlay-put show-paren-overla= y (quote priority) show-paren-priority) (overlay-put show-paren-overlay (qu= ote face) face)) (let* ((oldpos (point)) (dir (cond ((eq (syntax-class (syntax-after ...))= 5) -1) ((eq (syntax-class (syntax-after ...)) 4) 1))) (unescaped (if dir (= progn (=3D (if (=3D dir -1) 1 0) (logand 1 (- ... ...)))))) pos mismatch fa= ce) (if unescaped (progn (save-excursion (save-restriction (if blink-matchi= ng-paren-distance (progn (narrow-to-region ... ...))) (condition-case nil (= setq pos (scan-sexps ... dir)) (error (setq pos t mismatch t))) (if (intege= rp pos) (progn (if ... nil ...))) (if (integerp pos) (progn (let ... ...)))= )))) (if (not pos) (progn (and show-paren-overlay (overlay-buffer show-pare= n-overlay) (delete-overlay show-paren-overlay)) (and show-paren-overlay-1 (= overlay-buffer show-paren-overlay-1) (delete-overlay show-paren-overlay-1))= ) (if mismatch (progn (if show-paren-ring-bell-on-mismatch (beep)) (setq fa= ce (quote show-paren-mismatch))) (setq face (quote show-paren-match))) (if = (and (not show-paren-highlight-openparen) (=3D dir 1) (integerp pos)) (if (= and show-paren-overlay-1 (overlay-buffer show-paren-overlay-1)) (progn (del= ete-overlay show-paren-overlay-1))) (let ((from (if (=3D dir 1) (point) (- = ... 1))) (to (if (=3D dir 1) (+ ... 1) (point)))) (if show-paren-overlay-1 = (move-overlay show-paren-overlay-1 from to (current-buffer)) (setq show-par= en-overlay-1 (make-overlay from to nil t))) (overlay-put show-paren-overlay= -1 (quote priority) show-paren-priority) (overlay-put show-paren-overlay-1 = (quote face) face))) (if (integerp pos) nil (delete-overlay show-paren-over= lay)) (let ((to (if (or (eq show-paren-style ...) (and ... ...)) (point) po= s)) (from (if (or (eq show-paren-style ...) (and ... ...)) pos (save-excurs= ion (goto-char pos) (- ... dir))))) (if show-paren-overlay (move-overlay sh= ow-paren-overlay from to (current-buffer)) (setq show-paren-overlay (make-o= verlay from to nil t)))) (overlay-put show-paren-overlay (quote priority) s= how-paren-priority) (overlay-put show-paren-overlay (quote face) face))) (if show-paren-mode (let* ((oldpos (point)) (dir (cond ((eq (syntax-class= ...) 5) -1) ((eq (syntax-class ...) 4) 1))) (unescaped (if dir (progn (=3D= (if ... 1 0) (logand 1 ...))))) pos mismatch face) (if unescaped (progn (s= ave-excursion (save-restriction (if blink-matching-paren-distance (progn ..= .)) (condition-case nil (setq pos ...) (error ...)) (if (integerp pos) (pro= gn ...)) (if (integerp pos) (progn ...)))))) (if (not pos) (progn (and show= -paren-overlay (overlay-buffer show-paren-overlay) (delete-overlay show-par= en-overlay)) (and show-paren-overlay-1 (overlay-buffer show-paren-overlay-1= ) (delete-overlay show-paren-overlay-1))) (if mismatch (progn (if show-pare= n-ring-bell-on-mismatch (beep)) (setq face (quote show-paren-mismatch))) (s= etq face (quote show-paren-match))) (if (and (not show-paren-highlight-open= paren) (=3D dir 1) (integerp pos)) (if (and show-paren-overlay-1 (overlay-b= uffer show-paren-overlay-1)) (progn (delete-overlay show-paren-overlay-1)))= (let ((from (if ... ... ...)) (to (if ... ... ...))) (if show-paren-overla= y-1 (move-overlay show-paren-overlay-1 from to (current-buffer)) (setq show= -paren-overlay-1 (make-overlay from to nil t))) (overlay-put show-paren-ove= rlay-1 (quote priority) show-paren-priority) (overlay-put show-paren-overla= y-1 (quote face) face))) (if (integerp pos) nil (delete-overlay show-paren-= overlay)) (let ((to (if (or ... ...) (point) pos)) (from (if (or ... ...) p= os (save-excursion ... ...)))) (if show-paren-overlay (move-overlay show-pa= ren-overlay from to (current-buffer)) (setq show-paren-overlay (make-overla= y from to nil t)))) (overlay-put show-paren-overlay (quote priority) show-p= aren-priority) (overlay-put show-paren-overlay (quote face) face))) (and sh= ow-paren-overlay (delete-overlay show-paren-overlay)) (and show-paren-overl= ay-1 (delete-overlay show-paren-overlay-1))) show-paren-function() apply(show-paren-function nil) byte-code("r\301^H\302H^H\303H\"\210)\301\207" [timer apply 5 6] 4) timer-event-handler([t 0 0 125000 t show-paren-function nil idle 0]) In GNU Emacs 24.3.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-01-22 on haize Windowing system distributor `The X.Org Foundation', version 11.0.11301000 Configured using: `configure --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D/var --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --without-sound --with-xft --with-x-toolkit=3Dgtk' Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t --=20 Aaron Ecay