From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: netmage.scw@gmail.com Newsgroups: gmane.emacs.help Subject: cperl-mode bug in customization with hairy enabled Date: Tue, 14 Jan 2014 16:59:17 -0800 (PST) Message-ID: <137654b0-c217-4e49-81b3-3de32eca6dc7@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1389747772 6493 80.91.229.3 (15 Jan 2014 01:02:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 01:02:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 15 02:02:59 2014 Return-path: Envelope-to: geh-help-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 1W3Esl-0003vl-5e for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 02:02:59 +0100 Original-Received: from localhost ([::1]:51441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Esk-0001N6-He for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 20:02:58 -0500 X-Received: by 10.236.118.12 with SMTP id k12mr524910yhh.35.1389747558137; Tue, 14 Jan 2014 16:59:18 -0800 (PST) X-Received: by 10.49.16.168 with SMTP id h8mr94528qed.2.1389747558120; Tue, 14 Jan 2014 16:59:18 -0800 (PST) Original-Path: usenet.stanford.edu!news.glorb.com!p15no15165060qaj.0!news-out.google.com!gg4ni2779qab.0!nntp.google.com!6no10817790qao.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.254.172.87; posting-account=XJ6AGQoAAABKY2Zw-stiq1juOakFBmvB Original-NNTP-Posting-Host: 65.254.172.87 User-Agent: G2/1.0 Injection-Date: Wed, 15 Jan 2014 00:59:18 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203135 X-Mailman-Approved-At: Tue, 14 Jan 2014 20:02:49 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95404 Archived-At: In GNU Emacs 24.3.1 on Windows 7, I have cperl-hairy set to true, and have also customized some cperl-mode variables. cperl-version says 6.2 I am trying to set cperl-lazy-help-time to 1, which I have done in Customization and saved. In the cperl-mode code, the value for lazy help time is decided by (cperl-val 'cperl-lazy-help-time 1000000 5) where ;; Make customization possible "in reverse" (defsubst cperl-val (symbol &optional default hairy) (cond ((eq (symbol-value symbol) 'null) default) (cperl-hairy (or hairy t)) (t (symbol-value symbol)))) The documentation says "*Not-nil (and non-null) means to show lazy help after given idle time. Can be overwritten by `cperl-hairy' to be 5 sec if nil." and the help says It is possible to show this help automatically after some idle time. This is regulated by variable `cperl-lazy-help-time'. Default with `cperl-hairy' (if the value of `cperl-lazy-help-time' is nil) is 5 secs idle time . It is also possible to switch this on/off from the menu, or via \\[cperl-toggle-autohelp]. Requires `run-with-idle-timer'. I believe the definition of cperl-val does not do what the documentation says: if cperl-hairy is true, the value returned is always the hairy value, regardless of the variable setting. This presumably applies to all affected-by-hairy variables. I suggest cperl-val should be: (defsubst cperl-val (symbol &optional default hairy) (cond ((eq (symbol-value symbol) 'null) default) (cperl-hairy (or (symbol-value symbol) hairy)) (t (symbol-value symbol))))