GNU bug report logs - #4295
23.1; saving default font

Previous Next

Package: emacs;

Reported by: Jim Mahoney <mahoney <at> marlboro.edu>

Date: Mon, 31 Aug 2009 04:50:04 UTC

Severity: normal

Tags: confirmed

Merged with 2845, 2891, 22939, 23366, 43480

Found in versions 25.0.92, 25.0.93, 27.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4295 in the body.
You can then email your comments to 4295 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4295; Package emacs. (Mon, 31 Aug 2009 04:50:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Mahoney <mahoney <at> marlboro.edu>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 31 Aug 2009 04:50:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jim Mahoney <mahoney <at> marlboro.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; saving default font
Date: Mon, 31 Aug 2009 00:41:05 -0400
I'm running on Mac OS X, v 10.5.8.
I'm a longtime user of XEmacs,
and am trying this recent Emacs release.

I was impressed that the menu Options >> Set Default Font...
brought up the standard Apple font dialog, and that I was
able to set a default font for the current window,
namely Anonymous Pro 18.

However, there doesn't seem to be any way to easily preserve
that choice over multiple Emacs launches.  Options >> Save Defaults
is the obvious choice, but it has no apparent effect - the next
Emacs launch reverts to the default font, and I see no
"Anonymous Pro" in ~/.emacs or anywhere else I could find.

Nor could I find anything in the customization
menus that would preserve this simple "default font/size" choice;
instead, the docs take me (as is the emacs/xemacs usual) through
the bewildering choices of X11,faces,etc,etc.  I mucked about for
a bit but could find nothing that would preserve this simple
default font font choice.

I'm looking for an programming editor to suggest to my students.
I really like emacs, but setting it up has often been problematic.

This version looks like it has good Mac OS integration,
but if even this first customization step failed,
my confidence isn't high.

With the apparent requirement of setting the font each time
the application launches, it isn't going to do me much good.

------------------------------------


In GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2009-08-16 on black.local
Windowing system distributor `Apple', version 10.3.949
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: Info

Minor modes in effect:
  highlight-changes-visible-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:
<options> <menu-set-font> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <down-mouse-1> <mouse-2> <help-echo>
<down-mouse-1> <mouse-2> <help-echo> <help-echo> <menu-bar>
<options> <customize> <customize-saved> <help-echo>
<help-echo> <menu-bar> <options> <customize> <customize-changed-options>
<help-echo> <help-echo> <menu-bar> <options> <customize>
<customize-face> <return> 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-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-p C-p C-p C-p C-p C-p <escape>
< C-n C-n C-n C-n C-n C-n <help-echo> <help-echo> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> C-p C-a C-p C-p
u C-s d e f a u l t SPC f o n C-a C-p C-p u <help-echo>
<help-echo> <menu-bar> <options> <customize> <customize-browse>
<help-echo> <down-mouse-1> <mouse-2> <help-echo> <down-mouse-1>
<mouse-2> <help-echo> <help-echo> <help-echo> <wheel-down>
<double-wheel-down> <triple-wheel-down> <triple-wheel-down>
<wheel-up> <double-wheel-up> <triple-wheel-up> <help-echo>
<help-echo> <down-mouse-1> <mouse-2> <help-echo> <help-echo>
<help-echo> <wheel-down> <double-wheel-down> <triple-wheel-down>
<triple-wheel-up> <triple-wheel-up> <help-echo> <help-echo>
<down-mouse-1> <drag-mouse-1> <down-mouse-1> <mouse-1>
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
<wheel-down> <wheel-down> <wheel-down> <double-wheel-down>
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
<triple-wheel-down> <wheel-down> <double-wheel-down>
<triple-wheel-down> <triple-wheel-down> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <wheel-down> <double-wheel-down>
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
<help-echo> <down-mouse-1> <mouse-2> <help-echo> <help-echo>
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
<down-mouse-1> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <down-mouse-1> <mouse-2> <wheel-down>
<double-wheel-down> <triple-wheel-down> <triple-wheel-down>
<wheel-up> <double-wheel-up> <wheel-up> <double-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<down-mouse-1> <mouse-1> C-s f o n t C-a C-n C-s C-s
C-n C-a C-p C-a <return> 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-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-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-n C-n C-n C-n C-n C-n C-n <help-echo> <down-mouse-1>
<mouse-2> <help-echo> <down-mouse-1> <mouse-2> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Creating group state...
Creating group... done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
Mark set [2 times]
Mark saved where search started [2 times]
customize-saved: No saved user options
mouse-select-font: Wrong type argument: stringp, nil
byte-code: Beginning of buffer [5 times]




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4295; Package emacs. (Mon, 31 Aug 2009 15:10:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 31 Aug 2009 15:10:07 GMT) Full text and rfc822 format available.

Message #10 received at 4295 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jim Mahoney <mahoney <at> marlboro.edu>
Cc: 4295 <at> debbugs.gnu.org
Subject: Re: bug#4295: 23.1; saving default font
Date: Mon, 31 Aug 2009 11:04:10 -0400
> However, there doesn't seem to be any way to easily preserve
> that choice over multiple Emacs launches.  Options >> Save Defaults
> is the obvious choice, but it has no apparent effect - the next
> Emacs launch reverts to the default font, and I see no
> "Anonymous Pro" in ~/.emacs or anywhere else I could find.

I cannot reproduce it under GNU/Linux.
Can you try it with an empty .emacs ?


        Stefan



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4295; Package emacs. (Tue, 01 Sep 2009 00:05:44 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 01 Sep 2009 00:05:44 GMT) Full text and rfc822 format available.

Message #15 received at 4295 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jim Mahoney <mahoney <at> marlboro.edu>
Cc: 4295 <at> debbugs.gnu.org
Subject: Re: bug#4295: 23.1; saving default font
Date: Mon, 31 Aug 2009 20:01:49 -0400
> I have tried it with several .emacs file variations.
> "Save Defaults" on my system doesn't seem to modify .emacs.
> I see a "loading battery" message in the status line,
> whatever that means.

It means there is some customization somewhere (`battery' is not loaded
by default, AFAIK).  It may be triggering the problem, somehow.
Please try and figure out why/where is `battery' loaded.


        Stefan


SP: Please keep 4295 <at> debbugs.gnu.org in the Cc.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4295; Package emacs. (Tue, 01 Sep 2009 00:55:17 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Mahoney <mahoney <at> marlboro.edu>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 01 Sep 2009 00:55:17 GMT) Full text and rfc822 format available.

Message #20 received at 4295 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jim Mahoney <mahoney <at> marlboro.edu>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 4295 <at> debbugs.gnu.org
Subject: Re: bug#4295: 23.1; saving default font
Date: Mon, 31 Aug 2009 20:47:26 -0400
I've played around with this a bit more,
but haven't seen anything change, nor can
do I see any customization that would be interfering.

* I did have a macports emacs installed in
  /opt/local ; I've disabled it with no change in behavior.

* I have likewise disable my ~/.xemacs/ folder; I don't
  know if emacs uses that.

* I can't find a "battery" initialization in another emacs,
  nor have I see noticed that before.

* Apropos on "battery" shows "display-battery-mode";
  turning that on and then Options >> Save Options does
  write that to ~/.emacs :

thirty:Library$ more ~/.emacs
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(display-battery-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

The status bar says "wrote /Users/mahoney/.emacs" after Save Options,
when I set or unset the "display-battery-mode".  However the default
font choice isn't saved.

So it knows how to write to ~/.emacs ; however, the "default font"
choice isn't seen as something that emacs needs to save.

The font choice dialog is mac-specific, as the movie link
I sent you shows.  If you haven't tested it on a Mac,
then it wouldn't surprise me that you can't see the bug.

As I said earlier, I would be interested in an emacs
with a simple Mac integration; however, this one doesn't
seem to pass this first test I tried.

I wish you all luck with it, and submitted the bug to
be helpful, but am not particularly interested in spending
the time to pursue this.

Good luck,

Jim Mahoney
Marlboro College

Stefan Monnier wrote:
>> I have tried it with several .emacs file variations.
>> "Save Defaults" on my system doesn't seem to modify .emacs.
>> I see a "loading battery" message in the status line,
>> whatever that means.
> 
> It means there is some customization somewhere (`battery' is not loaded
> by default, AFAIK).  It may be triggering the problem, somehow.
> Please try and figure out why/where is `battery' loaded.
> 
> 
>         Stefan
> 
> 
> SP: Please keep 4295 <at> emacsbugs.donarmstrong.com in the Cc.
> 



bug reassigned from package 'emacs' to 'emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Tue, 01 Sep 2009 21:20:07 GMT) Full text and rfc822 format available.

Merged 2845 2891 4295. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Tue, 01 Sep 2009 22:25:07 GMT) Full text and rfc822 format available.

Merged 2845 2891 4295 22939 23366. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Apr 2016 19:20:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Apr 2016 19:22:02 GMT) Full text and rfc822 format available.

Merged 2845 2891 4295 22939 23366 43480. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Fri, 18 Sep 2020 09:49:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Oct 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.