From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Koen van Greevenbroek Newsgroups: gmane.emacs.bugs Subject: bug#23796: Emacs daemon doesn't properly reload symlinked themes Date: Sat, 18 Jun 2016 11:22:50 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11449ce0148ad80535918fbd X-Trace: ger.gmane.org 1466275402 22765 80.91.229.3 (18 Jun 2016 18:43:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2016 18:43:22 +0000 (UTC) To: 23796@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 18 20:43:12 2016 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 1bELD4-0000Qw-Gr for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2016 20:43:10 +0200 Original-Received: from localhost ([::1]:36020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELD3-0006g6-Gl for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2016 14:43:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELCx-0006fp-OF for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:43:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bELCw-0004Yg-5H for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:43:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELCw-0004Yc-2B for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bELCv-00057c-Nv for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Koen van Greevenbroek Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jun 2016 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146627535619651 (code B ref -1); Sat, 18 Jun 2016 18:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jun 2016 18:42:36 +0000 Original-Received: from localhost ([127.0.0.1]:45407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bELCW-00056t-7K for submit@debbugs.gnu.org; Sat, 18 Jun 2016 14:42:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEKtb-0002xW-LU for submit@debbugs.gnu.org; Sat, 18 Jun 2016 14:23:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEKtU-0000Tw-UR for submit@debbugs.gnu.org; Sat, 18 Jun 2016 14:22:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKtU-0000Tb-R3 for submit@debbugs.gnu.org; Sat, 18 Jun 2016 14:22:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKtS-0008Me-50 for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:22:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEKtP-0000RO-LK for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:22:53 -0400 Original-Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]:34334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKtP-0000RG-Dq for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 14:22:51 -0400 Original-Received: by mail-io0-x229.google.com with SMTP id 5so101765815ioy.1 for ; Sat, 18 Jun 2016 11:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=a6aViv2acKpOWUKIP+cC3PBbNU9d1pKaY0DVr0pBlz0=; b=qxcuBXndzFOxGHhJWOX99HDRZHC9Gn4++A1HM2hHWSxH8zxmjjCDPANpUslydUKoS6 IuNsDXMHm3nAsQ2kq7aKI1jTepAxztT/ou1vSGHAa/38rIBGLP5KcesWLmPPEUuWEHdW PA9p8DRSidX+ErqMGySStCBwraOsWEznrmUx6IYi/NuNsNUqN06Rew00DuzqBID+aPg9 Zi77EUSOxlwKulFgGMdsP5iLpVMCWonhwtYZ63b0c8i4w2ZSxF9YuYamTHPo3bNOZofm 5lAJRN62KmW/OgvtQVA9SVdx0gZpJatlDUpjbyKrKLH+pdEb4vXMHwZW2c160GjF02ih CZow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a6aViv2acKpOWUKIP+cC3PBbNU9d1pKaY0DVr0pBlz0=; b=CTW58zVIFBQzweGiiow44miLvwO0J4Ndp7EQq2fyEfekTWAOI1HWZ3mX0FUU5WgaSN 505I1HAuPXNCnGt35yxmO9RedxX79EOgiq3vfQzVgVYdfIiOH1MUOjJuaf7kzjvf/6tK 6TjdgEvxf9yHScbj+wRRF0P8edIcIwDC1+6uxaAiVIKTRFgvcQ5Ok8LT/PrAw53wqxb5 waHqAchZdYw/yTDyowgeS/1WLo1bIAZq9AyvXPECQ7QlHGhcWI5wiLfj1zWoa5J3M4jP qoLAK8sJYrIxn41kzeuoGJ7+YkdabpWJR30sKTckN24BvLmOFCGNpjVzWnXqqEyEo8sV h27g== X-Gm-Message-State: ALyK8tLEYKX0DQBA5tT32xmK4bzJQPifHDC2CnEeBUQL+xwzSjfitxt8wgIS+u6K47v0oVqYGpatp1iHaxwVyQ== X-Received: by 10.107.53.233 with SMTP id k102mr11980718ioo.134.1466274170569; Sat, 18 Jun 2016 11:22:50 -0700 (PDT) Original-Received: by 10.36.40.65 with HTTP; Sat, 18 Jun 2016 11:22:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sat, 18 Jun 2016 14:42:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:119750 Archived-At: --001a11449ce0148ad80535918fbd Content-Type: text/plain; charset=UTF-8 Hey! I am trying to change the Emacs theme on the fly, so I symlinked the ~/.emacs.d/my-theme.el file to a ~/current-theme/my-theme.el files, and the ~/current-theme directory is in turn symlinked to whatever theme I like at the moment. Then, I run "emacs --daemon", and open an emacsclient frame with "emacsclient -c". This works as expected. However, when I relink ~/current-theme to some other theme and then evaluate "(load-file ~/.emacs)" in an emacsclient to reload the theme for the emacs daemon, it reload the theme for any emacsclient frames currently open, but not for subsequently opened emacsclient frames. So emacsclient frames opened after a symlink theme change and (load-file ~/.emacs) do not actually use the new theme. I experienced this on my main laptop, but also managed to reproduce it in a minimal setup in a virtual machine. I hope you have time to take a look at this, and let me know if you need any more information. ----------------------------------------- In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6) of 2016-06-04 on juergen Windowing system distributor `The X.Org Foundation', version 11.0.11803000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction 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 font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Making completion list... Load-path shadows: None found. Features: (mailalias mailclient browse-url cus-edit cus-start cus-load wid-edit cl-loaddefs cl-lib pp shadow sort gnus-util mail-extr emacsbug message idna 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 help-fns mail-prsvr mail-utils help-mode easymenu server time-date my-theme 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 104066 14117) (symbols 48 19670 0) (miscs 40 89 210) (strings 32 15546 3860) (string-bytes 1 409883) (vectors 16 11334) (vector-slots 8 407677 6562) (floats 8 84 151) (intervals 56 1137 16) (buffers 960 17) (heap 1024 21212 1781)) --001a11449ce0148ad80535918fbd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey!

