GNU bug report logs -
#27890
26.0.50; describe-font does not use Help buffer history
Previous Next
Reported by: Alex <agrambot <at> gmail.com>
Date: Mon, 31 Jul 2017 21:26:02 UTC
Severity: minor
Tags: fixed, patch
Found in version 26.0.50
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27890 in the body.
You can then email your comments to 27890 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Mon, 31 Jul 2017 21:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex <agrambot <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 31 Jul 2017 21:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
describe-font does not add to the *Help* buffer's history. The [Back]
button does appear when there is a non-empty history, but going back and
then forward does not restore the font description.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Sat, 05 Aug 2017 23:06:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 27890 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Alex <agrambot <at> gmail.com> writes:
> describe-font does not add to the *Help* buffer's history. The [Back]
> button does appear when there is a non-empty history, but going back and
> then forward does not restore the font description.
Here's a patch for it.
[0001-Use-help-mode-xrefs-in-describe-font.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Sun, 06 Aug 2017 00:21:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 27890 <at> debbugs.gnu.org (full text, mbox):
tags 27890 + patch
quit
Alex <agrambot <at> gmail.com> writes:
> Alex <agrambot <at> gmail.com> writes:
>
>> describe-font does not add to the *Help* buffer's history. The [Back]
>> button does appear when there is a non-empty history, but going back and
>> then forward does not restore the font description.
>
> Here's a patch for it.
>
> + (let ((xref-item (list #'describe-font fontname))
[...]
> + (help-setup-xref xref-item (called-interactively-p 'interactive))
Looks fine, personally I wouldn't bother introducing that local
variable.
Added tag(s) patch.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Sun, 06 Aug 2017 00:21:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Sun, 06 Aug 2017 02:02:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 27890 <at> debbugs.gnu.org (full text, mbox):
npostavs <at> users.sourceforge.net writes:
> tags 27890 + patch
> quit
>
> Alex <agrambot <at> gmail.com> writes:
>
>> Alex <agrambot <at> gmail.com> writes:
>>
>>> describe-font does not add to the *Help* buffer's history. The [Back]
>>> button does appear when there is a non-empty history, but going back and
>>> then forward does not restore the font description.
>>
>> Here's a patch for it.
>>
>> + (let ((xref-item (list #'describe-font fontname))
> [...]
>> + (help-setup-xref xref-item (called-interactively-p 'interactive))
>
> Looks fine, personally I wouldn't bother introducing that local
> variable.
I introduced that variable because the procedure conditionally sets
fontname if it's an empty sequence. As it stands, the procedure would
error without capturing that variable ahead of time due to `length' being
called on a font object.
I figured this was the simplest way around that problem. Do you have an
easier way in mind? I could perhaps change the setq line to instead set
fontname to (face-attribute 'default :family), which would allow for
removing the local variable safely.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Sun, 06 Aug 2017 03:25:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 27890 <at> debbugs.gnu.org (full text, mbox):
Alex <agrambot <at> gmail.com> writes:
> npostavs <at> users.sourceforge.net writes:
>
>> tags 27890 + patch
>> quit
>>
>> Alex <agrambot <at> gmail.com> writes:
>>
>>> Here's a patch for it.
>>>
>>> + (let ((xref-item (list #'describe-font fontname))
>> [...]
>>> + (help-setup-xref xref-item (called-interactively-p 'interactive))
>>
>> Looks fine, personally I wouldn't bother introducing that local
>> variable.
>
> I introduced that variable because the procedure conditionally sets
> fontname if it's an empty sequence. As it stands, the procedure would
> error without capturing that variable ahead of time due to `length' being
> called on a font object.
>
> I figured this was the simplest way around that problem. Do you have an
> easier way in mind? I could perhaps change the setq line to instead set
> fontname to (face-attribute 'default :family), which would allow for
> removing the local variable safely.
I made a patch that does this, but it doesn't behave exactly the same.
(font-info (face-attribute 'default :family)) for me returns a font with
size/height 16/19, but (font-info (face-attribute 'default :font))
returns a font with size/height 15/18. I've tried this with multiple
fonts, and it happens with each one.
This seems like a bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Sun, 06 Aug 2017 11:42:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 27890 <at> debbugs.gnu.org (full text, mbox):
Alex <agrambot <at> gmail.com> writes:
> npostavs <at> users.sourceforge.net writes:
>
>> Looks fine, personally I wouldn't bother introducing that local
>> variable.
>
> I introduced that variable because the procedure conditionally sets
> fontname if it's an empty sequence. As it stands, the procedure would
> error without capturing that variable ahead of time due to `length' being
> called on a font object.
Oops, right. I skimmed too quickly because your patch looked so simple.
> I figured this was the simplest way around that problem. Do you have an
> easier way in mind? I could perhaps change the setq line to instead set
> fontname to (face-attribute 'default :family), which would allow for
> removing the local variable safely.
No, let's not get bogged down in micro-optimization and just go with
what you had originally.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Mon, 07 Aug 2017 21:20:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 27890 <at> debbugs.gnu.org (full text, mbox):
npostavs <at> users.sourceforge.net writes:
> No, let's not get bogged down in micro-optimization and just go with
> what you had originally.
Sounds good. Would you please commit it for me at an appropriate time?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27890
; Package
emacs
.
(Tue, 08 Aug 2017 23:58:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 27890 <at> debbugs.gnu.org (full text, mbox):
tags 27890 fixed
close 27890 26.1
quit
Alex <agrambot <at> gmail.com> writes:
> npostavs <at> users.sourceforge.net writes:
>
>> No, let's not get bogged down in micro-optimization and just go with
>> what you had originally.
>
> Sounds good. Would you please commit it for me at an appropriate time?
Pushed to master.
[1: 9723782161]: 2017-08-08 19:57:24 -0400
Use help-mode xrefs in describe-font
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9723782161f9b1ea6c3ce883acdc1090172b01c3
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Tue, 08 Aug 2017 23:58:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 26.1, send any further explanations to
27890 <at> debbugs.gnu.org and Alex <agrambot <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Tue, 08 Aug 2017 23:58:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 06 Sep 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.