From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?5q+b56S85p2w?= Newsgroups: gmane.emacs.help Subject: Re: frame-title-format issue of emacs23.3/emacs24.0.95.1 on Fedora16/17 Date: Sun, 27 May 2012 14:30:28 +0800 Message-ID: References: <83396mx0ti.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f182d5626804c0febcbf X-Trace: dough.gmane.org 1338100252 5902 80.91.229.3 (27 May 2012 06:30:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 May 2012 06:30:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 27 08:30:51 2012 Return-path: Envelope-to: geh-help-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 1SYX01-0006kG-VU for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2012 08:30:46 +0200 Original-Received: from localhost ([::1]:37245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYX01-0007EV-AM for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2012 02:30:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYWzt-0007EP-Fh for help-gnu-emacs@gnu.org; Sun, 27 May 2012 02:30:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYWzr-00010B-Dq for help-gnu-emacs@gnu.org; Sun, 27 May 2012 02:30:37 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:46676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYWzn-0000zp-OA; Sun, 27 May 2012 02:30:31 -0400 Original-Received: by obbwd18 with SMTP id wd18so4466582obb.0 for ; Sat, 26 May 2012 23:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hnTpttSyDq2q4k2t4GI/sjaR9y3adEecHFud7zxTh8c=; b=kq7rXfvVcrCzgUhqoa12E50hOG0ow9RcrOAJPqpYSzaWK39lhlPpUnJB5F8byGPItP 3Wzft8DkE/pI5ed2LDn2eNvpDN2cF8CjguMjQKmUkzXa1A+3pi34EMCO2kvkJtBtdGwx x5jbhYjO0Ox6XgdHu+9RPKimIzQc6ysjOBGh81dfHFXKX4JGv7FJEOOIaae2cw3Umfmi hcWriObs+61F/WvCMlK2PwmU0jnSNs306Jv1jqPnLiXZUTvNJUxTFM6T+qHd7DncHCNK QkoFagQI35Cc0neTn+N/DS4k6zI6hxuXS2WPgYligabuJJO3CJehbygp7OA2gb8pXF6c DGDQ== Original-Received: by 10.60.14.2 with SMTP id l2mr4162206oec.25.1338100229169; Sat, 26 May 2012 23:30:29 -0700 (PDT) Original-Received: by 10.60.120.9 with HTTP; Sat, 26 May 2012 23:30:28 -0700 (PDT) In-Reply-To: <83396mx0ti.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85011 Archived-At: --e89a8fb1f182d5626804c0febcbf Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hi, Eli 1: first step my .emacs only one line cat ~/.emacs (warn "my frame-parameters ----: %s" (frame-parameters (selected-frame))) it ouput: Warning (emacs): my frame-parameters ----: ((parent-id . 23169188) (explicit-name) (display . :0.0) (visibility . t) (icon-name) (outer-window-id . 67109031) (window-id . 67109060) (top . 0) (left . 50) (buried-buffer-list) (buffer-list *scratch*) (unsplittable) (minibuffer . #) (modeline . t) (width . 80) (height . 35) (nam= e . emacs@host) (environment) (sticky) (cursor-color . black) (background-mode . light) (display-type . color) (horizontal-scroll-bars . t) (window-system . x) (alpha) (scroll-bar-width . 16) (cursor-type . box) (auto-lower) (auto-raise) (icon-type . t) (tool-bar-position . top) (fullscreen) (wait-for-wm . t) (title) (buffer-predicate) (tool-bar-lines . 1) (menu-bar-lines . 1) (scroll-bar-background . grey75) (scroll-bar-foreground) (right-fringe . 9) (left-fringe . 9) (line-spacing) (screen-gamma) (border-color . black) (mouse-color . black) (background-color . white) (foreground-color . black) (vertical-scroll-bars . right) (internal-border-width . 0) (border-width . 0) (font-parameter . Monospace 11) (font . -unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1) (font-backend xft x)) there were: (explicit-name) (name . emacs@host) 2: then i comment the line in .emacs of first step. now it has 2 line cat ~/.emacs (setq frame-title-format '("%m @ "("%f" ("%b")))) (warn (warn)) <- this will output: Warning (initialization): An error occurred while loading /home/sand/.emacs , but in this instance i can get the right result on title like : C/l @ /home/sand/test.c, if i comment this line, no warning message , but its result will be like: test.c - emacs@host 3: other I want to change explicit-name use modify-frame-parameter (modify-frame-parameter nil '((explicit-name . nil))) but it doesn't work. Thank you all the same On Sun, May 27, 2012 at 2:19 AM, Eli Zaretskii wrote: > > Date: Sat, 26 May 2012 22:05:39 +0800 > > From: =C3=AB=C0=F1=BD=DC > > > > It may be a bug ? > > I don't think so. > > > cat ~/.emacs > > (setq frame-title-format '("%m @ "(buffer-file-name "%f" (dired-directo= ry > > dired-directory "%b")))) > > > > I just want to set the frame-title-format to %f for my emacs24.0.95 > > > > But it don't work, i can't see the %f format on the title > > > > After emacs start, i use C-h v frame-title-format > > it shows: > > frame-title-format is a variable defined in `C source code'. > > Its value is "%b - emacs@host" > > You omitted the important part: > > It is used only on frames for which no explicit name has been set > (see `modify-frame-parameters'). > > And if I evaluate > > (frame-parameters (selected-frame)) > > I see there (explicit-name). So I think your customization is ignored > by design. I think you should set the `title' frame parameter instead. > > > --=20 =C3=AB=C0=F1=BD=DC --e89a8fb1f182d5626804c0febcbf Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hi, Eli

1= : first step
my .emacs only one line
cat ~/.emacs
(warn  &quo= t;my frame-parameters ----: %s"  (frame-parameters (selected-fram= e)))

it ouput:
Warning (emacs): my frame-parameters ----: ((parent-id . 23169188) (explicit-name) (display . := 0.0) (visibility . t) (icon-name) (outer-window-id . 67109031) (window-id .= 67109060) (top . 0) (left . 50) (buried-buffer-list) (buffer-list *scratch= *) (unsplittable) (minibuffer . #<window 4 on  *Minibuf-0*>) (mo= deline . t) (width . 80) (height . 35) (name . emacs@host) (environment) (sticky) (cursor-color= . black) (background-mode . light) (display-type . color) (horizontal-scro= ll-bars . t) (window-system . x) (alpha) (scroll-bar-width . 16) (cursor-ty= pe . box) (auto-lower) (auto-raise) (icon-type . t) (tool-bar-position . to= p) (fullscreen) (wait-for-wm . t) (title) (buffer-predicate) (tool-bar-line= s . 1) (menu-bar-lines . 1) (scroll-bar-background . grey75) (scroll-bar-fo= reground) (right-fringe . 9) (left-fringe . 9) (line-spacing) (screen-gamma= ) (border-color . black) (mouse-color . black) (background-color . white) (= foreground-color . black) (vertical-scroll-bars . right) (internal-border-w= idth . 0) (border-width . 0) (font-parameter . Monospace 11) (font . -unkno= wn-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1) (font-b= ackend xft x))

there were: (explicit-name)  (name . emacs@host)

2: then i= comment the line in .emacs of first step.
now it has 2 line
cat ~/.e= macs
(setq frame-title-format '("%m @ "("%f" (&q= uot;%b"))))
(warn (warn))  <-&n= bsp; this will output: Warning (initialization): An error occurred w= hile loading /home/sand/.emacs  , but in this instance
i can get th= e right result on title like : C/l @ /home/sand/test.c,   if i comment this line, no = warning message , but  its result will be like:  test.c - emacs@h= ost

3: other
I want to change explicit-name use modify-frame-parameter(modify-frame-parameter nil '((explicit-name . nil)))
but it doesn't work.

Thank you all the same



On Sun, Ma= y 27, 2012 at 2:19 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Sat, 26 May 2012 22:05:39 +0800
> From: =C3=AB=C0=F1=BD=DC <mao= lijie@gmail.com>
>
> It may be a bug ?

I don't think so.

> cat ~/.emacs
> (setq frame-title-format '("%m @ "(buffer-file-name &quo= t;%f" (dired-directory
> dired-directory "%b"))))
>
> I just want to set the frame-title-format to %f for my emacs24.0.95 >
> But it don't work,  i can't see the %f format on the titl= e
>
> After emacs start, i use C-h v frame-title-format
> it shows:
> frame-title-format is a variable defined in `C source code'.
> Its value is "%b - emacs@host"

You omitted the important part:

 It is used only on frames for which no explicit name has been set  (see `modify-frame-parameters').

And if I evaluate

  (frame-parameters (selected-frame))

I see there (explicit-name).  So I think your customization is ignored=
by design.  I think you should set the `title' frame parameter ins= tead.





--
=C3=AB=C0=F1=BD=DC <Mao L= ijie>
--e89a8fb1f182d5626804c0febcbf--