GNU bug report logs - #18616
nlinum error on multiple emacsclient instances

Previous Next

Package: emacs;

Reported by: Joe M <joe9mail <at> gmail.com>

Date: Thu, 2 Oct 2014 22:25:01 UTC

Severity: normal

Tags: moreinfo

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Forwarded to http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00022.html

Full log


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

From: Kaushal <kaushal.modi <at> gmail.com>
To: 18616 <at> debbugs.gnu.org
Subject: bug#18616: nlinum error on multiple emacsclient instances
Date: Fri, 13 Feb 2015 20:41:39 +0000
[Message part 1 (text/plain, inline)]
I finally got a successful workaround for this problem.

I was facing this problem probably since emacs 24.3 and also on 24.4 and
the master head builds from emacs git for version 25.0.50.0.

I was getting "*ERROR*: Invalid face: linum" when trying to start emacs
with "emacsclient -a '' -c" with my init.el having "(require 'nlinum)".

Workaround:

(if (daemonp)
    (add-hook 'window-setup-hook
              (lambda ()
                (message ">> Daemon mode")
                 ;; It is mandatory to load linum AFTER the frames are set
up
                 ;; Else, I get "*ERROR*: Invalid face: linum"
                 (require 'nlinum)))
  (progn
    (message ">> Non daemon mode")
    (require 'nlinum)))

Actual snippet in my init.el:
https://github.com/kaushalmodi/.emacs.d/blob/a0955aeead27bf6ccdb0219edfbfade10a823728/init.el#L220-228
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 100 days ago.

Previous Next


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