unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20885: 24.4; Invalid face: linum
@ 2015-06-23 20:36 Adam Connor
  2015-06-24  7:07 ` Glenn Morris
  2015-06-24  7:24 ` martin rudalics
  0 siblings, 2 replies; 7+ messages in thread
From: Adam Connor @ 2015-06-23 20:36 UTC (permalink / raw)
  To: 20885

[-- Attachment #1: Type: text/plain, Size: 7950 bytes --]

From: Adam Connor <adam@localhost.localdomain>
To: bug-gnu-emacs@gnu.org
Subject: 24.4; Invalid face: linum
--text follows this line--

I'm using linum-mode. At various points (e.g., after M-x speedbar), I
see "Invalid face: linum". (And the speedbar doesn't come up.)

*Messages* shows "nlinum--face-width: Invalid face: linum".



In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2015-03-07 on trouble, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11604000
System Description:    Debian GNU/Linux 8.1 (jessie)

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.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/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.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/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=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8

Major mode: Emacs-Lisp

Minor modes in effect:
  my-keys-minor-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  global-nlinum-mode: t
  nlinum-mode: t
  diff-auto-refine-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  recentf-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-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

Recent input:
M-x l i s t - p a c k a g e s <return> <help-echo>
C-s n e o t r e e <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> C-c
<help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> q <help-echo>
<help-echo> <help-echo> <down-mouse-1> <mouse-1> q
<down-mouse-1> <mouse-1> ) <down-mouse-1> <mouse-1>
M-x n e o t r e e - t o g g l e <return> <down-mouse-1>
<mouse-1> C-x 1 C-x 3 <help-echo> <down-mouse-1> <help-echo>
<mouse-1> <double-down-mouse-1> <double-mouse-1> <help-echo>
<down-mouse-1> <mouse-1> <double-down-mouse-1> <double-mouse-1>
<help-echo> <down-mouse-1> <mouse-1> <double-down-mouse-1>
<double-mouse-1> <help-echo> <down-mouse-1> <mouse-1>
<help-echo> <down-mouse-1> <mouse-1> <double-down-mouse-1>
<double-mouse-1> <help-echo> <down-mouse-1> <mouse-1>
<help-echo> <down-mouse-3> <mouse-3> <help-echo> <down-mouse-3>
<mouse-3> <help-echo> <return> <return> <help-echo>
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-3>
<mouse-3> <down-mouse-1> <mouse-1> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <tools> <games> <tetris> q q
C-x k <return> C-x k <return> <down-mouse-1> <mouse-1>
M-x <down-mouse-1> <mouse-1> M-x n e o t r e e - d
i r M-x M-x C-g M-x n e o t r e e - d i r <return>
c p r o j e c t s <return> <down-mouse-1> <mouse-1>
M-x n e o t r e e - t o g g l e <return> C-c s M-x
s p e e d b a r <return> <down-mouse-1> <mouse-1> C-g
C-h f s p e e d b a r <tab> <return> q <down-mouse-1>
<mouse-movement> <mouse-1> C-c s <help-echo> <down-mouse-1>
<mouse-1> M-x r e p o r t - e m a c s - b u g <ret
urn>

Recent messages:
d is undefined
i is undefined
r is undefined
completing-read-default: Command attempted to use minibuffer while in
minibuffer
Quit
nlinum--face-width: Invalid face: linum [2 times]
Quit
Describe-Function...
Type "q" in help window to restore its previous buffer.
<<< Press Space to bury the help buffer, Press R to retain it >>>
nlinum--face-width: Invalid face: linum

Load-path shadows:
/home/adam/.emacs.d/elpa/dash-2.10.0/dash hides ~/.emacs.d/lib/dash
~/.emacs.d/lib/tabbar-master/revive hides ~/.emacs.d/lib/revive
/usr/share/emacs/24.4/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
~/.emacs.d/lib/indent hides /usr/share/emacs/24.4/lisp/indent
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides
/usr/share/emacs/24.4/lisp/textmodes/flyspell
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides
/usr/share/emacs/24.4/lisp/textmodes/ispell
/usr/share/emacs/site-lisp/rst hides
/usr/share/emacs/24.4/lisp/textmodes/rst

Features:
(shadow sort mail-extr emacsbug sendmail tetris gamegrid neotree
autoload lisp-mnt mule-util gnutls mm-archive network-stream starttls
url-cache url-handlers epg finder-inf view eieio-opt speedbar sb-image
ezimage dframe find-func help-mode misearch multi-isearch tabify vc-git
tabbar revbufs fill-column-indicator nlinum linum virtualenvwrapper dash
vc-svn psvn derived log-edit message format-spec rfc822 mml mml-sec
mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log diff-mode
pp elp ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init
ediff-util dired rdp-utils web-mode disp-table flymake python json util
compile comint ansi-color ring cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs undo-tree
soap-client mm-decode mm-bodies mm-encode url-http tls url-auth
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util url-parse auth-source eieio byte-opt bytecomp byte-compile
cconv eieio-core gnus-util mm-util mail-prsvr password-cache url-vars
mailcap warnings xml easy-mmode env-utils proj-utils cl-macs cl gv ido
edmacro kmacro ibuffer framemove advice help-fns ehelp recentf
tree-widget wid-edit desktop frameset cl-loaddefs cl-lib info easymenu s
file-utils package epg-config exec-path-from-shell misterioso-theme
library-utils 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 661448 156189)
 (symbols 48 35756 0)
 (miscs 40 1300 1359)
 (strings 32 83947 7255)
 (string-bytes 1 2333702)
 (vectors 16 36817)
 (vector-slots 8 1422690 197383)
 (floats 8 176 906)
 (intervals 56 63526 406)
 (buffers 960 20)
 (heap 1024 75819 2286))

