From unknown Tue Jun 17 01:36:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7966: 23.1.50; bold property, dark background, and defface Resent-From: "Jose F. Morales" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Feb 2011 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7966@debbugs.gnu.org X-Debbugs-Original-To: emacs-pretest-bug@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12966680409582 (code B ref -1); Wed, 02 Feb 2011 17:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Feb 2011 17:34:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pkgad-0002UV-R6 for submit@debbugs.gnu.org; Wed, 02 Feb 2011 12:34:00 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pkf1M-0000Es-01 for submit@debbugs.gnu.org; Wed, 02 Feb 2011 10:53:28 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33586) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Pkf9S-0006FW-1l for emacs-pretest-bug@gnu.org; Wed, 02 Feb 2011 11:01:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pkf9R-0000ve-5p for emacs-pretest-bug@gnu.org; Wed, 02 Feb 2011 11:01:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_ENVFROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received: from mail-fx0-f41.google.com ([209.85.161.41]:56731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pkf9Q-0000vU-UT for emacs-pretest-bug@gnu.org; Wed, 02 Feb 2011 11:01:49 -0500 Received: by fxm12 with SMTP id 12so121140fxm.0 for ; Wed, 02 Feb 2011 08:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=EpxGNHao82o+k6xmS5GMBg6DcTsSVbYjBXFqG7mKeLg=; b=S6YX/ODti+TUqAu05uvo5WWu060ZqywhAiilrQ+gwfpEaGkhhsrJy2moJestyWFUQB pT7RLq+EerpUb/jONCyglCf9Qrlh8mWP2e2YxTPu5rofDAQIh3aITmsEPc8zNVpOgyy8 bDzzOkVjHfniCP5GpbY/xy70uls5qGRQP6geM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=eVvK9fESKMy3z3qeQgfj4H0ylTTihala63qFKLd1cPLbUrsRjdygYru4kx6uMqD5Kk YJWGs/ROiLaOcA2UFmvr+8gejheJvySRg3zDjoLaqaUHZCWuZpyGhkVUihhjTZBQSGFs a75c2R45JEJRXdE6ubvQzPr8I37r9Jd2VUrUY= MIME-Version: 1.0 Received: by 10.223.101.134 with SMTP id c6mr914309fao.12.1296662507065; Wed, 02 Feb 2011 08:01:47 -0800 (PST) Received: by 10.223.54.149 with HTTP; Wed, 2 Feb 2011 08:01:47 -0800 (PST) Date: Wed, 2 Feb 2011 17:01:47 +0100 X-Google-Sender-Auth: gczDU7FvCCZVrbKpDQM-kyudWUM Message-ID: From: "Jose F. Morales" Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Wed, 02 Feb 2011 12:33:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) When defining a face color as: ... (((class color) (background light)) (:foreground "NavyBlue" :bold t)) (((class color) (background dark)) (:foreground "Lavender" :bold t)) ... the face does not switch from the light to the dark setting (or viceversa) when changing the frame background. However, it does if the face color is defined as: (((class color) (background light)) (:foreground "NavyBlue" :weight bold)) (((class color) (background dark)) (:foreground "Lavender" :weight bold)) Is it a bug or the expected behaviour? Can I safely replaced ":bold t" by ":weight bold"? Thank you. In GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25) of 2009-12-08 on huygens.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Org Minor modes in effect: TeX-PDF-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: e - m o d C-s C-s C-s C-s C-s C-a C-n C-n C-n C-n C-n C-n C-p C-n C-x o C-n C-v M-v M-< C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-p C-x o C-x 1 C-n C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-x C-f C-a C-f C-f C-g C-a d C-_ C-s d e f f a C-a C-x b C-g C-x C-b C-x o C-n C-s . o r g C-a C-n C-p C-x 1 C-n C-s T O D O C-s C-a C-n C-p C-p C-n C-p C-p M-x s e t - b a c b l w h i t e M-x M-p b l a c k C-n C-p M-x s e t c u s t o m i z e - f a o r g - t o d o C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p q C-n C-p C-n C-p M-x M-p C-g M-x s e t - b a c w h i t e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-x b C-p M-x s e t - b a b l a c k C-n C-p C-x b C-p C-n M-x r e p o r Recent messages: Mark saved where search started Quit Mark saved where search started CHILDREN Mark saved where search started Creating customization items... Creating face editor...done Creating customization items ...done Resetting customization items...done Creating customization setup...done Quit Load-path shadows: /Users/jfran/Documents/git/prolog-commons/systems/ciao/emacs-mode/prolog hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/prolog Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils warnings emacsbug sendmail org-clock crm cus-edit wid-edit multi-isearch mule-util parse-time vc-cvs js json thingatpt imenu newcomment python-21 python sym-comp cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs make-mode sgml-mode css-mode tex-info texinfo sh-script executable bibtex reftex-auc latexenc preview prv-emacs tex-buf reftex-vcr reftex-dcr reftex reftex-vars font-latex latex tex-style tex org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp org-exp-blocks org-agenda org-info org-gnus org-bibtex org-bbdb org byte-opt bytecomp byte-compile advice help-fns advice-preload org-footnote org-src org-list org-faces org-compat org-macs time-date noutline outline easy-mmode vc-git dired regexp-opt ciao etags word-help comint ring info vc-dispatcher vc-svn tex-site server edmacro kmacro desktop cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From unknown Tue Jun 17 01:36:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7966: 23.1.50; bold property, dark background, and defface In-Reply-To: Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2011 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Jose F. Morales" Cc: 7966@debbugs.gnu.org Received: via spool by 7966-submit@debbugs.gnu.org id=B7966.129678941323721 (code B ref 7966); Fri, 04 Feb 2011 03:17:02 +0000 Received: (at 7966) by debbugs.gnu.org; 4 Feb 2011 03:16:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PlCAH-0006AY-2F for submit@debbugs.gnu.org; Thu, 03 Feb 2011 22:16:53 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PlCAF-0006AF-I9 for 7966@debbugs.gnu.org; Thu, 03 Feb 2011 22:16:51 -0500 Received: from localhost ([127.0.0.1]:37747) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlCIT-0004Uz-1I; Thu, 03 Feb 2011 22:25:21 -0500 From: Glenn Morris References: X-Spook: Manfurov benelux kilo class Mafia Firewalls AIEWS weapons X-Ran: FK0)@bwF-B,|Qs{f*28fC]^q}76r3OWPIx|9*\zSa%}_]@EuSOOq_A{T_VOoFD"Z*'r3G/ X-Hue: white X-Attribution: GM Date: Thu, 03 Feb 2011 22:25:20 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) "Jose F. Morales" wrote: > Is it a bug or the expected behaviour? I would say a bug. (This issue still occurs in the current trunk on GNU/Linux.) > Can I safely replaced ":bold t" by ":weight bold"? Yes. The former exists for compatibility with Emacs 20. > In GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25) > of 2009-12-08 on huygens.local That is a very early pre-release of what became 23.2. There is no reason to use that instead of the 23.2 release. From unknown Tue Jun 17 01:36:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7966: 23.1.50; bold property, dark background, and defface Resent-From: "Jose F. Morales" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2011 09:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 7966@debbugs.gnu.org Received: via spool by 7966-submit@debbugs.gnu.org id=B7966.129681002421558 (code B ref 7966); Fri, 04 Feb 2011 09:01:02 +0000 Received: (at 7966) by debbugs.gnu.org; 4 Feb 2011 09:00:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PlHWh-0005be-TM for submit@debbugs.gnu.org; Fri, 04 Feb 2011 04:00:24 -0500 Received: from mail-vx0-f172.google.com ([209.85.220.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PlHWg-0005bL-J0 for 7966@debbugs.gnu.org; Fri, 04 Feb 2011 04:00:23 -0500 Received: by vxi40 with SMTP id 40so620111vxi.3 for <7966@debbugs.gnu.org>; Fri, 04 Feb 2011 01:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IUDBpP88HMz4ciwom9xJAcICy4ON7iX+wIlnUntUeQ0=; b=h/IVwHUb6w6lgLQyV/ZbyOMmnt1Mbe9I6v75BsybrXs297kJASR0yRCInQB/2M7lVh 2PBY0erD0cbG5DEir2WV7NnoSfB+g7zWBQAZHiCbmxJ79M8/XK7VJj1NwtOMB0esQDLg QoUzAiQUKq3UX092j1MKhA2EDo49+Ld49oioM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=NJRuYIqUbg8YcovnL1C0SbViwXbzInViyZfcJnOtO47xZW1KNtdz3VP+RipSKoX+nC 2DWqZaFhCkFjASxVbBcwCaPPYmFnb9KlP5Xk/p/tdNpGMD0mUfkuhtzTtvREb1ue0zKB Oo5h9ZRB23zc/B/kkfd55banmakbYTg5sP4EU= MIME-Version: 1.0 Received: by 10.220.198.134 with SMTP id eo6mr2908478vcb.277.1296810532842; Fri, 04 Feb 2011 01:08:52 -0800 (PST) Received: by 10.220.116.203 with HTTP; Fri, 4 Feb 2011 01:08:52 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Feb 2011 10:08:52 +0100 X-Google-Sender-Auth: vdXklg2m5UlsZdGGqUz7DFtbcyE Message-ID: From: "Jose F. Morales" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) On Fri, Feb 4, 2011 at 4:25 AM, Glenn Morris wrote: > > "Jose F. Morales" wrote: > >> Is it a bug or the expected behaviour? > > I would say a bug. (This issue still occurs in the current trunk on GNU/L= inux.) > >> Can I safely replaced ":bold t" by ":weight bold"? > > Yes. The former exists for compatibility with Emacs 20. > >> In GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.= 25) >> =A0of 2009-12-08 on huygens.local > > That is a very early pre-release of what became 23.2. There is no reason > to use that instead of the 23.2 release. All right. Thank you for the quick answer. BTW, I have checked that the font-locking part of many .el files still use the old ":bold t" (e.g., org-mode), and so, are misbehaving. I understand that switching from bright to dark background on-the-fly is not a common action. Nevertheless, a short line in the emacs documentation (unless it is trivial to fix) would save a lot of headaches :) Cheers, Jose From unknown Tue Jun 17 01:36:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7966: 23.1.50; bold property, dark background, and defface Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2011 18:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Jose F. Morales" Cc: 7966@debbugs.gnu.org Received: via spool by 7966-submit@debbugs.gnu.org id=B7966.129684564713233 (code B ref 7966); Fri, 04 Feb 2011 18:55:02 +0000 Received: (at 7966) by debbugs.gnu.org; 4 Feb 2011 18:54:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PlQnH-0003RO-3H for submit@debbugs.gnu.org; Fri, 04 Feb 2011 13:54:07 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PlQnF-0003Qv-15 for 7966@debbugs.gnu.org; Fri, 04 Feb 2011 13:54:05 -0500 Received: from localhost ([127.0.0.1]:50230) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlQvU-0004Uf-A8; Fri, 04 Feb 2011 14:02:36 -0500 From: Glenn Morris References: X-Spook: Osama Saudi Arabia clones domestic disruption beanpole X-Ran: U^n0(Atv.HlK8WFs*^6hX/:Z#e|h'jRI3TueH{y+Zk#mvU:&'twLO#~F}3h)Z*\@h`o"Ui X-Hue: blue X-Attribution: GM Date: Fri, 04 Feb 2011 14:02:35 -0500 In-Reply-To: (Jose F. Morales's message of "Fri, 4 Feb 2011 10:08:52 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) "Jose F. Morales" wrote: > BTW, I have checked that the font-locking part of many .el files still > use the old ":bold t" (e.g., org-mode), and so, are misbehaving. I would change them all to use :weight, but I imagine it's because they want to be compatible with old Emacs versions, sigh. Can the use of :bold and :italic at least be declared obsolete? Anyway, here is a possible fix. I would appreciate comments from people who understand the face code. I wonder if this issue affects anything else. I also tried adding bold and italic to face-attribute-name-alist, and changing internal-get-lisp-face-attribute; but that seemed to cause problems. === modified file 'lisp/faces.el' *** lisp/faces.el 2011-02-03 06:55:48 +0000 --- lisp/faces.el 2011-02-04 18:53:56 +0000 *************** *** 1605,1617 **** is used. If nil or omitted, use the selected frame." (unless frame (setq frame (selected-frame))) ! (let ((list face-attribute-name-alist) ! (match t)) (while (and match (not (null list))) (let* ((attr (car (car list))) (specified-value ! (if (plist-member attrs attr) ! (plist-get attrs attr) 'unspecified)) (value-now (face-attribute face attr frame))) (setq match (equal specified-value value-now)) --- 1605,1631 ---- is used. If nil or omitted, use the selected frame." (unless frame (setq frame (selected-frame))) ! (let* ((list face-attribute-name-alist) ! (match t) ! (bold (and (plist-member attrs :bold) ! (not (plist-member attrs :weight)))) ! (italic (and (plist-member attrs :italic) ! (not (plist-member attrs :slant)))) ! (plist (if (or bold italic) ! (copy-sequence attrs) ! attrs))) ! ;; Handle the Emacs 20 :bold and :italic properties. ! (if bold ! (plist-put plist :weight (if bold 'bold 'normal))) ! (if italic ! (plist-put plist :slant (if italic 'italic 'normal))) (while (and match (not (null list))) (let* ((attr (car (car list))) (specified-value ! (if (plist-member plist attr) ! (plist-get plist attr) 'unspecified)) (value-now (face-attribute face attr frame))) (setq match (equal specified-value value-now)) From unknown Tue Jun 17 01:36:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Jose F. Morales" Subject: bug#7966: closed (Re: bug#7966: 23.1.50; bold property, dark background, and defface) Message-ID: References: X-Gnu-PR-Message: they-closed 7966 X-Gnu-PR-Package: emacs Reply-To: 7966@debbugs.gnu.org Date: Tue, 08 Feb 2011 04:02:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1297137722-3885-1" This is a multi-part message in MIME format... ------------=_1297137722-3885-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7966: 23.1.50; bold property, dark background, and defface 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 7966@debbugs.gnu.org. --=20 7966: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7966 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1297137722-3885-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7966-done) by debbugs.gnu.org; 8 Feb 2011 04:01:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pmele-0000zv-6B for submit@debbugs.gnu.org; Mon, 07 Feb 2011 23:01:30 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pmelc-0000zh-85 for 7966-done@debbugs.gnu.org; Mon, 07 Feb 2011 23:01:28 -0500 Received: from localhost ([127.0.0.1]:36193) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pmeu0-00067R-JP; Mon, 07 Feb 2011 23:10:08 -0500 From: Glenn Morris To: 7966-done@debbugs.gnu.org Subject: Re: bug#7966: 23.1.50; bold property, dark background, and defface References: X-Spook: red noise fundamentalist threat Mena Montenegro Crowell X-Ran: nVa>A'S3I772-jc5<:k4|\X|V1{ye>w{?3o8a=c User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 7966-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Version: 23.3 In the absence of any comments about that patch I installed it. ------------=_1297137722-3885-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Feb 2011 17:34:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pkgad-0002UV-R6 for submit@debbugs.gnu.org; Wed, 02 Feb 2011 12:34:00 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pkf1M-0000Es-01 for submit@debbugs.gnu.org; Wed, 02 Feb 2011 10:53:28 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33586) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Pkf9S-0006FW-1l for emacs-pretest-bug@gnu.org; Wed, 02 Feb 2011 11:01:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pkf9R-0000ve-5p for emacs-pretest-bug@gnu.org; Wed, 02 Feb 2011 11:01:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_ENVFROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received: from mail-fx0-f41.google.com ([209.85.161.41]:56731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pkf9Q-0000vU-UT for emacs-pretest-bug@gnu.org; Wed, 02 Feb 2011 11:01:49 -0500 Received: by fxm12 with SMTP id 12so121140fxm.0 for ; Wed, 02 Feb 2011 08:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=EpxGNHao82o+k6xmS5GMBg6DcTsSVbYjBXFqG7mKeLg=; b=S6YX/ODti+TUqAu05uvo5WWu060ZqywhAiilrQ+gwfpEaGkhhsrJy2moJestyWFUQB pT7RLq+EerpUb/jONCyglCf9Qrlh8mWP2e2YxTPu5rofDAQIh3aITmsEPc8zNVpOgyy8 bDzzOkVjHfniCP5GpbY/xy70uls5qGRQP6geM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=eVvK9fESKMy3z3qeQgfj4H0ylTTihala63qFKLd1cPLbUrsRjdygYru4kx6uMqD5Kk YJWGs/ROiLaOcA2UFmvr+8gejheJvySRg3zDjoLaqaUHZCWuZpyGhkVUihhjTZBQSGFs a75c2R45JEJRXdE6ubvQzPr8I37r9Jd2VUrUY= MIME-Version: 1.0 Received: by 10.223.101.134 with SMTP id c6mr914309fao.12.1296662507065; Wed, 02 Feb 2011 08:01:47 -0800 (PST) Received: by 10.223.54.149 with HTTP; Wed, 2 Feb 2011 08:01:47 -0800 (PST) Date: Wed, 2 Feb 2011 17:01:47 +0100 X-Google-Sender-Auth: gczDU7FvCCZVrbKpDQM-kyudWUM Message-ID: Subject: 23.1.50; bold property, dark background, and defface From: "Jose F. Morales" To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 02 Feb 2011 12:33:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) When defining a face color as: ... (((class color) (background light)) (:foreground "NavyBlue" :bold t)) (((class color) (background dark)) (:foreground "Lavender" :bold t)) ... the face does not switch from the light to the dark setting (or viceversa) when changing the frame background. However, it does if the face color is defined as: (((class color) (background light)) (:foreground "NavyBlue" :weight bold)) (((class color) (background dark)) (:foreground "Lavender" :weight bold)) Is it a bug or the expected behaviour? Can I safely replaced ":bold t" by ":weight bold"? Thank you. In GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25) of 2009-12-08 on huygens.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Org Minor modes in effect: TeX-PDF-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: e - m o d C-s C-s C-s C-s C-s C-a C-n C-n C-n C-n C-n C-n C-p C-n C-x o C-n C-v M-v M-< C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-p C-x o C-x 1 C-n C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-x C-f C-a C-f C-f C-g C-a d C-_ C-s d e f f a C-a C-x b C-g C-x C-b C-x o C-n C-s . o r g C-a C-n C-p C-x 1 C-n C-s T O D O C-s C-a C-n C-p C-p C-n C-p C-p M-x s e t - b a c b l w h i t e M-x M-p b l a c k C-n C-p M-x s e t c u s t o m i z e - f a o r g - t o d o C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p q C-n C-p C-n C-p M-x M-p C-g M-x s e t - b a c w h i t e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-x b C-p M-x s e t - b a b l a c k C-n C-p C-x b C-p C-n M-x r e p o r Recent messages: Mark saved where search started Quit Mark saved where search started CHILDREN Mark saved where search started Creating customization items... Creating face editor...done Creating customization items ...done Resetting customization items...done Creating customization setup...done Quit Load-path shadows: /Users/jfran/Documents/git/prolog-commons/systems/ciao/emacs-mode/prolog hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/prolog Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils warnings emacsbug sendmail org-clock crm cus-edit wid-edit multi-isearch mule-util parse-time vc-cvs js json thingatpt imenu newcomment python-21 python sym-comp cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs make-mode sgml-mode css-mode tex-info texinfo sh-script executable bibtex reftex-auc latexenc preview prv-emacs tex-buf reftex-vcr reftex-dcr reftex reftex-vars font-latex latex tex-style tex org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp org-exp-blocks org-agenda org-info org-gnus org-bibtex org-bbdb org byte-opt bytecomp byte-compile advice help-fns advice-preload org-footnote org-src org-list org-faces org-compat org-macs time-date noutline outline easy-mmode vc-git dired regexp-opt ciao etags word-help comint ring info vc-dispatcher vc-svn tex-site server edmacro kmacro desktop cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) ------------=_1297137722-3885-1--