unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Jason Rumney" <jasonr@gnu.org>
Cc: "Dan Nicolaescu" <dann@ics.uci.edu>,
	tomas@tuxteam.de,
	"Lennart Borgman (gmail)" <lennart.borgman@gmail.com>,
	"Jan Djärv" <jan.h.d@swipnet.se>,
	emacs-devel@gnu.org
Subject: RE: Simple Tasks, new TODO category
Date: Fri, 25 Jan 2008 09:29:48 -0800	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACCEOJCGAA.drew.adams@oracle.com> (raw)
In-Reply-To: <479A140D.7060005@gnu.org>

> >>> A non-printable seems very obscure, though. I'd think using a (seldom)
> >>> printable (with a way to escape it, of course) might be more friendly.
> >>> Why not use underscore, as GTK does (and translate
> >>> appropriately to the target platform)?
> >>>
> >> XEmacs uses %_, which is even less likely to be used in a menu item
> >> name, and has the benefit of not appearing in any key binding so we
> >> wouldn't have to do any escaping of key bindings that are
> >> automatically added to the menu.
> >
> > Sorry to chime in once more, but I again get the impression
> > that you are speaking about giving a special interpretation to a
> > displayable character that might appear in a menu item, and that
> > you are trying to find a character or string that is "less likely
> > to be used in a menu item name".
>
> GUI toolkits do this already. If the character(s) used are rare enough
> that it is unlikely to break existing code, and the special purpose is
> well documented, I don't see where the harm is. Fixing the problem for
> any cases that do break will be simple, and using the characters already
> used by XEmacs for 5 years will make it likely that any such problems
> have already been dealt with.

Well, I don't really want to argue about it. I'll just go on record as
saying that it is a (classic) mistake. We should at least provide an escape
syntax for such a "special" character.