[-- Attachment #2: Type: text/html, Size: 9644 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#20885: 24.4; Invalid face: linum
  2015-06-23 20:36 bug#20885: 24.4; Invalid face: linum Adam Connor
@ 2015-06-24  7:07 ` Glenn Morris
  2015-06-24  7:24 ` martin rudalics
  1 sibling, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2015-06-24  7:07 UTC (permalink / raw)
  To: Adam Connor; +Cc: 20885

Adam Connor wrote:

> *Messages* shows "nlinum--face-width: Invalid face: linum".

I can't reproduce this and have no idea how this could happen.
Can you give a minimal example starting from emacs -Q?
The linum face is defined in linum, which is required by nlinum, and
according to your report is loaded:

> In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
[...]
> Features:
[...]
> tabbar revbufs fill-column-indicator nlinum linum virtualenvwrapper dash





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#20885: 24.4; Invalid face: linum
  2015-06-23 20:36 bug#20885: 24.4; Invalid face: linum Adam Connor
  2015-06-24  7:07 ` Glenn Morris
@ 2015-06-24  7:24 ` martin rudalics
       [not found]   ` <CAC_vAoENHbftCsr6-kkLLk3PE6ENUzdkzkCft+4Et-XzFmPzYw@mail.gmail.com>
  2020-08-19 17:46   ` Stefan Kangas
  1 sibling, 2 replies; 7+ messages in thread
From: martin rudalics @ 2015-06-24  7:24 UTC (permalink / raw)
  To: Adam Connor, 20885

 > I'm using linum-mode.

‘nlinum-mode’ I suppose.

 > At various points (e.g., after M-x speedbar), I
 > see "Invalid face: linum". (And the speedbar doesn't come up.)
 >
 > *Messages* shows "nlinum--face-width: Invalid face: linum".
 >
 >
 >
 > In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
 >   of 2015-03-07 on trouble, modified by Debian

This issue has been reported and discussed here

https://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00022.html

and was hopefully fixed for Emacs 25.1.  I have no good idea how to
handle this for your version.

martin






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#20885: 24.4; Invalid face: linum
       [not found]     ` <558AEB66.6030702@gmx.at>
@ 2015-06-24 18:01       ` martin rudalics
  2015-06-24 19:24         ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: martin rudalics @ 2015-06-24 18:01 UTC (permalink / raw)
  To: 20885

 > Hmm. Thanks for the answer.

I know it's unsatisfactory.  Is there a way to find out whether a face
has been loaded?  Then we could check that in (n)linum-mode.

martin





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#20885: 24.4; Invalid face: linum
  2015-06-24 18:01       ` martin rudalics
@ 2015-06-24 19:24         ` Eli Zaretskii
  2015-06-25  6:36           ` martin rudalics
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2015-06-24 19:24 UTC (permalink / raw)
  To: martin rudalics; +Cc: 20885

> Date: Wed, 24 Jun 2015 20:01:13 +0200
> From: martin rudalics <rudalics@gmx.at>
> 
> Is there a way to find out whether a face has been loaded?

Does 'facep' fit the bill?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#20885: 24.4; Invalid face: linum
  2015-06-24 19:24         ` Eli Zaretskii
@ 2015-06-25  6:36           ` martin rudalics
  0 siblings, 0 replies; 7+ messages in thread
From: martin rudalics @ 2015-06-25  6:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 20885

 > Does 'facep' fit the bill?

Then ‘nlinum-mode’ should probably use ‘facep’ in ‘nlinum--face-height’
and ‘nlinum--face-width’ to check whether FACE is valid.

BTW is there any reason why ‘face-font’ calls lookup_named_face with the
third argument true?  If FACE is unspcecified, ‘face-font’ is supposed
to return nil anyway.

martin






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#20885: 24.4; Invalid face: linum
  2015-06-24  7:24 ` martin rudalics
       [not found]   ` <CAC_vAoENHbftCsr6-kkLLk3PE6ENUzdkzkCft+4Et-XzFmPzYw@mail.gmail.com>
@ 2020-08-19 17:46   ` Stefan Kangas
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Kangas @ 2020-08-19 17:46 UTC (permalink / raw)
  To: martin rudalics; +Cc: Adam Connor, 20885-done

martin rudalics <rudalics@gmx.at> writes:

>> I'm using linum-mode.
>
> ‘nlinum-mode’ I suppose.
>
>> At various points (e.g., after M-x speedbar), I
>> see "Invalid face: linum". (And the speedbar doesn't come up.)
>>
>> *Messages* shows "nlinum--face-width: Invalid face: linum".
>>
>>
>>
>> In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
>>   of 2015-03-07 on trouble, modified by Debian
>
> This issue has been reported and discussed here
>
> https://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00022.html
>
> and was hopefully fixed for Emacs 25.1.  I have no good idea how to
> handle this for your version.

This was fixed in 25.1, so I'm closing this now.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-19 17:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 20:36 bug#20885: 24.4; Invalid face: linum Adam Connor
2015-06-24  7:07 ` Glenn Morris
2015-06-24  7:24 ` martin rudalics
     [not found]   ` <CAC_vAoENHbftCsr6-kkLLk3PE6ENUzdkzkCft+4Et-XzFmPzYw@mail.gmail.com>
     [not found]     ` <558AEB66.6030702@gmx.at>
2015-06-24 18:01       ` martin rudalics
2015-06-24 19:24         ` Eli Zaretskii
2015-06-25  6:36           ` martin rudalics
2020-08-19 17:46   ` Stefan Kangas

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).