GNU bug report logs - #33421
26.1; hl-line face used as default

Previous Next

Package: emacs;

Reported by: "E. Choroba" <choroba <at> matfyz.cz>

Date: Sun, 18 Nov 2018 21:54:01 UTC

Severity: minor

Tags: notabug

Found in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

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 33421 in the body.
You can then email your comments to 33421 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#33421; Package emacs. (Sun, 18 Nov 2018 21:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "E. Choroba" <choroba <at> matfyz.cz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 18 Nov 2018 21:54:01 GMT) Full text and rfc822 format available.

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

From: "E. Choroba" <choroba <at> matfyz.cz>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; hl-line face used as default
Date: Sun, 18 Nov 2018 22:37:57 +0100 (CET)
[Message part 1 (text/plain, inline)]
Hi,

When I use emacs 24.3.1 and run

  /usr/bin/emacs -Q

Then M-< followed by M-x global-hl-line-mode and M-x describe-face, emacs asks 
me

Describe face (default `font-lock-comment-delimiter-face'):

But when I use 26.1 and run

  /usr/local/bin/emacs -Q

and run exactly the same commands, emacs asks me

Describe face (default ‘hl-line’):

I have to turn hl-line off to get the name of the point's face. This makes the 
default value of the function useless.

It seems that

  (get-char-property (point) 'face)

returns hl-line in 26.1, but returns the actual face in 24.3.1.

See also 
https://emacs.stackexchange.com/questions/45492/hl-line-face-used-as-default-in-26-1

Thanks,

Ch.

In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3.4)
 of 2018-09-10 built on still
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	openSUSE Leap 42.3

Recent messages:
Wrote /home/choroba/1.sh
Saving file /home/choroba/1.sh...
Wrote /home/choroba/1.sh
Saving file /home/choroba/graphics...
Wrote /home/choroba/graphics
Quit [2 times]
GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3.4) of 
2018-09-10
Making completion list...
Quit
Making completion list...

Configured using:
 'configure --with-kerberos5=yes --with-x-toolkit=motif --with-x=yes'

Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2
FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS MOTIF X11 THREADS

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  worktime-minor-mode: t
  savehist-mode: t
  global-hl-line-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/choroba/.emacs.d/elpa/web-mode-20180813.1350/web-mode hides 
/home/choroba/elisp/web-mode

Features:
(shadow sort mail-extr warnings emacsbug message rmc puny format-spec
rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils crm
thingatpt sh-script smie executable hippie-exp comint ansi-color ring
cl-extra help-mode edmacro kmacro misearch multi-isearch rng-xsd
xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse
nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode
nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok elec-pair
delsel cus-start cus-load finder-inf info package epg-config
url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs
password-cache url-vars seq byte-opt bytecomp byte-compile cconv
easy-mmode server htmlize cl-seq tinytalk derived cl-macs cl gv
cl-loaddefs cl-lib session dired-x easymenu dired dired-loaddefs
savehist hl-line time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded 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 dbusbind inotify dynamic-setting system-font-setting
font-render-setting motif x-toolkit x multi-tty make-network-process
emacs)

Memory information:
((conses 16 297507 16148)
 (symbols 48 30815 1)
 (miscs 40 145 696)
 (strings 32 85192 2817)
 (string-bytes 1 2128740)
 (vectors 16 26660)
 (vector-slots 8 709666 17660)
 (floats 8 80 585)
 (intervals 56 4368 505)
 (buffers 992 20)
 (heap 1024 49963 1694))

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33421; Package emacs. (Mon, 19 Nov 2018 15:46:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: "E. Choroba" <choroba <at> matfyz.cz>
Cc: 33421 <at> debbugs.gnu.org
Subject: Re: bug#33421: 26.1; hl-line face used as default
Date: Mon, 19 Nov 2018 17:45:09 +0200
tags 33421 notabug
thanks

> Date: Sun, 18 Nov 2018 22:37:57 +0100 (CET)
> From: "E. Choroba" <choroba <at> matfyz.cz>
> 
> When I use emacs 24.3.1 and run
> 
>    /usr/bin/emacs -Q
> 
> Then M-< followed by M-x global-hl-line-mode and M-x describe-face, emacs asks 
> me
> 
> Describe face (default `font-lock-comment-delimiter-face'):
> 
> But when I use 26.1 and run
> 
>    /usr/local/bin/emacs -Q
> 
> and run exactly the same commands, emacs asks me
> 
> Describe face (default ‘hl-line’):
> 
> I have to turn hl-line off to get the name of the point's face. This makes the 
> default value of the function useless.

I can reproduce this, but for me both Emacs 26 and Emacs 24 behave the
same.  So I don't know why your Emacs 24 behaves differently, perhaps
it's due to some local changes that are not in upstream sources.

In any case, "M-x describe-face" is not the right tool when there
could be several text properties at the same position, because
describe-face can only name one face, and it selects the one that
affects the text the most.  I suggest to use another command instead,
"M-x describe-text-properties".  It will pop up a window with
information about all the properties at point, and you can then drill
down using the buttons in that window.

This is not a bug.

Thanks.




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 19 Nov 2018 15:46:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 33421 <at> debbugs.gnu.org and "E. Choroba" <choroba <at> matfyz.cz> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 23 Nov 2018 01:08:05 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. (Fri, 21 Dec 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 180 days ago.

Previous Next


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