From unknown Sun Jun 22 07:28:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14664 <14664@debbugs.gnu.org> To: bug#14664 <14664@debbugs.gnu.org> Subject: Status: 24.3; argument NO-ENABLE of 'load-theme' ignored in new frames Reply-To: bug#14664 <14664@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:28:37 +0000 retitle 14664 24.3; argument NO-ENABLE of 'load-theme' ignored in new frames reassign 14664 emacs submitter 14664 JuanLeon Lahoz severity 14664 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 19 08:49:44 2013 Received: (at submit) by debbugs.gnu.org; 19 Jun 2013 12:49:44 +0000 Received: from localhost ([127.0.0.1]:55104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpHpX-0004ag-Qu for submit@debbugs.gnu.org; Wed, 19 Jun 2013 08:49:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49520) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpHpU-0004aR-8A for submit@debbugs.gnu.org; Wed, 19 Jun 2013 08:49:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpHpK-0007TA-T4 for submit@debbugs.gnu.org; Wed, 19 Jun 2013 08:49:35 -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]:40443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpHpK-0007T5-Pa for submit@debbugs.gnu.org; Wed, 19 Jun 2013 08:49:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpHpH-0000Xa-JE for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2013 08:49:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpHpE-0007Rj-4y for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2013 08:49:27 -0400 Received: from mail-oa0-x243.google.com ([2607:f8b0:4003:c02::243]:44991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpHpD-0007Ra-UF for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2013 08:49:24 -0400 Received: by mail-oa0-f67.google.com with SMTP id l10so2818989oag.10 for ; Wed, 19 Jun 2013 05:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=o5cCBgba2DI1eaoKLgaR5rKm45uo+aXX9woudcsJj/8=; b=C1BRrioteDt1ECdQZ+RFsMgBdw/UwMJ/Tv5Dk72FkTQJI8G7mWfuhAErgdSTTy878/ 9n9G+QA6a+DD2jZ+If7teKMUTRC6g2aCfIQq+Ay/ZNEfGIXH+wYaSogiDAVVKToUwiNO jq4MRB5fvySEVoG6TZF0Fgp6tz4U3GNqOiKqUnDjmw03QSc9t5hVoTHYNty101WS52ok clmZOL/oMLZQNaXU/nEtEjtlLUbMIt5sAvfitaP1jCOTjzuRvpiQkFbcRbnHfGiEzwld s0od8fp4BQcCxDw8vmMqyjuQMhBhl1tSTQw6ZrqyNlQ7NLJFtbCJsrcVITUI++21ZMgF N6SQ== MIME-Version: 1.0 X-Received: by 10.60.62.7 with SMTP id u7mr1602097oer.134.1371646162821; Wed, 19 Jun 2013 05:49:22 -0700 (PDT) Received: by 10.76.115.169 with HTTP; Wed, 19 Jun 2013 05:49:22 -0700 (PDT) Date: Wed, 19 Jun 2013 14:49:22 +0200 Message-ID: Subject: 24.3; argument NO-ENABLE of 'load-theme' ignored in new frames From: JuanLeon Lahoz To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e01538a544ae55c04df8142c6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (----) --089e01538a544ae55c04df8142c6 Content-Type: text/plain; charset=ISO-8859-1 I think this is a bug but I am enjoying it as a feature. With emacs -Q, I eval "(load-theme 'dichromacy t t)". Nothing changes, as expected since per the doc: If optional arg NO-ENABLE is non-nil, load the theme but don't enable it, unless the theme was already enabled. But if I create a new frame, the frame has the dichromacy theme enabled. If this is a feature, I think documentation is somewhat misleading. Also, argument NO-ENABLE is ignored if the theme had been enabled in the previous session: emacs -Q and then eval (load-theme 'dichromacy t) (load-theme 'tango t) (load-theme 'dichromacy t t) dichromacy is enabled Again, maybe the documentation is not 100% clear and this is not a bug, but a limitation. Anyways, I like very much the ability to use different themes in different frames (load-theme-buffer-local does not apply to minibuffer nor mode-line), which I partially enjoy with: (load-theme my-main-theme t) (load-theme my-theme-for-emacsclient-frames t t) Thanks juanleon In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2013-05-14 on malaz Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.2 LTS Configured using: `configure '--with-x-toolkit=gtk3'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-y C-SPC C-w ' C-y M-d M-d M-d C-x C-e C-x C-e C-x C-e C-x C-e M-x n e w - f r M-x d e l e f r M-x M-x C-x C-e C-k M-x s e n r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [4 times] t [4 times] Making completion list... You can run the command `delete-frame' with C-x 5 0 [2 times] t Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message 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 mail-prsvr mail-utils help-mode easymenu dichromacy-theme time-date tooltip 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 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 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --089e01538a544ae55c04df8142c6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I think this is a bug but I am enjoying it as a featu= re.

With emacs -Q, I eval "(load-theme 'dichromacy t t)&quo= t;.=A0 Nothing changes, as
expected since per the doc:

=A0=A0=A0= =A0=A0=A0=A0=A0 If optional arg NO-ENABLE is non-nil, load the theme but do= n't enable
=A0=A0=A0=A0=A0=A0=A0=A0 it, unless the theme was already enabled.

B= ut if I create a new frame, the frame has the dichromacy theme enabled.
=
If this is a feature, I think documentation is somewhat misleading.
=
Also, argument NO-ENABLE is ignored if the theme had been enabled in th= e
previous session:

emacs -Q and then eval

