* cperl-mode bug in customization with hairy enabled
@ 2014-01-15 0:59 netmage.scw
0 siblings, 0 replies; only message in thread
From: netmage.scw @ 2014-01-15 0:59 UTC (permalink / raw)
To: help-gnu-emacs
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))))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-15 0:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 0:59 cperl-mode bug in customization with hairy enabled netmage.scw
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.