I am trying to change the Emacs theme on = the fly, so I symlinked the
~/.emacs.d/my-theme.el file to a ~/current-t= heme/my-theme.el files, and
the ~/current-theme directory is in turn sym= linked to whatever theme I like
at the moment. Then, I run &q= uot;emacs --daemon", and open an emacsclient
frame with = "emacsclient -c". This works as expected. However, when I
relink ~/current-theme to some other theme and then evaluate
"(load-file ~/.emacs)" in an emacsclient to reload the the= me for the emacs
daemon, it reload the theme for any emacscli= ent frames currently open,
but not for subsequently opened em= acsclient frames. So emacsclient
frames opened after a symlin= k theme change and (load-file ~/.emacs) do
not actually use t= he new theme.

I experienced this on my main laptop, but a= lso managed to reproduce it in
a minimal setup in a virtual m= achine. I hope you have time to take a look at
this, and let = me know if you need any more information.

--------------------------= ---------------

In GNU Emacs 24.5.1 (x86_64-unknown-linux= -gnu, GTK+ Version 3.20.6)
=C2=A0of 2016-06-04 on juergen
Windowing s= ystem distributor `The X.Org Foundation', version 11.0.11803000
Conf= igured using:
=C2=A0`configure --prefix=3D/usr --sysconfdir=3D/etc --lib= execdir=3D/usr/lib
=C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3 = --with-xft
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pip= e
=C2=A0-fstack-protector-strong' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2=C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro'

Im= portant settings:
=C2=A0 value of $LANG: en_CA.UTF-8
=C2=A0 locale-co= ding-system: utf-8-unix

Major mode: Lisp Interaction

Minor mo= des in effect:
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode: t<= br>=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar= -mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode= : t
=C2=A0 font-lock-mode: t
=C2=A0 auto-composition-mode: t
=C2= =A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 li= ne-number-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:<= br>
Making completion list...

Load-path shadows:
None found.
Features:
(mailalias mailclient browse-url cus-edit cus-start cus-= load wid-edit
cl-loaddefs cl-lib pp shadow sort gnus-util mail-extr emac= sbug message
idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-= encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc20= 47
rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-modeeasymenu server time-date my-theme tooltip electric uniquify ediff-hookvc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset imageregexp-opt fringe tabulated-list newcomment lisp-mode prog-mode registerpage 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 romani= an slovak czech european ethiopic indian cyrillic chinese
case-table epa= -hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs butto= n faces cus-face macroexp files text-properties overlay
sha1 md5 base64 = format env code-pages mule custom widget
hashtable-print-readable backqu= ote make-network-process dbusbind
gfilenotify dynamic-setting system-fon= t-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty ema= cs)

Memory information:
((conses 16 104066 14117)
=C2=A0(symbo= ls 48 19670 0)
=C2=A0(miscs 40 89 210)
=C2=A0(strings 32 15546 3860)<= br>=C2=A0(string-bytes 1 409883)
=C2=A0(vectors 16 11334)
=C2=A0(vect= or-slots 8 407677 6562)
=C2=A0(floats 8 84 151)
=C2=A0(intervals 56 1= 137 16)
=C2=A0(buffers 960 17)
=C2=A0(heap 1024 21212 1781))

<= /div>
--001a11449ce0148ad80535918fbd--