GNU bug report logs - #27930
24.5; The underline of hyperlink text is unbounded

Previous Next

Package: emacs;

Reported by: hw <huwei9527 <at> gmail.com>

Date: Thu, 3 Aug 2017 12:45:01 UTC

Severity: minor

Tags: notabug

Found in version 24.5

Done: Stefan Kangas <stefan <at> marxist.se>

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 27930 in the body.
You can then email your comments to 27930 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Thu, 03 Aug 2017 12:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to hw <huwei9527 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 03 Aug 2017 12:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: hw <huwei9527 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; The underline of hyperlink text is unbounded
Date: Thu, 03 Aug 2017 20:43:42 +0800
When I reference to Info node with "C-x h handle-switch-frame RET",
I get the *Help* buffer poped up. The first line shows:

handle-switch-frame is an interactive built-in function in `C source
code'

The text "C source code" above is a hyperlink so it is blue with
underline, but the underline extend to the right edge of
the buffer window, which I think should stop at the end line right
after the text "source". So the text above in my text teminal looks
like this:

<left>                 <mid>                   <right>
XXXX function in `____________________________________
___'.
XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX

The "XXX" above represents the normal text in the *Help* buffer and
<left> <mid> <right> represent the position of the window. I think
the underline should stop right before <mid>. Otherwise it looks ugly.







In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-17 on lgw01-04, modified by Debian
System Description:	Ubuntu 16.04.3 LTS

