Re: make `occur' use word at point as default

2005-09-06 Thread Juri Linkov
> It should be the user's acceptance (via RET) of an input candidate that puts > an input onto the history list (for use by M-p) - it shouldn't be the mere > act of Emacs making an input candidate available or the user's looking at a > candidate via M-n. (I think that's already the case - just want

Re: make `occur' use word at point as default

2005-09-06 Thread Juri Linkov
> But I think it would be more convenient to [use M-n to] > add [additional default values] to the list for [M-p] to access. > > We seem to be miscommunicating; your additions turn this into > something very different from what I was talking about. Drew's response to your message

RE: make `occur' use word at point as default

2005-09-06 Thread Drew Adams
But I think it would be more convenient to [use M-n to] add [additional default values] to the list for [M-p] to access. We seem to be miscommunicating; your additions turn this into something very different from what I was talking about. Sorry; I tried. Could you

Re: make `occur' use word at point as default

2005-09-06 Thread Richard M. Stallman
But I think it would be more convenient to [use M-n to] add [additional default values] to the list for [M-p] to access. We seem to be miscommunicating; your additions turn this into something very different from what I was talking about. ___

Re: Paragraphs (and sentences) in Emacs cannot span pages.

2005-09-06 Thread Richard M. Stallman
In printed material, sentences and paragraphs can (and frequently do) start on one page and finish on the next. That's because the pages are broken automatically. That's not how people normally use ^L in files they edit. Could you tell me more about the files you are editing and why they

Re: key-binding values

2005-09-06 Thread Richard M. Stallman
(key-description [67108896]) => "C-SPC" (key-description "\C- ") => "C-@" > Emacs users learn quickly to read "^@" as "control @", and they also > learn that this is equivalent to "control SPC", but [67108896] is hard > to read and digest. Keys are just integers in Emacs.

Re: Options menu is broken on CVS

2005-09-06 Thread Eli Zaretskii
> From: Nick Roberts <[EMAIL PROTECTED]> > Date: Wed, 7 Sep 2005 11:01:27 +1200 > Cc: emacs-devel@gnu.org > > It seems to be due to this change: > > 2004-03-13 Eli Zaretskii <[EMAIL PROTECTED]> > > * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined. > > I guess it hasn't

Re: Emacs CVS Crash

