From unknown Fri Aug 15 20:26:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23796: Emacs daemon doesn't properly reload symlinked themes 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: To: 23796@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146627535619651 (code B ref -1); Sat, 18 Jun 2016 18:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jun 2016 18:42:36 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) MIME-Version: 1.0 Received: by 10.36.40.65 with HTTP; Sat, 18 Jun 2016 11:22:50 -0700 (PDT) From: Koen van Greevenbroek Date: Sat, 18 Jun 2016 11:22:50 -0700 Message-ID: Content-Type: multipart/alternative; boundary=001a11449ce0148ad80535918fbd 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --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-- From unknown Fri Aug 15 20:26:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23796: Emacs daemon doesn't properly reload symlinked themes Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jun 2016 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Koen van Greevenbroek Cc: 23796@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 23796-submit@debbugs.gnu.org id=B23796.146627719522721 (code B ref 23796); Sat, 18 Jun 2016 19:14:01 +0000 Received: (at 23796) by debbugs.gnu.org; 18 Jun 2016 19:13:15 +0000 Received: from localhost ([127.0.0.1]:45452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bELgA-0005uP-PR for submit@debbugs.gnu.org; Sat, 18 Jun 2016 15:13:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bELg8-0005uC-NO for 23796@debbugs.gnu.org; Sat, 18 Jun 2016 15:13:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bELg0-0001dv-EN for 23796@debbugs.gnu.org; Sat, 18 Jun 2016 15:13:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELg0-0001dU-An; Sat, 18 Jun 2016 15:13:04 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1982 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bELfw-0002Ih-Ra; Sat, 18 Jun 2016 15:13:03 -0400 Date: Sat, 18 Jun 2016 22:13:53 +0300 Message-Id: <83a8ii9uoe.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Koen van Greevenbroek on Sat, 18 Jun 2016 11:22:50 -0700) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > From: Koen van Greevenbroek > Date: Sat, 18 Jun 2016 11:22:50 -0700 > > 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. What is in my-theme.el files, and how does your ~/.emacs reference them? IOW, if what you are saying is that the same arrangement works when the theme files are not symlinks, then I think the reason for the problem is in the details of how you load your themes, something you didn't describe. From unknown Fri Aug 15 20:26:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Koen van Greevenbroek Subject: bug#23796: closed (bug 23796 closed) Message-ID: References: X-Gnu-PR-Message: they-closed 23796 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 23796@debbugs.gnu.org Date: Sun, 19 Jun 2016 18:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1466360222-31879-1" This is a multi-part message in MIME format... ------------=_1466360222-31879-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23796: Emacs daemon doesn't properly reload symlinked themes which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23796@debbugs.gnu.org. --=20 23796: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23796 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1466360222-31879-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23796-done) by debbugs.gnu.org; 19 Jun 2016 18:16:34 +0000 Received: from localhost ([127.0.0.1]:46632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEhGr-0008HL-P6 for submit@debbugs.gnu.org; Sun, 19 Jun 2016 14:16:33 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:35663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEhGq-0008H8-JZ for 23796-done@debbugs.gnu.org; Sun, 19 Jun 2016 14:16:32 -0400 Received: by mail-io0-f176.google.com with SMTP id f30so106007214ioj.2 for <23796-done@debbugs.gnu.org>; Sun, 19 Jun 2016 11:16:32 -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=4Iwis5p4cZqRZ1McvVgiKBbVwnb5ffcrmIifPGf3oWc=; b=Y/UzUo/vgHQs0WE2on7pmdWez6/b6T61yls71QsABdQIdoof2ApQbdR0nQNi1O4Rbh EKGJXPql3HH6TKmGg+jv/j1RuBz/xmwa2hiGMgkmrHg9u/WptSU0ccaJtl2nLrthl8FW pYL2MMM0SJD5EiHwU3gMNXxKUEvqv5oWpO6NBJhgZVPaXs2A/8ewznZann/F5ZMiJkoS Spy8WWhFNQexzfG8KJpwpAFqlJMzS0V8uIdtlivWBLA1KBVdmUKsD1m0yCqLbY0VAuZF TWS+akmH7EZBZ/WjHJDc1Rt2QvXJatXa1nfvIWJjcXcNMN9VylbCcirKd6OJdu1nIFD0 gyiQ== 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=4Iwis5p4cZqRZ1McvVgiKBbVwnb5ffcrmIifPGf3oWc=; b=BhbZez897IOB334ePXGxMIqz8g8q9GUnfAEFt97e/TU8XOgYZwCvB7ZuLPgUnfqZvo LLyC4FaJrodMuPPbRgLyxqRyTb3hu1gN5IQbVrThoJ9eRpVPY2/OgWchAcHlozrUxqan gVP+fXTaZWr44ukR4C5Yvtji8p4a9uc4d5gW0emZwTMGrar7VJA32ee3csHJCSv7u8qM LuhRPOLtJ0IfjQx/wNEUQCp9izOeZ3i9LnvreSP4ze21QqRSZ73SorRdvoiDSLoYQdcV ymohNZDQ5NhGV9KWqfR7pgUO07yDlbOnMApkcfSjhSHydxTKnGr/mGg+fxlS+lePEthM oaIA== X-Gm-Message-State: ALyK8tL+c4XXyu1dRxSunkGUGBzpAjON2nDCkdG8L5BWMKRYPw8q+rwV73cl7pIeV/k9iCgRaH1+2XotDmFeLQ== X-Received: by 10.107.53.233 with SMTP id k102mr17322204ioo.134.1466360186968; Sun, 19 Jun 2016 11:16:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.40.65 with HTTP; Sun, 19 Jun 2016 11:16:26 -0700 (PDT) From: Koen van Greevenbroek Date: Sun, 19 Jun 2016 11:16:26 -0700 Message-ID: Subject: bug 23796 closed To: 23796-done@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a11449ce00e9ddb0535a59624 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 23796-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11449ce00e9ddb0535a59624 Content-Type: text/plain; charset=UTF-8 This bug is closed. --001a11449ce00e9ddb0535a59624 Content-Type: text/html; charset=UTF-8
This bug is closed.
--001a11449ce00e9ddb0535a59624-- ------------=_1466360222-31879-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Jun 2016 18:42:36 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) MIME-Version: 1.0 Received: by 10.36.40.65 with HTTP; Sat, 18 Jun 2016 11:22:50 -0700 (PDT) From: Koen van Greevenbroek Date: Sat, 18 Jun 2016 11:22:50 -0700 Message-ID: Subject: Emacs daemon doesn't properly reload symlinked themes To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11449ce0148ad80535918fbd 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --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-- ------------=_1466360222-31879-1--