GNU bug report logs -
#30553
26.0.91; underline appears beneath line-spacing rather than beneath text
Previous Next
Reported by: Aaron Jensen <aaronjensen <at> gmail.com>
Date: Tue, 20 Feb 2018 18:18:02 UTC
Severity: minor
Found in version 26.0.91
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #91 received at 30553 <at> debbugs.gnu.org (full text, mbox):
> From: Aaron Jensen <aaronjensen <at> gmail.com>
> Date: Wed, 28 Feb 2018 09:41:50 -0800
> Cc: Alp Aker <alptekin.aker <at> gmail.com>, 30553 <at> debbugs.gnu.org
>
> On Wed, Feb 28, 2018 at 8:14 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Fbuffer_local_value can signal an error, which is a no-no in display
> > code. So it's best not to use it. buffer_local_value is better in
> > that regard, I think (although for built-in variables, I think the
> > danger is mainly academic).
>
> Ah, that's good to know. When would it return Qunbound? It looked like
> from the docs it would return it if it wasn't bound in the
> buffer--does that mean it does or it doesn't fall back to the default
> value or the value set via setq? I'm afraid I don't know exactly how
> this works.
If there's no buffer-local value, it returns the global value. Only
if the variable is entirely unbound (as in "void variable"), it will
return Qunbound.
> Does this mean that I'd have to do similar code as you suggested for
> the int?
Yes.
> Is there an example of coercing a potentially unbound bool?
Just treat Qunbound as the default value of the respective variable.
Thanks.
This bug report was last modified 7 years and 77 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.