all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: netmage.scw@gmail.com
To: help-gnu-emacs@gnu.org
Subject: cperl-mode bug in customization with hairy enabled
Date: Tue, 14 Jan 2014 16:59:17 -0800 (PST)	[thread overview]
Message-ID: <137654b0-c217-4e49-81b3-3de32eca6dc7@googlegroups.com> (raw)

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))))


                 reply	other threads:[~2014-01-15  0:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=137654b0-c217-4e49-81b3-3de32eca6dc7@googlegroups.com \
    --to=netmage.scw@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.