From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#28566: 25.2; show-paren error Date: Sat, 23 Sep 2017 06:43:10 -0400 Message-ID: <87d16h4rwh.fsf@aol.com> References: <87lgl54ty7.fsf@aol.com> <83bmm1bt6w.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506163452 4041 195.159.176.226 (23 Sep 2017 10:44:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2017 10:44:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 28566@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 23 12:44:04 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dvhul-0000WL-Kv for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 12:44:04 +0200 Original-Received: from localhost ([::1]:34393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvhus-0005pf-VG for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 06:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvhun-0005pa-Ru for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 06:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvhuj-0006Fb-Tj for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 06:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44851) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvhuj-0006FU-PK for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 06:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dvhuj-0002oG-Iu for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 06:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2017 10:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28566 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28566-submit@debbugs.gnu.org id=B28566.150616339910742 (code B ref 28566); Sat, 23 Sep 2017 10:44:01 +0000 Original-Received: (at 28566) by debbugs.gnu.org; 23 Sep 2017 10:43:19 +0000 Original-Received: from localhost ([127.0.0.1]:53532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvhu3-0002nC-IE for submit@debbugs.gnu.org; Sat, 23 Sep 2017 06:43:19 -0400 Original-Received: from omr-a019e.mx.aol.com ([204.29.186.67]:44757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvhu2-0002mz-98 for 28566@debbugs.gnu.org; Sat, 23 Sep 2017 06:43:18 -0400 Original-Received: from mtaout-aal01.mx.aol.com (mtaout-aal01.mx.aol.com [172.27.20.205]) by omr-a019e.mx.aol.com (Outbound Mail Relay) with ESMTP id C6BEC380008B; Sat, 23 Sep 2017 06:43:12 -0400 (EDT) Original-Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aal01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 461A938000082; Sat, 23 Sep 2017 06:43:12 -0400 (EDT) In-Reply-To: <83bmm1bt6w.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Sep 2017 13:33:27 +0300") x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1506163392; bh=37NmCGYFKQobs9dX2Ofhe4cjLMs4iV5mTH1Pd4ND1bI=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=ABhT3tkIpFOYXnndhm3UGgKNQmZ4g/KfWQmXs9y6I8K2t9P1yDq7ZgkF7Ddnmw1Jg 72XF/Yh4I6smkG2y6airgJZSKDUxRArGBvxQEV7aydUpAUpE9kAca766d5bf1EgJhe IMaPLuQeZA4ugR1Jx2VHomOO8N+AWe65PnBBG1A4= x-aol-sid: 3039ac1b14cd59c63ac06c18 X-AOL-IP: 73.16.70.190 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:137271 Archived-At: Eli Zaretskii writes: >> From: Live System User >> Date: Sat, 23 Sep 2017 05:58:56 -0400 >> >> I got the following backtrace error while idle when the >> `show-paren-function`timer went off. >> >> I don't have a reproducible receipe so please close this >> bug report if this information is insufficient. >> >> Thanks. >> >> Debugger entered--Lisp error: (wrong-type-argument stringp t) >> message(t) >> (if (not (null matching-text)) (message matching-text)) >> (let ((matching-text nil)) (if (char-equal (char-syntax (or (or (char-before (point)) (char-after (point))) 48)) 41) (setq matching-text (blink-matching-open))) (if (not (null matching-text)) (message matching-text))) >> (let (ad-return-value) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function))) (let ((matching-text nil)) (if (char-equal (char-syntax (or (or (char-before ...) (char-after ...)) 48)) 41) (setq matching-text (blink-matching-open))) (if (not (null matching-text)) (message matching-text))) ad-return-value) >> ad-Advice-show-paren-function(#[nil "\205 \211\204\306 !\210\306\f!\202\ > > This seems to say you have some advice installed for > show-paren-function. As the string "matching-text" doesn't appear > anywhere in paren.el (nor anywhere else in the Emacs sources), I'm > guessing that it comes from that advice, and therefore the root cause > for the error should be looked for in that advice. > > Can you tell what advice do you have for show-paren-function? ;; Show offscreen paren matches in the minibuffer (defadvice show-paren-function (after show-matching-paren-offscreen activate) "If the matching paren is offscreen, show the matching line in the echo area. Has no effect if the character before point is not of the syntax class ')'." (interactive) (let ((matching-text nil)) ;; Only call `blink-matching-open' if the character before point is a close ;; parentheses type character. Otherwise, there's not really any point, and ;; `blink-matching-open' would just echo "Mismatched parentheses", which gets ;; really annoying. ;; (or ...) is a hack to handle (bobp, eobp) conditions under 24.x. (if (char-equal (char-syntax (or (or (char-before (point)) (char-after (point))) ?0) ) ?\)) (setq matching-text (blink-matching-open))) (if (not (null matching-text)) (message matching-text))))