From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Newsgroups: gmane.emacs.bugs Subject: bug#18616: nlinum error on multiple emacsclient instances Date: Fri, 13 Feb 2015 20:41:39 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec52e614971a2c5050efe43ab X-Trace: ger.gmane.org 1423860138 4905 80.91.229.3 (13 Feb 2015 20:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2015 20:42:18 +0000 (UTC) To: 18616@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 13 21:42:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMN3x-0008TL-8q for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Feb 2015 21:42:09 +0100 Original-Received: from localhost ([::1]:57420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMN3w-0002mR-R5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Feb 2015 15:42:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMN3t-0002mM-8C for bug-gnu-emacs@gnu.org; Fri, 13 Feb 2015 15:42:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMN3q-0004fP-6v for bug-gnu-emacs@gnu.org; Fri, 13 Feb 2015 15:42:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMN3q-0004fL-3K for bug-gnu-emacs@gnu.org; Fri, 13 Feb 2015 15:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMN3p-0003bz-QT for bug-gnu-emacs@gnu.org; Fri, 13 Feb 2015 15:42:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20141002222419.GA24226@master> Resent-From: Kaushal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Feb 2015 20:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18616 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18616-submit@debbugs.gnu.org id=B18616.142386010713862 (code B ref 18616); Fri, 13 Feb 2015 20:42:01 +0000 Original-Received: (at 18616) by debbugs.gnu.org; 13 Feb 2015 20:41:47 +0000 Original-Received: from localhost ([127.0.0.1]:42292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMN3b-0003bV-A9 for submit@debbugs.gnu.org; Fri, 13 Feb 2015 15:41:47 -0500 Original-Received: from mail-ig0-f179.google.com ([209.85.213.179]:48911) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMN3Z-0003bJ-2L for 18616@debbugs.gnu.org; Fri, 13 Feb 2015 15:41:45 -0500 Original-Received: by mail-ig0-f179.google.com with SMTP id l13so13125382iga.0 for <18616@debbugs.gnu.org>; Fri, 13 Feb 2015 12:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=9EzTJmkR9Cxa46YvtlZ4zAGwIYbnl03xkMPLgl62iPo=; b=Vn/aQB+WhkcfbvE94Sug+GaZU7bV0ArrAurEj1mqO5ZCQj8tsix8ClGT812TAPTH31 6wGXpnzkRW2B7kgHi34X1ABkUHA6yT6gvn2GjW5GeJugyMn6VuMlA3M86+YnL0IuoSmW Wed8z6Z6FRGoslVuCLPC4Pa80DNMGehbTMhJTgYi1yjfCN+FG0mY/bW9iTF4feEcDeGn KJghD55oBosPhA0Yuf5kXXPnbMSbu9azGJnh/fU71DpVgaDgGIsVdD/oz+YKMlgNh9SQ 3YN6PlpX14JHH2UTROsKPB0Gy84dXaNe7oKdchJ7PgA/NUqUvrHPYLDlsyHW5h1DNGnd DMCA== X-Received: by 10.43.44.201 with SMTP id uh9mr16356803icb.51.1423860099553; Fri, 13 Feb 2015 12:41:39 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99328 Archived-At: --bcaec52e614971a2c5050efe43ab Content-Type: text/plain; charset=ISO-8859-1 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 --bcaec52e614971a2c5050efe43ab Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I finally got = a successful workaround for this problem.

I was facing t= his 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 emac= s with "emacsclient -a '' -c" with my init.el having &quo= t;(require 'nlinum)".

Workaround:

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


--bcaec52e614971a2c5050efe43ab--