(load-theme 'di= chromacy t)
(load-theme 'tango t)
(load-theme 'dichromacy t t= )

dichromacy is enabled

Again, maybe the documentation is not= 100% clear and this is not a bug, but
a limitation.

Anyways, I like very much the ability to us= e different themes in different
frames (load-theme-buffer-local does not= apply to minibuffer nor mode-line),
which I partially enjoy with:

(load-theme my-main-theme t)
(load-theme my-theme-for-emacsclient-fr= ames t t)

Thanks
juanleon
In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
=A0of 2013-05-14 on malaz
Windowing system distributor `The X.Org Founda= tion', version 11.0.11103000
System Description:=A0=A0=A0 Ubuntu 12.= 04.2 LTS

Configured using:
=A0`configure '--with-x-toolkit=3D= gtk3''

Important settings:
=A0 value of $LANG: en_US.UTF-8
=A0 locale-co= ding-system: utf-8-unix
=A0 default enable-multibyte-characters: t
Major mode: Lisp Interaction

Minor modes in effect:
=A0 tooltip= -mode: t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
= =A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lo= ck-mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
= =A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-ma= rk-mode: t

Recent input:
C-y <up> <return> <S-inse= rt> <left> <left> <left> <down>
<C-left&g= t; C-SPC <C-right> C-w <up> <C-right> <C-right> <C-right> <C-left> ' C-y M-d M-d M-d <end> C-x C-e C-x C-e C-x C-e <down> <up> C-x C-e <down> M-x n e
= w <tab> - f r <tab> <return> <switch-frame> <hel= p-echo>
M-x d e l e <tab> f r <tab> <return> M-x <up> <u= p>
<return> <switch-frame> M-x <up> <up> <= ;return> <left>
C-x C-e <up> <right> C-k M-x s e n= <tab> <backspace>
<backspace> <backspace> r e p o <tab> r <tab> <r= et
urn>

Recent messages:
For information about GNU Emacs an= d the GNU system, type C-h C-a.
Mark set [4 times]
t [4 times]
Making completion list...
You can run the command `delete-frame' wit= h C-x 5 0 [2 times]
t
Making completion list...

Load-path shad= ows:
None found.

Features:
(shadow sort gnus-util mail-extr em= acsbug message 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
mail-prsvr = mail-utils help-mode easymenu dichromacy-theme time-date
tooltip ediff-h= ook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
= register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-loc= k font-lock syntax facemenu font-core frame cham georgian
utf-8-lang mis= c-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyr= illic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minib= uffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtab= le-print-readable backquote make-network-process dynamic-setting
system-= font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty = emacs)

--089e01538a544ae55c04df8142c6-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 18 03:54:46 2013 Received: (at 14664-done) by debbugs.gnu.org; 18 Dec 2013 08:54:46 +0000 Received: from localhost ([127.0.0.1]:56562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtCtx-00032n-V6 for submit@debbugs.gnu.org; Wed, 18 Dec 2013 03:54:46 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:37433) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtCtv-00032e-U7 for 14664-done@debbugs.gnu.org; Wed, 18 Dec 2013 03:54:44 -0500 Received: by mail-pd0-f179.google.com with SMTP id r10so7999304pdi.10 for <14664-done@debbugs.gnu.org>; Wed, 18 Dec 2013 00:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=SvbIMDUuMTxBLYooiytdi8IBHIOK/ba+LqG2SVc/idY=; b=CJl/vXDBjnbqDJ5YIq64oDscHeqjKEwrFZks2zL1L4oZkkbjKYcN7Zuhc2L+2ZWGnQ pIyB3MlcKK9YfRzpjwHpyZyMtdvswohK5PPeEFYaljo6cfwTs2W/oM+NVUUf5xmKfce3 wXzfanyyQFDCMd87XRmnzObhoqRa5wSDcc7OxjIVFiAFn7Ue16JtQOnCGCYLpvAHe7lZ NerSlWh2guLFVCn8S1fwHHeArj7Efgy1LqIu4C6LKWHysjRsySEQ56pXo3QMFuWK3E/a fvtVBXA4Zbf7q0YpusnbOm6mjyexYkgFTkQHUXWRMLWdG1oEOylWifGEcD0EfTPe6Ylb lCMA== X-Received: by 10.68.136.34 with SMTP id px2mr32258557pbb.113.1387356881608; Wed, 18 Dec 2013 00:54:41 -0800 (PST) Received: from tsparkle ([155.69.19.37]) by mx.google.com with ESMTPSA id qv8sm39415281pbc.31.2013.12.18.00.54.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Dec 2013 00:54:40 -0800 (PST) From: Chong Yidong To: JuanLeon Lahoz Subject: Re: bug#14664: 24.3; argument NO-ENABLE of 'load-theme' ignored in new frames References: Date: Wed, 18 Dec 2013 16:54:39 +0800 In-Reply-To: (JuanLeon Lahoz's message of "Wed, 19 Jun 2013 14:49:22 +0200") Message-ID: <87bo0ek08g.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14664-done Cc: 14664-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) JuanLeon Lahoz writes: > With emacs -Q, I eval "(load-theme 'dichromacy t t)". Nothing changes, > as expected since per the doc: > > If optional arg NO-ENABLE is non-nil, load the theme but don't enable > it, unless the theme was already enabled. > > But if I create a new frame, the frame has the dichromacy theme > enabled. This was a bug, sorry. Fixed in trunk. From unknown Sun Jun 22 07:28:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Jan 2014 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator