From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; Echo Area Face Date: Mon, 2 Dec 2013 18:02:19 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ffbad05027ef204ec8f4e91 X-Trace: ger.gmane.org 1386000148 10543 80.91.229.3 (2 Dec 2013 16:02:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Dec 2013 16:02:28 +0000 (UTC) To: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 02 17:02:34 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VnVx8-0008Pe-PQ for ged-emacs-devel@m.gmane.org; Mon, 02 Dec 2013 17:02:30 +0100 Original-Received: from localhost ([::1]:37507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnVx8-0003CS-EV for ged-emacs-devel@m.gmane.org; Mon, 02 Dec 2013 11:02:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnVx1-0003CK-2c for emacs-devel@gnu.org; Mon, 02 Dec 2013 11:02:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnVwz-0005kx-Kw for emacs-devel@gnu.org; Mon, 02 Dec 2013 11:02:23 -0500 Original-Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:46621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnVwz-0005kl-9k for emacs-devel@gnu.org; Mon, 02 Dec 2013 11:02:21 -0500 Original-Received: by mail-pd0-f171.google.com with SMTP id z10so18356643pdj.16 for ; Mon, 02 Dec 2013 08:02:20 -0800 (PST) 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=DNJSQGyyeojaVVpcP8g6IWW3LHyyPDDalcZTOPA8Rx0=; b=zkssHY/8gsP6KMsFqRdFB+SYns5yJk48q5pZzpvmBAdOzT5h1aX2kxqCjNHMznIHBk 6fQVlKP4kpLfld+Mtc8BVKy7D832BvPtd8EiDsBUyrSAJJiJRc7Rc7TQYVw57UOfTlZQ GdTh/TM//E4/X/2Y54Wdz415yq0/GjRRcMizaR8UJYB95ruoOJFkMWBOdvS9VQDztyBf tanH1FMSgm1jGC3i9sSor9WE8o2TYB2u+QHqYxKNWScspDYwZEWaCHEMsam4mFPWnDHP cu7Zd0FBxBMidJJ8cDZuR39XZPSEcCKD/XvLAQXCA3/sAt0a4aqFF28OZpf6echdIBle Fb/w== X-Received: by 10.66.118.71 with SMTP id kk7mr69130913pab.14.1386000140105; Mon, 02 Dec 2013 08:02:20 -0800 (PST) Original-Received: by 10.66.72.166 with HTTP; Mon, 2 Dec 2013 08:02:19 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166011 Archived-At: --e89a8ffbad05027ef204ec8f4e91 Content-Type: text/plain; charset=UTF-8 > > > I was experimenting with Miles Baders new face remapping functionality > > and tried to display the minibuffer/echo area in a smaller font size. > > This does the job for minibuffer-iteraction: > > (add-hook 'minibuffer-setup-hook 'set-minibuffer-face) > > (defun set-minibuffer-face () > > (set (make-local-variable 'face-remapping-alist) > > '((default :family "DejaVu Sans" :height 0.75)))) > > but there doesn't seem a way to influence the display of messages > > displayed in the minibuffer. I tought the above would take care of it. I > > know the minibuffer is somewhat special. How do I set a buffer local > > variable for it? > I thought that maybe the following hack I've been using for ages (to add > special key bindings to my minibuffer-only frame, such as `f' to > find-file-other-frame) would work as well but it doesn't because the > echo messages are displayed in the same window as the minibuffers, but > in diferent buffers. > (add-hook 'minibuffer-exit-hook > (lambda () > (with-current-buffer (window-buffer (minibuffer-window)) > (set (make-local-variable 'face-remapping-alist) > '((default :family "DejaVu Sans" :height 0.75)))))) > so you'll need to set this var in all the " *Echo Area N*" buffers, > which is rather ugly. I don't know how many of them there can be: > I only see 2 here (the 0 and the 1), but maybe there can be more (tho > maybe not, since there can't be recursive echo area messages AFAIK), > > Stefan I do not undestand at all why do you set the faces of a *minibuffer* when you EXIT, instead of setting it when you ENTER it, via minibuffer-setup-hook. I did so for all major modes (a different file for each hook I need) -- including for minibiffer --, and it works well: (defun minibuffer-setup () (load (thinkpad-x-theme 'minibuffer) t t) ) (add-hook 'minibuffer-setup-hook 'minibuffer-setup nil) --e89a8ffbad05027ef204ec8f4e91 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> I was experimenting with Miles Bader= s new face remapping functionality
> and tried to display the minibuffer/echo area in a smaller font size.<= br>> This does the job for minibuffer-iteraction:
> (add-hook '= ;minibuffer-setup-hook 'set-minibuffer-face)
> (defun set-minibuf= fer-face ()
> =C2=A0 =C2=A0 (set (make-local-variable 'face-remapping-alist)
= > =C2=A0 =C2=A0 =C2=A0 =C2=A0'((default :family "DejaVu Sans&qu= ot; :height 0.75))))
> but there doesn't seem a way to influence = the display of messages
> displayed in the minibuffer. I tought the above would take care of it.= I
> know the minibuffer is somewhat special. How do I set a buffer l= ocal
> variable for it?
I thought that maybe the following hack I&= #39;ve been using for ages (to add
special key bindings to my minibuffer-only frame, such as `f' to
fin= d-file-other-frame) would work as well but it doesn't because the
ec= ho messages are displayed in the same window as the minibuffers, but
in diferent buffers.
(add-hook 'minibuffer-exit-hook
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (lambda ()
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (with-current-buffer (window-buffer (minibuffer-window))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (set (make-local-variable 'fa= ce-remapping-alist)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'(= (default :family "DejaVu Sans" :height 0.75))))))
so you'l= l need to set this var in all the " *Echo Area N*" buffers,
wh= ich is rather ugly. =C2=A0I don't know how many of them there can be: I only see 2 here (the 0 and the 1), but maybe there can be more (tho
ma= ybe not, since there can't be recursive echo area messages AFAIK),
<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan


<= /div>
I do not undestand at all why do you set the faces of a *minibuff= er* when you EXIT, instead of setting it when you ENTER it, via=C2=A0minibu= ffer-setup-hook.

I did so for all major modes (a different fil= e for each hook I need) -- including for minibiffer --, and it works well:<= /div>

(defun minibuffer-setup ()
=C2=A0 (load = (thinkpad-x-theme 'minibuffer) t t)
=C2=A0 )

(add-hook 'minibuffer-setu= p-hook 'minibuffer-setup nil)






--e89a8ffbad05027ef204ec8f4e91--