all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [drew.adams@oracle.com: No default for describe-font, but one is advertised]
@ 2006-07-24 14:42 Richard Stallman
  2006-07-24 16:51 ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2006-07-24 14:42 UTC (permalink / raw)


Would someone please DTRT and ack?

------- Start of forwarded message -------
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Pretest-Bug" <emacs-pretest-bug@gnu.org>
Date: Sun, 23 Jul 2006 14:14:24 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: No default for describe-font, but one is advertised
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

emacs -Q

M-x describe-font RET

You get this prompt: "Fontname (default current choice for ASCII chars): "

However, hitting RET gives this error message: "No matching font"

The prompt tells you (me at least) that there is a default value, but
hitting RET tells you that there is no default value.

Also, shouldn't that be "Font name", not "Fontname"?


In GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600)
 of 2006-07-19 on BOS-CTHEWLAP2
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-msvc (12.00)'

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:
  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
  view-mode: t

Recent input:
<down-mouse-1> <mouse-1> C-h C-h <help-echo> <down-mouse-1> 
<mouse-1> C-x 1 <help-echo> <wheel-down> <wheel-down> 
<wheel-down> <wheel-down> <wheel-down> C-h f d e s 
c r b <backspace> i b e - <tab> SPC SPC SPC <tab> <tab> 
C-g C-g M-x d e s r <backspace> c r i b e - f o n t 
<return> <tab> <tab> <backspace> <backspace> <backspace> 
<return> M-x d e c r i b e - f o n t <return> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> s <return> <return> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <report-emacs-bug>

Recent messages:
Loading regexp-opt...done
Loading dired...done
Loading help-mode...done
Loading help-fns...done
Making completion list... [5 times]
Quit [2 times]
Loading mule-diag...done
call-interactively: Text is read-only
No matching font [2 times]
Loading emacsbug...done



_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [drew.adams@oracle.com: No default for describe-font, but one is advertised]
  2006-07-24 14:42 [drew.adams@oracle.com: No default for describe-font, but one is advertised] Richard Stallman
@ 2006-07-24 16:51 ` Kevin Rodgers
  2006-07-25  3:09   ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Rodgers @ 2006-07-24 16:51 UTC (permalink / raw)


Richard Stallman wrote:
> Would someone please DTRT and ack?

The error message is "No matching font", but it is reported because
font-info returned nil, so "No info about FONTNAME" would be more
accurate.  But how can font-info return nil for the default font of
the selected frame?  Emacs is already displaying text in that font!

FYI, the default font name is determined by
	(cdr (assq 'font (frame-parameters)))
and then refined by fontset-info if fontset-query returns non-nil.

> ------- Start of forwarded message -------
> From: "Drew Adams" <drew.adams@oracle.com>
> To: "Emacs-Pretest-Bug" <emacs-pretest-bug@gnu.org>
> Date: Sun, 23 Jul 2006 14:14:24 -0700
> MIME-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Subject: No default for describe-font, but one is advertised
> X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
> 	version=3.0.4
> 
> emacs -Q
> 
> M-x describe-font RET
> 
> You get this prompt: "Fontname (default current choice for ASCII chars): "
> 
> However, hitting RET gives this error message: "No matching font"
> 
> The prompt tells you (me at least) that there is a default value, but
> hitting RET tells you that there is no default value.
> 
> Also, shouldn't that be "Font name", not "Fontname"?
> 
> 
> In GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600)
>  of 2006-07-19 on BOS-CTHEWLAP2
> X server distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-msvc (12.00)'
> 
> 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:
>   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
>   view-mode: t
> 
> Recent input:
> <down-mouse-1> <mouse-1> C-h C-h <help-echo> <down-mouse-1> 
> <mouse-1> C-x 1 <help-echo> <wheel-down> <wheel-down> 
> <wheel-down> <wheel-down> <wheel-down> C-h f d e s 
> c r b <backspace> i b e - <tab> SPC SPC SPC <tab> <tab> 
> C-g C-g M-x d e s r <backspace> c r i b e - f o n t 
> <return> <tab> <tab> <backspace> <backspace> <backspace> 
> <return> M-x d e c r i b e - f o n t <return> <left> 
> <left> <left> <left> <left> <left> <left> <left> <left> 
> <left> s <return> <return> <help-echo> <help-echo> 
> <help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
> <help-menu> <report-emacs-bug>
> 
> Recent messages:
> Loading regexp-opt...done
> Loading dired...done
> Loading help-mode...done
> Loading help-fns...done
> Making completion list... [5 times]
> Quit [2 times]
> Loading mule-diag...done
> call-interactively: Text is read-only
> No matching font [2 times]
> Loading emacsbug...done
> 
> 
> 
> _______________________________________________
> emacs-pretest-bug mailing list
> emacs-pretest-bug@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
> ------- End of forwarded message -------


-- 
Kevin Rodgers
Sr. Software Engineer, IHS

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [drew.adams@oracle.com: No default for describe-font, but one is advertised]
  2006-07-24 16:51 ` Kevin Rodgers
@ 2006-07-25  3:09   ` Richard Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2006-07-25  3:09 UTC (permalink / raw)
  Cc: emacs-devel

    The error message is "No matching font", but it is reported because
    font-info returned nil, so "No info about FONTNAME" would be more
    accurate.  But how can font-info return nil for the default font of
    the selected frame?  Emacs is already displaying text in that font!

It looks like a bug to me.  But note that neither describe-font nor
font-info is documented properly.  It is not clear to me what
sort of argument is really supposed to be meaningful for font-info.
Perhaps this was not clear to the person who wrote describe-font.

I asked Handa to help here.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-25  3:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-24 14:42 [drew.adams@oracle.com: No default for describe-font, but one is advertised] Richard Stallman
2006-07-24 16:51 ` Kevin Rodgers
2006-07-25  3:09   ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.