2005-09-06 Thread Vinicius Jose Latorre
It happens in gcc 3.2.2 but not in 3.3.5 (I've just test it), so the bug is already fixed in gcc. Indeed, it's a compiler bug, but this bug affects Emacs building. Nick Roberts wrote: That looks like gcc thats crashed not Emacs. If its a bug with gcc, should you be reporting it to them? N

RE: where-is-internal question

2005-09-06 Thread Drew Adams
In previous Emacs versions, I could do this, to bind stuff that is bound to self-insert-command in the global map: (dolist (key (where-is-internal 'self-insert-command global-map)) (define-key my-map key 'my-command)) Now, however, it looks like I need to do something like

Shall we use etc/images more?

2005-09-06 Thread Bill Wohler
In MH-E, I think I'd like to reference images in etc/images/mail and, say, etc/images/common, instead of lisp/mail and lisp/toolbar. I only see gnus and smilies directories in there now. Is the intent to someday move the images to etc/images? I recall Miles saying he thought that Gnus was a good e

where-is-internal question

2005-09-06 Thread Drew Adams
I haven't looked into this in detail - forgive my incomplete understanding. I'm looking for help on where-is-internal - as regards command remapping (I guess). In previous Emacs versions, I could do this, to bind stuff that is bound to self-insert-command in the global map: (dolist (key (where-i

Re: Buffer menu fix

2005-09-06 Thread Chong Yidong
> Not if you use the right approach. > > Try this patch (not fully tested, but shows the principle): It works. Very clever! ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Emacs CVS Crash

2005-09-06 Thread Kim F. Storm
Vinicius Jose Latorre <[EMAIL PROTECTED]> writes: > Hi Folks, > > > I've just updated Emacs sources from CVS today. > > Then: > >$ make maintainer-clean >$ ./configure --prefix=/home/download/emacs >$ make bootstrap >[...skipped for brevity...] > gcc -c -D_BSD_SOURCE -Demacs -DHA

Emacs CVS Crash

2005-09-06 Thread Nick Roberts
That looks like gcc thats crashed not Emacs. If its a bug with gcc, should you be reporting it to them? Nick Vinicius Jose Latorre writes: > Hi Folks, > > > I've just updated Emacs sources from CVS today. > > Then: > >$ make maintainer-clean >$ ./configure --prefix=/home/d

Re: Options menu is broken on CVS

2005-09-06 Thread Nick Roberts

Re: Buffer menu fix

2005-09-06 Thread Kim F. Storm
Chong Yidong <[EMAIL PROTECTED]> writes: > Eli Zaretskii <[EMAIL PROTECTED]> writes: > >>> The only way I can think of to get around this is to bind to a single >>> function that tries to re-construct the value of `column' based on >>> where the mouse was clicked. But that seems like a strange th

Re: key-binding values

2005-09-06 Thread Edward O'Connor
> IMHO there is no real preference. The string notation can only > represent a limited set of keys, but is easier to read when it works. This is why I always use the (kbd "...") notation: represents all keys, and is more readable than the other options. Ted -- Edward O'Connor [EMAIL PROTECTED]

Emacs CVS Crash

2005-09-06 Thread Vinicius Jose Latorre
Hi Folks, I've just updated Emacs sources from CVS today. Then: $ make maintainer-clean $ ./configure --prefix=/home/download/emacs $ make bootstrap [...skipped for brevity...] gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/home/vinicius/work/emacs/src -D_BSD_SOURC

Re: key-binding values

2005-09-06 Thread Andreas Schwab
"Drew Adams" <[EMAIL PROTECTED]> writes: > > Also, correct me if I'm wrong, but my understanding is that > the form [?\C- ] > > is generally preferred over the form "\C- ", for a key binding. > > These two key sequences represent quite different bindings. > You can't get >

Re: Buffer menu fix

2005-09-06 Thread Kevin Rodgers
Tomas Zerolo wrote: > Can't you attach a doc-string to an anonymous function, like so? > > `lambda (e) > ,(concat "Sort buffer by " column) > ... Obviously you can include a doc string in a lambda form. The real question is, will Emacs do the right thing with it? It looks pretty

Re: Options menu is broken on CVS

2005-09-06 Thread İsmail Dönmez
Salı 06 Eylül 2005 23:45 tarihinde, Nick Roberts şunları yazmıştı: > M-x report-emacs-bug Here it goes : This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translator

Options menu is broken on CVS

2005-09-06 Thread Nick Roberts
> Options menu no longer works with emacs from CVS. To reproduce open emacs > press F10->O and you get : > > Symbol's value as variable is void: menu-updating-frame > > Looks like recent changes to lisp/menu-bar.el borked this though I am not > 100% certain with that. So wondering if anyo

Re: Patch: Follow convention for reading with the minibuffer.

2005-09-06 Thread Stefan Monnier
>* When you mention a default value in a minibuffer prompt, put it > and the word `default' inside parentheses. It should look like > this: > Enter the answer: (default 42) Yuck! I *much* prefer Enter the answer (default 42): which is what is used by pretty much eve

Re: Buffer menu fix

2005-09-06 Thread Chong Yidong
Eli Zaretskii <[EMAIL PROTECTED]> writes: >> When you bind a function to a key, you can't specify any additional >> arguments to pass to that function. So you have to define one >> function for each of the possible values of `column' in the code. >> >> The only way I can think of to get around t

Re: Paragraphs (and sentences) in Emacs cannot span pages.

2005-09-06 Thread Alan Mackenzie
Hi, Stefan. On Tue, 6 Sep 2005, Stefan Monnier wrote: >>This sentence goes over from one page >>^L >>to the next. >In my experience, ^L is generally used in Emacs for logical pages, not >for physical pages, so a ^L in the middle of a paragraph doesn't make >much sense. In this case,

Re: Buffer menu fix

2005-09-06 Thread Chong Yidong
> > Why? It is much more convenient to allow users to click on a link. If > > the user wants to move the header line (which is not something that > > people do frequently, anyway), all she has to do is to move the mouse > > two milimeters to the left, outside the button. This is what people >

Re: Buffer menu fix

2005-09-06 Thread Eli Zaretskii
> From: "Richard M. Stallman" <[EMAIL PROTECTED]> > Date: Tue, 06 Sep 2005 07:22:59 -0400 > Cc: [EMAIL PROTECTED], emacs-devel@gnu.org > > I don't think it is worth spending the time to have a long discussion > about whether to use a macro to define these commands, whether they > should be lambdas

Re: Options menu is broken on CVS

2005-09-06 Thread İsmail Dönmez
Salı 06 Eylül 2005 20:15 tarihinde şunları yazmıştınız: > You might try a bootstrap build. I had problems like this when I attempted > to build otherwise. A clean CVS checkout compiled with make bootstrap is showing the same problem. Regards, ismail _

Patch: Follow convention for reading with the minibuffer.

2005-09-06 Thread Emilio Lopes
Recently RMS documented in "(elisp)Programming Tips" a convention for reading with the minibuffer: * When you mention a default value in a minibuffer prompt, put it and the word `default' inside parentheses. It should look like this: Enter the answer: (default 42) Not all

Re: Calendar, diary, and diary-mode

2005-09-06 Thread Richard M. Stallman
There are at least two functions that do basically (find-file-noselect (diary-check-diary-file) t). It might be a good idea to refactor this, creating a function that returns the buffer for the diary file, setting major-mode, etc. when opening. That might not be a bad change. But

RE: key-binding values

2005-09-06 Thread Drew Adams
> Is this as good as can be expected - is there no way to get something more > readable for [?\C-\ ]? (key-description [67108896]) => "C-SPC" (key-description "\C- ") => "C-@" Yes, that's what key-description is for. My question was, "is this as good as can be expected from C-

Re: Paragraphs (and sentences) in Emacs cannot span pages.

2005-09-06 Thread Stefan Monnier
>This sentence goes over from one page >^L >to the next. In my experience, ^L is generally used in Emacs for logical pages, not for physical pages, so a ^L in the middle of a paragraph doesn't make much sense. I guess if you see such a ^L it's inside something like an RFC, where the t

Options menu is broken on CVS

2005-09-06 Thread İsmail Dönmez
Hi all, Options menu no longer works with emacs from CVS. To reproduce open emacs press F10->O and you get : Symbol's value as variable is void: menu-updating-frame Looks like recent changes to lisp/menu-bar.el borked this though I am not 100% certain with that. So wondering if anyone can repr

Re: key-binding values

2005-09-06 Thread Andreas Schwab
"Drew Adams" <[EMAIL PROTECTED]> writes: > Consider these two definitions: > > (defcustom my-key [?\C-\ ] "My key sequence.") > (defcustom my-key "\C- " "My key sequence.") > > `C-h v' then gives these values: [67108896] and "^@". > > Is this as good as can be expected - is there no way to get

key-binding values

2005-09-06 Thread Drew Adams
Consider these two definitions: (defcustom my-key [?\C-\ ] "My key sequence.") (defcustom my-key "\C- " "My key sequence.") `C-h v' then gives these values: [67108896] and "^@". Is this as good as can be expected - is there no way to get something more readable for [?\C-\ ]? Emacs users lear

Paragraphs (and sentences) in Emacs cannot span pages.

2005-09-06 Thread Alan Mackenzie
Hi, Emacs! In printed material, sentences and paragraphs can (and frequently do) start on one page and finish on the next. In Emacs, in Fundamental mode and even in Text mode, the default values of paragraph-s\(tart\|eparate\) include a ^L, thus chopping paragraphs (and, indirectly, sentences) in

RE: make `occur' use word at point as default

2005-09-06 Thread Drew Adams
NEXT could conceivably be used to access another default. It's a good idea to reserve [next] for a complementary use with [prior] - that's a natural pair, and such pairs are relatively scarce. What's more, their names are perfect for forward-backward operations that do what they say. FWIW

Re: Calendar, diary, and diary-mode

2005-09-06 Thread Stefan Monnier
Stefan> How is diary-mode used? It's defined and seems to Stefan> work if I call it manually, but it's not directly used Stefan> anywhere. WAIM? > There are at least two functions that do basically > (find-file-noselect (diary-check-diary-file) t). It might be a > good idea to refactor this, cr

Re: Really Works Good Pharamcy

2005-09-06 Thread Philokrates Gershman
  MeAmLeCeViUlCiVaXaPr ribivileagtrallinaop diaentrabrexraamisumxecia  $3 $1 $3 .33.21.75   http://www.aftepuchasu.com ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Buffer menu fix

2005-09-06 Thread Richard M. Stallman
I don't think it is worth spending the time to have a long discussion about whether to use a macro to define these commands, whether they should be lambdas or have names, etc. Does the current version of the patch actually work, or is there a bug in it? _

Re: Buffer menu fix

2005-09-06 Thread Tomas Zerolo
Can't you attach a doc-string to an anonymous function, like so? `lambda (e) ,(concat "Sort buffer by " column) ... (apologies if I am babbling) regards -- tomás signature.asc Description: Digital signature ___ Emacs-devel mailing l

narrow-to-page: when page-delimiter spans lines, exclude if from narrowed bit.

2005-09-06 Thread Alan Mackenzie
Hi, Emacs! Normally in narrow-to-page, when page-delimiter is something nice and simple like "^^L", the delimiter at the end of the page is excluded from the region narrowed to. A change made in version 1.8 was intended to handle multi-line delimiters, but this change wasn't completed. Currently

Re: Buffer menu fix

2005-09-06 Thread Thien-Thi Nguyen
Eli Zaretskii <[EMAIL PROTECTED]> writes: > There must be some kind of misunderstanding here. I understand that > you need to know where the mouse was clicked, but that information is > stored in the mouse event that invokes the function, so if you use > `(interactive "e")', you will have access

Re: Problem with chinese gbk fonts on w32

2005-09-06 Thread Sun Yijiang
I think I did not describe the problem properly. The problem is: 1) Only on W32 platform. 2) Has nothing to do with GBK. The problem arises together with create-fontset-from-fontset-spec, no matter I use GBK or GB2312. The patch works indeed. In fact, "font->tm.tmMaxCharWidth" is double of "font->

Re: Problem with chinese gbk fonts on w32

2005-09-06 Thread Jason Rumney
Sun Yijiang wrote: I think I've found the problem, here is the patch of w32fns.c (against revision 1.256). I don't know the detail, but this patch works. --8<-- --- w32fns.c2005-08-08 09:45:47.0 +0800 +++ w32fn

Re: Calendar, diary, and diary-mode

2005-09-06 Thread Karl Chen
> On 2005-09-05 12:03 PDT, Stefan Monnier writes: Stefan> How is diary-mode used? It's defined and seems to Stefan> work if I call it manually, but it's not directly used Stefan> anywhere. WAIM? There are at least two functions that do basically (find-file-noselect (diary-check-

Re: recentf.el - digit shortcuts

2005-09-06 Thread Karl Chen
> On 2005-09-05 04:27 PDT, David Ponce writes: David> Hi, Here is another patch (sorry) that isolates files David> with shortcuts in front of the dialog list, instead of David> mixing them up into sub-menus. This way it is very David> easy to locate files with shortcuts when

Re: Problem with chinese gbk fonts on w32

2005-09-06 Thread Sun Yijiang
I think I've found the problem, here is the patch of w32fns.c (against revision 1.256). I don't know the detail, but this patch works. --8<-- --- w32fns.c    2005-08-08 09:45:47.0 +0800 +++ w32fns-fix.c    2005-09-06 1