From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23796: Emacs daemon doesn't properly reload symlinked themes Date: Sat, 18 Jun 2016 22:13:53 +0300 Message-ID: <83a8ii9uoe.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466277264 17043 80.91.229.3 (18 Jun 2016 19:14:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2016 19:14:24 +0000 (UTC) Cc: 23796@debbugs.gnu.org To: Koen van Greevenbroek Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 18 21:14:13 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 1bELh5-0004iD-Ld for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2016 21:14:11 +0200 Original-Received: from localhost ([::1]:36104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELh4-0001il-TR for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jun 2016 15:14:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELgz-0001br-8a for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 15:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bELgw-0001wH-1M for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 15:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bELgv-0001w8-TR for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 15:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bELgv-0005vc-QO for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2016 15:14:01 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 23796-submit@debbugs.gnu.org id=B23796.146627719522721 (code B ref 23796); Sat, 18 Jun 2016 19:14:01 +0000 Original-Received: (at 23796) by debbugs.gnu.org; 18 Jun 2016 19:13:15 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-reply-to: (message from Koen van Greevenbroek on Sat, 18 Jun 2016 11:22:50 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:119754 Archived-At: > 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.