From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roy Crihfield Newsgroups: gmane.emacs.bugs Subject: bug#12297: show-paren-mode only recognizes show-paren-delay value on activation Date: Tue, 28 Aug 2012 18:47:38 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0401678ba934ee04c85b3a53 X-Trace: ger.gmane.org 1346198170 27604 80.91.229.3 (28 Aug 2012 23:56:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2012 23:56:10 +0000 (UTC) To: 12297@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 29 01:56:09 2012 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 1T6Vdf-0003l6-9E for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 01:56:07 +0200 Original-Received: from localhost ([::1]:55584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Vdd-00076L-8l for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2012 19:56:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Vdb-00076D-1P for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 19:56:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6Vda-0007OL-6C for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 19:56:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6VdZ-0007NE-WF for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 19:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T6VeY-0006kr-5w for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 19:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roy Crihfield Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Aug 2012 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12297 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.134619817125905 (code B ref -1); Tue, 28 Aug 2012 23:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Aug 2012 23:56:11 +0000 Original-Received: from localhost ([127.0.0.1]:55049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T6Vdi-0006jm-DM for submit@debbugs.gnu.org; Tue, 28 Aug 2012 19:56:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41842) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T6UaS-0004Od-AX for submit@debbugs.gnu.org; Tue, 28 Aug 2012 18:48:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6UZS-000381-O2 for submit@debbugs.gnu.org; Tue, 28 Aug 2012 18:47:43 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6UZS-00037x-Kp for submit@debbugs.gnu.org; Tue, 28 Aug 2012 18:47:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6UZR-0007rQ-Mv for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 18:47:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6UZQ-00037b-Nd for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 18:47:41 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:46711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6UZQ-00037U-FG for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 18:47:40 -0400 Original-Received: by lahd3 with SMTP id d3so3694844lah.0 for ; Tue, 28 Aug 2012 15:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=UjkQXV/co21L6C18Vaoy2NQWLs/EgOkBB6rD4w9u4A4=; b=qfEJNcr20CakF7R4s6or1UJCzxP50yoerjdfyRRSj4LPKiDiB4NqDSPyWU5BqHTn9j 3ccEcwjg4QGTKo5rb202SHP245468FSsgt3c7V0pNVeRMMbF7nBhSi1yNpfP1HWLc062 5oOLSHnkUJ5TCFALDGaYH+9KN3jWqwzt7M0FKG35DWP1mJ7gddo8uQOpgWeGokYT9xIT hIG317U+yevZ5cSSzq8nECk7INAT2h9xlUBLMnAFpl/+vyngLcYtUUhiMt8/tMcVuSFS ql4g56AX3F4T6hqCmKFpLOMx7lPute5urqOXT6UTrh2zFL8A2hPwrp9ihPIDVDm/QxRf pV6A== Original-Received: by 10.112.51.201 with SMTP id m9mr11581lbo.2.1346194058589; Tue, 28 Aug 2012 15:47:38 -0700 (PDT) Original-Received: by 10.114.10.101 with HTTP; Tue, 28 Aug 2012 15:47:38 -0700 (PDT) X-Google-Sender-Auth: DZGBhkiUv_MI9LySc9BKxJHktYw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 28 Aug 2012 19:56:09 -0400 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 (newer, 2) 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:63568 Archived-At: --f46d0401678ba934ee04c85b3a53 Content-Type: text/plain; charset=ISO-8859-1 Activating show-paren-mode sets the delay time to show-paren-delay initially, but altering that value later has no effect. i.e., after: (show-paren-mode) (setq show-paren-delay 0) The timer is still set to the original value .125, until the mode is re-activated. This should maybe be noted in the variable description, or there should be a dedicated function to set the new value, e.g. by turning line 125 of paren.el into a separate function: (setq show-paren-idle-timer (run-with-idle-timer show-paren-delay t 'show-paren-function)) --f46d0401678ba934ee04c85b3a53 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Activating show-paren-mode sets the delay time to show-paren-delay initiall= y, but altering that value later has no effect. i.e., after:

(show-p= aren-mode)
(setq show-paren-delay 0)

The timer is still set to th= e original value .125, until the mode is re-activated.
This should maybe be noted in the variable description, or there should be = a dedicated function to set the new value, e.g. by turning line 125 of pare= n.el into a separate function:

(setq show-paren-idle-timer (run-with= -idle-timer
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 show-paren-delay t
=A0=A0= =A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 'show-paren-function))
--f46d0401678ba934ee04c85b3a53--