IIRC, Lennart long ago treated `&' as such a special char for just this
purpose in some of his code. I had a menu item that used `&' to abbreviate
`and', and bingo - busted. I even use a pilcro (the "rare" paragraph symbol)
to abbreviate "Paragraph" in some menus. Someone might even have a menu to
let you insert special characters that are difficult to type in some
contexts. It's a mistake to assume that menu items will not include some
"rare" character.

Don't forget too that there are menu items that are constructed dynamically.
They include Imenu items, buffer names, and frame names. And someone might
use :keys for a key description that includes a "special" char. Do you
really think that we won't encounter "special" chars or strings in someone's
variable name or buffer name or key description or (heaven forbid)
special-character menu?

This sounds like a bad idea to me, and an unnecessary one AFAICT. But do as
you like.

(FWIW, I haven't seen the reason for going this route instead of using a
non-printable character, but I haven't followed the thread closely.)

  reply	other threads:[~2008-01-25 17:29 UTC|newest]

Thread overview: 110+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 20:20 Simple Tasks, new TODO category Dan Nicolaescu
2008-01-19 20:36 ` Yoni Rabkin
2008-01-19 20:51   ` Dan Nicolaescu
2008-01-21  9:07     ` Richard Stallman
2008-01-20  2:51 ` dhruva
2008-01-20 17:10   ` Dan Nicolaescu
2008-01-20 17:45     ` Lennart Borgman (gmail)
2008-01-20 17:55       ` w32 issues (was: Re: Simple Tasks, new TODO category) Dan Nicolaescu
2008-01-20 18:05         ` w32 issues Lennart Borgman (gmail)
2008-01-20 18:20           ` Dan Nicolaescu
2008-01-20 18:30             ` Lennart Borgman (gmail)
2008-01-20 19:45               ` Eli Zaretskii
2008-01-20 20:04                 ` Lennart Borgman (gmail)
2008-01-20 20:30                   ` Eli Zaretskii
2008-01-20 20:45                     ` Lennart Borgman (gmail)
2008-01-21 15:08                       ` Benjamin Riefenstahl
2008-01-21 16:13                         ` Lennart Borgman (gmail)
2008-01-21 16:32                           ` Stefan Monnier
2008-01-21 16:45                             ` Lennart Borgman (gmail)
2008-01-21 17:47                               ` Stefan Monnier
2008-01-20 22:07                 ` Jason Rumney
2008-01-20 22:38                   ` Lennart Borgman (gmail)
2008-01-20 23:26                     ` Jason Rumney
2008-01-20 23:31                       ` Juanma Barranquero
2008-01-21  0:20                         ` Jason Rumney
2008-01-21  0:50                           ` Juanma Barranquero
2008-01-20 23:41                       ` Lennart Borgman (gmail)
2008-01-21  0:12                         ` Jason Rumney
2008-01-21  0:16                           ` Lennart Borgman (gmail)
2008-01-21  0:40                           ` Lennart Borgman (gmail)
2008-01-21  0:52                             ` Jason Rumney
2008-01-21  1:36                               ` Lennart Borgman (gmail)
2008-01-21  1:46                                 ` Jason Rumney
2008-01-21  2:05                                   ` Lennart Borgman (gmail)
2008-01-21  2:12                                     ` Jason Rumney
2008-01-21  2:31                                       ` Lennart Borgman (gmail)
2008-01-21  4:12                                       ` Eli Zaretskii
2008-01-21  1:49                                 ` Jason Rumney
2008-01-21  2:56                             ` Vinicius Jose Latorre
2008-01-21  2:03                               ` Lennart Borgman (gmail)
2008-01-21  4:31                                 ` Vinicius Jose Latorre
2008-01-21  4:12                                   ` Eli Zaretskii
2008-01-21 13:07                                     ` Vinicius Jose Latorre
2008-01-21 19:54                                       ` Eli Zaretskii
2008-01-21 21:11                                         ` Vinicius Jose Latorre
2008-01-21 21:17                                           ` Lennart Borgman (gmail)
2008-01-21 23:58                                             ` Vinicius Jose Latorre
2008-01-21 23:09                                               ` Lennart Borgman (gmail)
2008-01-22  0:33                                                 ` Vinicius Jose Latorre
2008-01-21 23:55                                                   ` Lennart Borgman (gmail)
2008-01-22  1:26                                                     ` Vinicius Jose Latorre
2008-01-22  1:03                                                       ` Lennart Borgman (gmail)
2008-01-22 10:12                                                         ` Jason Rumney
2008-01-22 14:08                                                           ` Lennart Borgman (gmail)
2008-01-22  0:44                                                   ` Vinicius Jose Latorre
2008-01-21 23:54                                                     ` Lennart Borgman (gmail)
2008-01-22  4:18                                                     ` Eli Zaretskii
2008-01-22 16:33                                                       ` Vinicius Jose Latorre
2008-01-22 20:02                                                         ` Eli Zaretskii
2008-01-22 21:00                                                           ` Lennart Borgman (gmail)
2008-01-22 21:43                                                           ` Vinicius Jose Latorre
2008-01-22  9:33                                                 ` Jason Rumney
2008-01-21 21:55                                           ` Eli Zaretskii
2008-01-21  4:46                                   ` dhruva
2008-01-21 20:30                           ` Richard Stallman
2008-01-21 20:55                             ` Lennart Borgman (gmail)
2008-01-21 20:55                             ` Stefan Monnier
2008-01-22 22:29                               ` Richard Stallman
2008-01-22  9:09                             ` Jason Rumney
2008-01-21  4:25                   ` Eli Zaretskii
2008-01-23  1:39                     ` Jason Rumney
2008-01-23  2:29                       ` Lennart Borgman (gmail)
2008-01-23  3:13                         ` dhruva
2008-01-23 10:20                         ` Jason Rumney
2008-01-23 15:27                           ` dhruva
2008-01-20 17:58       ` Simple Tasks, new TODO category dhruva
2008-01-20 18:13         ` Lennart Borgman (gmail)
2008-01-23 22:53       ` Jason Rumney
2008-01-23 23:19         ` Lennart Borgman (gmail)
2008-01-23 23:59           ` Drew Adams
2008-01-24  0:09             ` Lennart Borgman (gmail)
2008-01-24  0:38               ` Drew Adams
2008-01-24  0:30             ` Jason Rumney
2008-01-24  0:41               ` Lennart Borgman (gmail)
2008-01-24  0:46                 ` Jason Rumney
2008-01-24  0:51                   ` Lennart Borgman (gmail)
2008-01-24  7:35                     ` Jan Djärv
2008-01-24 10:49                       ` tomas
2008-01-25 16:21                         ` Jason Rumney
2008-01-25 16:45                           ` Drew Adams
2008-01-25 16:53                             ` Jason Rumney
2008-01-25 17:29                               ` Drew Adams [this message]
2008-01-25 17:50                                 ` tomas
2008-01-25 18:22                                   ` Drew Adams
2008-01-25 17:52                                 ` Jason Rumney
2008-01-25 18:14                                   ` Drew Adams
2008-01-25 22:28                                     ` Jason Rumney
2008-01-25 23:39                                       ` Drew Adams
2008-01-25 18:16                                   ` Jan Djärv
2008-01-26 16:00                                 ` Richard Stallman
2008-01-25 19:52                             ` Stephen J. Turnbull
2008-01-26  1:11                               ` Lennart Borgman (gmail)
2008-01-26  8:39                                 ` Eli Zaretskii
2008-01-26  9:42                                   ` Stephen J. Turnbull
2008-01-26 14:25                                   ` Lennart Borgman (gmail)
2008-01-26  8:34                             ` Eli Zaretskii
2008-01-26 16:55                               ` Drew Adams
2008-01-25 17:32                           ` Drew Adams
2008-01-25 17:42                             ` Jason Rumney
2008-01-24  7:25           ` Jan Djärv

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=BNELLINCGFJLDJIKDGACCEOJCGAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=jasonr@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=tomas@tuxteam.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).