From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#797: list-faces-display imposes its own background, doesn't respect special-display-frame-alist Date: Wed, 27 Aug 2008 09:54:51 -0700 Message-ID: <001301c90865$9fb99ab0$c2b22382@us.oracle.com> Reply-To: Drew Adams , 797@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219856888 29003 80.91.229.12 (27 Aug 2008 17:08:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2008 17:08:08 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 27 19:09:01 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYOVd-0004LE-1P for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2008 19:08:42 +0200 Original-Received: from localhost ([127.0.0.1]:41131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYOUd-000827-H6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2008 13:07:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYOUZ-00081M-JW for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 13:07:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYOUX-000814-SD for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 13:07:35 -0400 Original-Received: from [199.232.76.173] (port=44427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYOUX-000811-MW for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 13:07:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46822) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYOUW-0004ah-Ao for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 13:07:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7RH7Thg012517; Wed, 27 Aug 2008 10:07:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7RH56lq011239; Wed, 27 Aug 2008 10:05:06 -0700 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 27 Aug 2008 17:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 797 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12198561087466 (code B ref -1); Wed, 27 Aug 2008 17:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Aug 2008 16:55:08 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7RGt0qe007221 for ; Wed, 27 Aug 2008 09:55:02 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:52103) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KYOGx-0005ib-3b for emacs-pretest-bug@gnu.org; Wed, 27 Aug 2008 12:53:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KYOIL-0007i1-7k for emacs-pretest-bug@gnu.org; Wed, 27 Aug 2008 12:55:00 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:64485) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYOIK-0007gw-6O for emacs-pretest-bug@gnu.org; Wed, 27 Aug 2008 12:54:57 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m7RGsq90030815 for ; Wed, 27 Aug 2008 10:54:52 -0600 Original-Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m7RGspap027804 for ; Wed, 27 Aug 2008 10:54:51 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 27 Aug 2008 09:54:50 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AckIZZ9jBzmHf7lkTUeA2z05nXedbA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 27 Aug 2008 13:07:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19770 gmane.emacs.pretest.bugs:22875 Archived-At: Filed this bug in 2007, so it probably wasn't added to the new bug database. Below is the original report. This is an update to say that the problem remains in the pretest (Emacs 22.2.91). Now, the symptom is that the parameters (e.g. background) of `default-frame-alist' are used for buffer *Faces*, instead of the parameters of `special-display-frame-alist'. Dunno why. Other special-display buffers, such as *Pp Eval Output*, use the correct frame parameters (from `special-display-frame-alist'). Another, perhaps related problem: When I hit C-c C-c in the bug-reporting buffer, that buffer was replaced in the same frame with buffer *Pp Eval Output*, so this buffer has the frame parameters of `default-frame-alist'. This is not right: *Pp Eval Output* should always be in its own, dedicated frame with the `special-display-frame-alist' frame parameters (given my setup, described below). IOW, if *Pp Eval Output* is shown via `pp-eval-expression' it is shown correctly, but C-c C-c in the bug report buffer placed *Pp Eval Output* in the same frame, not respecting `special-display-regexps' and `special-display-frame-alist'. Here's the original bug report: ------------8<--------------------------- > From: Drew Adams > Sent: Thursday, November 22, 2007 8:38 AM > To: Bug-Gnu-Emacs > Subject: RE: list-faces-display imposes its own > background,doesn't respect special-display-frame-alist > > Resending, consolidating the three separate mails, in case > this got lost. > > > From: Drew Adams Sent: Tuesday, October 23, 2007 3:33 PM > > > > emacs -Q > > > > Evaluate these sexps: > > > > (setq special-display-regexps '("[ ]?[*][^*]+[*]")) > > > > (setq special-display-frame-alist > > '((foreground-color . "Black") > > (background-color . "LightSteelBlue"))) > > > > (setq pop-up-frames t) > > > > (defun special-display-popup-frame (buffer &optional args) > > "Display BUFFER in its own frame, reusing an existing > window if any. > > Return the window chosen. Window is not selected within its frame. > > > > If a new frame is needed, then `make-frame' is called to create it, > > with BUFFER as the current buffer. > > > > If ARGS is an alist, use it as a list of frame parameter specs. > > If ARGS is a list whose car is a symbol, use (car ARGS) as > a function > > to do the work. Pass it BUFFER as first arg, and (cdr ARGS) as the > > rest of its args." > > (if (and args (symbolp (car args))) > > (let* ((window (apply (car args) buffer (cdr args))) > > (frame (window-frame window))) > > (when (fboundp 'fit-frame) (fit-frame (window-frame > window))) > > (raise-frame frame) > > window) ; Return the window. > > (let ((window (get-buffer-window buffer 0))) > > (or > > ;; If we have a window already, make it visible. > > (when window > > (let ((frame (window-frame window))) > > (make-frame-visible frame) > > (raise-frame frame) > > (when (fboundp 'fit-frame) (fit-frame frame)) > > window)) ; Return the window. > > ;; Reuse the current window if the user requested it. > > (when (cdr (assq 'same-window args)) > > (condition-case nil > > (progn (switch-to-buffer buffer) (selected-window)) > > (error nil))) > > ;; Stay on the same frame if requested. > > (when (or (cdr (assq 'same-frame args)) (cdr (assq > 'same-window > > args))) > > (let* ((pop-up-frames nil) (pop-up-windows t) > > special-display-regexps special-display-buffer-names > > (window (display-buffer buffer))) > > ;; Only do it if this is a new window: > > ;; (set-window-dedicated-p window t) > > window)) ; Return the window. > > > > ;; If no window yet, make one in a new frame. > > (let ((frame (with-current-buffer buffer > > (make-frame (append args > > special-display-frame-alist))))) > > (when (and (fboundp 'fit-frame) > > (not (memq 'fit-frame > after-make-frame-functions))) > > (with-current-buffer buffer (fit-frame frame))) > > (set-window-buffer (frame-selected-window frame) buffer) > > (set-window-dedicated-p (frame-selected-window frame) t) > > (frame-selected-window frame)))))) ; Return the window. > > > > Try C-h f setq - no problem. The frame background is LightSteelBlue. > > > > Try M-x list-faces-display. The frame background, or at least the > > background of buffer *Faces*, is white. The frame background appears > > to be LightSteelBlue, which is correct, but that only shows in the > > fringe and the minibuffer. (So, for a frame without minibuffer and > > fringe, no LightSteelBlue background is seen. > > > > `list-faces-display' should not impose a special background for its > > window/buffer. (And how does it do that, anyway?) > > > > I should add that list-colors-display does not have this problem. > > list-faces-display should act the same way. > > > > Also, in case it helps, the background is not imposed as white. > > It appears that the default frame background is what is imposed > > for the *Faces* buffer. > > > > > > In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) > > of 2007-06-02 on RELEASE > > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > > configured using `configure --with-gcc (3.4) --cflags > > -Ic:/gnuwin32/include' > > > > 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: ENU > > locale-coding-system: cp1252 > > default-enable-multibyte-characters: t > > > > Major mode: Emacs-Lisp > > > > Minor modes in effect: > > encoded-kbd-mode: t > > tooltip-mode: t > > tool-bar-mode: t > > mouse-wheel-mode: t > > menu-bar-mode: t > > file-name-shadow-mode: t > > global-font-lock-mode: t > > font-lock-mode: t > > blink-cursor-mode: t > > unify-8859-on-encoding-mode: t > > utf-translate-cjk-mode: t > > auto-compression-mode: t > > line-number-mode: t > > > > Recent input: > > C-x C-f o o o . e l > > > > M-x l o a d - f C-h f > > C-x k M-x l i s d > > t - t - f a c e > > C-x k C-g > > > > > > > > > > Recent messages: > > ("C:\\Emacs-22.1\\bin\\emacs.exe" "-Q" "--debug-init" > "C:\\drews-lisp-20") > > Loading encoded-kb...done > > For information about the GNU Project and its goals, type C-h C-p. > > Loading dired... > > Loading regexp-opt...done > > Loading dired...done > > Loading c:/drews-lisp-20/ooo.el (source)...done > > Loading help-fns...done > > Quit > > Loading emacsbug...done In GNU Emacs 22.2.91.1 (i386-mingw-nt5.1.2600) of 2008-08-27 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' 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: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: display-time-mode: t savehist-mode: t icomplete-mode: t tool-bar-pop-up-mode: t icicle-mode: t minibuffer-depth-indicate-mode: t pretty-control-l-mode: t delete-selection-mode: t tabbar-mode: t show-paren-mode: t encoded-kbd-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t view-mode: t