all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adrian Robert <arobert@cogsci.ucsd.edu>
Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org
Subject: Re: macos.texi updated
Date: Tue, 18 Oct 2005 14:29:19 -0400	[thread overview]
Message-ID: <A05DAAD5-672B-4F68-A41C-E147F821FB7F@cogsci.ucsd.edu> (raw)
In-Reply-To: <E1EPLMZ-00010C-5O@fencepost.gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 3213 bytes --]


On Oct 11, 2005, at 10:44 AM, Richard M. Stallman wrote:

>       (I guess I was
>     trying to say, "drop XLFD, and if some functionality is lost,  
> update
>     the lisp syntax to fix it".)
>
> We don't need to change Emacs for that.  You should be able, already,
> to do whatever you like in Emacs without using XLFD syntax.  What  
> is there
> that cannot be done except with XLFD syntax?

Since I use Emacs on Aqua, which does not expose XLFD anywhere, I  
can't speak directly as a user.  But looking at the situation from  
the inside on the unicode-2 branch, it appears that there are several  
major places in the code that expect all of the information for  
specifying a font to be contained in a single string.  At the elisp- 
wielding-user-visible level this manifests in what you pass to and  
get back from x-list-fonts, as well as any font-setting functions,  
setting font as a frame parameter, etc...  I can't tell whether other  
platforms could use some other single-string-specifies-all format  
besides XLFD (not that this would be natural), or if other code in  
fontset.c and xfaces.c requires these names to be XLFD.  All I know  
is that in the Cocoa port, I'm having trouble getting the full font  
machinery working without putting all font info into string names.

In any case, both lisp code and user mailing list traffic for the Mac  
Carbon emacs contain numerous references to XLFD.  E.g.:

See for example:

http://search.gmane.org/?query=-apple- 
courier&email=&group=gmane.emacs.macintosh.osx&sort=relevance&DEFAULTOP= 
and&xP=apple-.&xFILTERS=Gemacs.macintosh.osx---A

http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/macemacsjp/carbon_font/ 
carbon-font.el

Anyway, I will drop this now due to an intense lack of interest from  
anyone else on this list ;), and come back when 22 is out and/or I  
have some code to show..


>   I think perhaps some
> command line option uses it.  We could replace that option with
> one that uses a different syntax, but what syntax should it be?
>
>     .default {
>      font-family: courier;
>      font-size: 13pt;
>      font-weight: bold;
>      font-style: italic;
>     }
>
> I don't think that is useful in an Emacs context.
> It is no easier to type, no more concise, than a list
> of face attributes in Lisp syntax.  Where would we possibly
> want to use it?

My point was that the XLFD is so concise and cryptic as to be a real  
hassle no matter what it's used for.  I really don't see any typing  
savings for something like

emacs -font '-*-courier-*-*-*--12-*-*-*-*-*-*-*'

or even

emacs -font '-*-courier-*-*-*--12-*'

vs.

emacs -font '{ font-family: courier font-size: 12pt }'

If you're not cutting/pasting the font, counting out how many  
asterisks you need and deciding where to put the '12' are far more  
time-consuming than punching out the few extra characters for CSS- 
style.  And if you are cutting/pasting, there's no difference,  
besides readability.

But given that things are as they are, I see no reason to add a new  
syntax either if it's not needed for lisp customization -- using XLFD  
on the command line seems fine since users on the non-X systems  
rarely use command-line invocation anyhow.


[-- Attachment #1.2: Type: text/html, Size: 4797 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  parent reply	other threads:[~2005-10-18 18:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-21  8:21 macos.texi updated YAMAMOTO Mitsuharu
2005-09-22  6:12 ` Steven Tamm
2005-09-22 10:20   ` YAMAMOTO Mitsuharu
2005-09-22 15:22   ` Stefan Monnier
2005-09-25 14:20     ` Adrian Robert
2005-09-28  8:30       ` YAMAMOTO Mitsuharu
2005-10-07 14:53         ` Adrian Robert
2005-10-09 18:16           ` Richard M. Stallman
2005-10-10 19:53             ` Adrian Robert
2005-10-11 14:44               ` Richard M. Stallman
2005-10-11 17:22                 ` David Reitter
2005-10-12 16:24                   ` Richard M. Stallman
2005-10-18 18:29                 ` Adrian Robert [this message]
2005-10-20  4:55                   ` Richard M. Stallman
2005-10-24 12:24                     ` Adrian Robert
2005-10-25 15:59                       ` Richard M. Stallman
2005-10-11  1:31           ` Stefan Monnier
2005-10-11  8:01           ` YAMAMOTO Mitsuharu
2005-10-11 17:10             ` Adrian Robert
2005-09-22 20:42 ` Jesper Harder
2005-09-23  4:46   ` YAMAMOTO Mitsuharu
2005-09-23  7:00     ` Cheng Gao
2005-09-25 19:45     ` Jesper Harder
2005-09-23 18:12 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A05DAAD5-672B-4F68-A41C-E147F821FB7F@cogsci.ucsd.edu \
    --to=arobert@cogsci.ucsd.edu \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.