Configured using:
 `configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Important settings:
  value of $LC_MONETARY: zh_CN.UTF-8
  value of $LC_NUMERIC: zh_CN.UTF-8
  value of $LC_TIME: zh_CN.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to delete the help window.
Making completion list...

Load-path shadows:
/usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/24.5/lisp/language/thai-word

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu help-fns xterm time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 79864 5925)
 (symbols 48 17875 0)
 (miscs 40 77 138)
 (strings 32 10784 4096)
 (string-bytes 1 269274)
 (vectors 16 7272)
 (vector-slots 8 344042 29978)
 (floats 8 68 452)
 (intervals 56 239 22)
 (buffers 960 14)
 (heap 1024 34011 1898))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Thu, 03 Aug 2017 16:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: hw <huwei9527 <at> gmail.com>
Cc: 27930 <at> debbugs.gnu.org
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Thu, 03 Aug 2017 19:33:49 +0300
> From: hw <huwei9527 <at> gmail.com>
> Date: Thu, 03 Aug 2017 20:43:42 +0800
> 
> 
> When I reference to Info node with "C-x h handle-switch-frame RET",
> I get the *Help* buffer poped up. The first line shows:
> 
> handle-switch-frame is an interactive built-in function in `C source
> code'
> 
> The text "C source code" above is a hyperlink so it is blue with
> underline, but the underline extend to the right edge of
> the buffer window, which I think should stop at the end line right
> after the text "source". So the text above in my text teminal looks
> like this:
> 
> <left>                 <mid>                   <right>
> XXXX function in `____________________________________
> ___'.

I think this is expected on a TTY: the face of the last character is
extended all the way to the end of the window.  That's how Emacs was
designed to work in this case.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Thu, 03 Aug 2017 17:57:02 GMT) Full text and rfc822 format available.

Message #11 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>, hw <huwei9527 <at> gmail.com>
Cc: 27930 <at> debbugs.gnu.org
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Thu, 03 Aug 2017 19:56:33 +0200
> I think this is expected on a TTY: the face of the last character is
> extended all the way to the end of the window.  That's how Emacs was
> designed to work in this case.

But it works the same way on a GUI frame.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Thu, 03 Aug 2017 18:34:01 GMT) Full text and rfc822 format available.

Message #14 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 27930 <at> debbugs.gnu.org, huwei9527 <at> gmail.com
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Thu, 03 Aug 2017 21:33:15 +0300
> Date: Thu, 03 Aug 2017 19:56:33 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: 27930 <at> debbugs.gnu.org
> 
>  > I think this is expected on a TTY: the face of the last character is
>  > extended all the way to the end of the window.  That's how Emacs was
>  > designed to work in this case.
> 
> But it works the same way on a GUI frame.

Not here, it doesn't.  Maybe there's some kind of misunderstanding.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Fri, 04 Aug 2017 08:56:01 GMT) Full text and rfc822 format available.

Message #17 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 27930 <at> debbugs.gnu.org, huwei9527 <at> gmail.com
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Fri, 04 Aug 2017 10:55:00 +0200
>> But it works the same way on a GUI frame.
>
> Not here, it doesn't.  Maybe there's some kind of misunderstanding.

Indeed.  A similar problem on a GUI occurs with the following
customization:

(custom-set-faces
 '(button ((t (:background "#D8D0C8" :box (:line-width 2 :color "grey72")))))
 '(highlight ((t (:inherit button :box (:line-width 2 :style released-button))))))

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Fri, 04 Aug 2017 12:50:02 GMT) Full text and rfc822 format available.

Message #20 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 27930 <at> debbugs.gnu.org, huwei9527 <at> gmail.com
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Fri, 04 Aug 2017 15:47:47 +0300
> Date: Fri, 04 Aug 2017 10:55:00 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: huwei9527 <at> gmail.com, 27930 <at> debbugs.gnu.org
> 
>  >> But it works the same way on a GUI frame.
>  >
>  > Not here, it doesn't.  Maybe there's some kind of misunderstanding.
> 
> Indeed.  A similar problem on a GUI occurs with the following
> customization:
> 
> (custom-set-faces
>   '(button ((t (:background "#D8D0C8" :box (:line-width 2 :color "grey72")))))
>   '(highlight ((t (:inherit button :box (:line-width 2 :style released-button))))))

Yes, that's the intended behavior of :box.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Sun, 29 Sep 2019 01:59:02 GMT) Full text and rfc822 format available.

Message #23 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 27930 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>,
 huwei9527 <at> gmail.com
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Sun, 29 Sep 2019 03:58:25 +0200
tags 27930 + notabug
close 27930
quit

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: hw <huwei9527 <at> gmail.com>
>> Date: Thu, 03 Aug 2017 20:43:42 +0800
>>
>>
>> When I reference to Info node with "C-x h handle-switch-frame RET",
>> I get the *Help* buffer poped up. The first line shows:
>>
>> handle-switch-frame is an interactive built-in function in `C source
>> code'
>>
>> The text "C source code" above is a hyperlink so it is blue with
>> underline, but the underline extend to the right edge of
>> the buffer window, which I think should stop at the end line right
>> after the text "source". So the text above in my text teminal looks
>> like this:
>>
>> <left>                 <mid>                   <right>
>> XXXX function in `____________________________________
>> ___'.
>
> I think this is expected on a TTY: the face of the last character is
> extended all the way to the end of the window.  That's how Emacs was
> designed to work in this case.

Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Fri, 04 Aug 2017 10:55:00 +0200
>> From: martin rudalics <rudalics <at> gmx.at>
>> CC: huwei9527 <at> gmail.com, 27930 <at> debbugs.gnu.org
>>
>>  >> But it works the same way on a GUI frame.
>>  >
>>  > Not here, it doesn't.  Maybe there's some kind of misunderstanding.
>>
>> Indeed.  A similar problem on a GUI occurs with the following
>> customization:
>>
>> (custom-set-faces
>>   '(button ((t (:background "#D8D0C8" :box (:line-width 2 :color "grey72")))))
>>   '(highlight ((t (:inherit button :box (:line-width 2 :style released-button))))))
>
> Yes, that's the intended behavior of :box.

According to the above, this all works as expected.  I'm therefore
closing this as notabug.

If that's incorrect, please reopen.

Best regards,
Stefan Kangas




Added tag(s) notabug. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 29 Sep 2019 01:59:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 27930 <at> debbugs.gnu.org and hw <huwei9527 <at> gmail.com> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 29 Sep 2019 01:59:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27930; Package emacs. (Sun, 29 Sep 2019 07:40:02 GMT) Full text and rfc822 format available.

Message #30 received at 27930 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 27930 <at> debbugs.gnu.org, rudalics <at> gmx.at, huwei9527 <at> gmail.com
Subject: Re: bug#27930: 24.5; The underline of hyperlink text is unbounded
Date: Sun, 29 Sep 2019 10:39:36 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Sun, 29 Sep 2019 03:58:25 +0200
> Cc: martin rudalics <rudalics <at> gmx.at>, 27930 <at> debbugs.gnu.org, huwei9527 <at> gmail.com
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: hw <huwei9527 <at> gmail.com>
> >> Date: Thu, 03 Aug 2017 20:43:42 +0800
> >>
> >>
> >> When I reference to Info node with "C-x h handle-switch-frame RET",
> >> I get the *Help* buffer poped up. The first line shows:
> >>
> >> handle-switch-frame is an interactive built-in function in `C source
> >> code'
> >>
> >> The text "C source code" above is a hyperlink so it is blue with
> >> underline, but the underline extend to the right edge of
> >> the buffer window, which I think should stop at the end line right
> >> after the text "source". So the text above in my text teminal looks
> >> like this:
> >>
> >> <left>                 <mid>                   <right>
> >> XXXX function in `____________________________________
> >> ___'.
> >
> > I think this is expected on a TTY: the face of the last character is
> > extended all the way to the end of the window.  That's how Emacs was
> > designed to work in this case.
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Date: Fri, 04 Aug 2017 10:55:00 +0200
> >> From: martin rudalics <rudalics <at> gmx.at>
> >> CC: huwei9527 <at> gmail.com, 27930 <at> debbugs.gnu.org
> >>
> >>  >> But it works the same way on a GUI frame.
> >>  >
> >>  > Not here, it doesn't.  Maybe there's some kind of misunderstanding.
> >>
> >> Indeed.  A similar problem on a GUI occurs with the following
> >> customization:
> >>
> >> (custom-set-faces
> >>   '(button ((t (:background "#D8D0C8" :box (:line-width 2 :color "grey72")))))
> >>   '(highlight ((t (:inherit button :box (:line-width 2 :style released-button))))))
> >
> > Yes, that's the intended behavior of :box.
> 
> According to the above, this all works as expected.  I'm therefore
> closing this as notabug.

We might be able to do something with this when the "face extension"
branch is merged.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 27 Oct 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.