* bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props
@ 2014-11-19 15:29 Christopher Schmidt
2016-03-09 6:16 ` Marcin Borkowski
2019-10-30 15:01 ` Lars Ingebrigtsen
0 siblings, 2 replies; 6+ messages in thread
From: Christopher Schmidt @ 2014-11-19 15:29 UTC (permalink / raw)
To: 19107
4f96579 adds help-echo to font-lock-extra-managed-props in
emacs-lisp-mode buffers. This breaks non-font-lock use of the help-echo
text property in such buffers.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props
2014-11-19 15:29 bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props Christopher Schmidt
@ 2016-03-09 6:16 ` Marcin Borkowski
2016-03-09 14:42 ` Drew Adams
2019-10-30 15:01 ` Lars Ingebrigtsen
1 sibling, 1 reply; 6+ messages in thread
From: Marcin Borkowski @ 2016-03-09 6:16 UTC (permalink / raw)
To: 19107
On 2014-11-19, at 10:29, Christopher Schmidt <ch@ristopher.com> wrote:
> 4f96579 adds help-echo to font-lock-extra-managed-props in
> emacs-lisp-mode buffers. This breaks non-font-lock use of the help-echo
> text property in such buffers.
Hi Chris,
thanks for the report.
I confirm this is apparently still true on ac9a931, but I don't see why
it's a problem. Could you elaborate a bit? What exactly breaks? What
is your non-font-lock use of help-echo?
Best,
--
Marcin
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props
2016-03-09 6:16 ` Marcin Borkowski
@ 2016-03-09 14:42 ` Drew Adams
2016-03-11 11:14 ` Marcin Borkowski
0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2016-03-09 14:42 UTC (permalink / raw)
To: Marcin Borkowski, 19107
> I confirm this is apparently still true on ac9a931, but I don't see why
> it's a problem. Could you elaborate a bit? What exactly breaks? What
> is your non-font-lock use of help-echo?
Marcin, are you actually asking whether `help-echo' can or
should be used without font-lock? If so, the answer is YES.
Text properties (including `face' and even `font-lock-face',
BTW) have nothing, per se, to do with `font-lock-mode'.
Font-lock is only one user of text properties. Users and
code can use any properties in any way.
And property `help-echo', in particular, is used far and
wide outside of any use font-lock might make of it.
(As for the bug, I have nothing particular to say. And your
question about what breaks is reasonable. But keep in mind
that anything (font-lock or anything else) that assumes or
acts like it owns property `help-echo' is acting irresponsibly
and is bound to lead to bugs.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props
2016-03-09 14:42 ` Drew Adams
@ 2016-03-11 11:14 ` Marcin Borkowski
2016-03-11 15:57 ` Drew Adams
0 siblings, 1 reply; 6+ messages in thread
From: Marcin Borkowski @ 2016-03-11 11:14 UTC (permalink / raw)
To: Drew Adams; +Cc: 19107
On 2016-03-09, at 15:42, Drew Adams <drew.adams@oracle.com> wrote:
>> I confirm this is apparently still true on ac9a931, but I don't see why
>> it's a problem. Could you elaborate a bit? What exactly breaks? What
>> is your non-font-lock use of help-echo?
>
> Marcin, are you actually asking whether `help-echo' can or
> should be used without font-lock? If so, the answer is YES.
OK. I didn't know (and still don't) what help-echo is for, hence my
question. (And I even don't know how to ask Emacs that question, aside
from grepping the source.)
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props
2016-03-11 11:14 ` Marcin Borkowski
@ 2016-03-11 15:57 ` Drew Adams
0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2016-03-11 15:57 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: 19107
> >> I confirm this is apparently still true on ac9a931, but I don't see why
> >> it's a problem. Could you elaborate a bit? What exactly breaks? What
> >> is your non-font-lock use of help-echo?
> >
> > Marcin, are you actually asking whether `help-echo' can or
> > should be used without font-lock? If so, the answer is YES.
>
> OK. I didn't know (and still don't) what help-echo is for, hence my
> question. (And I even don't know how to ask Emacs that question, aside
> from grepping the source.)
`C-h i' Elisp
`i help-echo TAB' shows you these nodes:
1. help-echo (overlay property)
2. help-echo (text property)
3. help-echo, customization keyword
4. 'help-echo' event
(Visiting #1 also presents a link to node `Text help-echo', which
is apparently misdirected. See bug #22986.)
(TAB will not show you #4 unless you have substring completion.
See bug #22987. I use Icicles and `S-TAB' to see the candidates.)
If you visit those nodes you will learn how `help-echo' is used and
how you can use it yourself in your code. If you find that the doc
for this is not clear enough please consider filing a bug report to
improve it. Thx.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props
2014-11-19 15:29 bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props Christopher Schmidt
2016-03-09 6:16 ` Marcin Borkowski
@ 2019-10-30 15:01 ` Lars Ingebrigtsen
1 sibling, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-30 15:01 UTC (permalink / raw)
To: 19107
Christopher Schmidt <ch@ristopher.com> writes:
> 4f96579 adds help-echo to font-lock-extra-managed-props in
> emacs-lisp-mode buffers. This breaks non-font-lock use of the help-echo
> text property in such buffers.
This was added five years ago now, so I don't think it's something we
want to change at this point. If you have code that wants to alter
help-echo in these buffers outside of font-lock, you'll have to alter
font-lock-extra-managed-props.
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-10-30 15:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-19 15:29 bug#19107: 25.0.50; emacs-lisp-mode: help-echo in font-lock-extra-managed-props Christopher Schmidt
2016-03-09 6:16 ` Marcin Borkowski
2016-03-09 14:42 ` Drew Adams
2016-03-11 11:14 ` Marcin Borkowski
2016-03-11 15:57 ` Drew Adams
2019-10-30 15:01 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).