unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Why does texinfo-make-menu append trailing whitespace?
@ 2003-05-12 12:56 Alan Mackenzie
  2003-05-14  2:30 ` Eli Zaretskii
       [not found] ` <mailman.6151.1052879746.21513.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Alan Mackenzie @ 2003-05-12 12:56 UTC (permalink / raw)


Emacs 21.1.

I'm updating a file.texi using Texinfo-mode.  When I do C-c C-u <ret> to
update a menu, the resulting menu has trailing spaces after each item.
There wasn't any such trailing spaces beforehand.

I don't like this.  Is it a bug, or is there some reason for this
trailing space?

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

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

* Re: Why does texinfo-make-menu append trailing whitespace?
  2003-05-12 12:56 Why does texinfo-make-menu append trailing whitespace? Alan Mackenzie
@ 2003-05-14  2:30 ` Eli Zaretskii
       [not found] ` <mailman.6151.1052879746.21513.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2003-05-14  2:30 UTC (permalink / raw)


> From: Alan Mackenzie<none@example.invalid>
> Newsgroups: gnu.emacs.help
> Date: Mon, 12 May 2003 12:56:54 +0000
> 
> I'm updating a file.texi using Texinfo-mode.  When I do C-c C-u <ret> to
> update a menu, the resulting menu has trailing spaces after each item.
> There wasn't any such trailing spaces beforehand.

Define ``beforehand''.  Are you saying that a previous version of
Emacs (which one?) didn't insert those spaces?

> I don't like this.  Is it a bug, or is there some reason for this
> trailing space?

It's a kind of a feature: Emacs assumes that you will wish to add
some text to each menu item, and inserts those spaces to align the
beginning of that text.

You can use delete-trailing-whitespace to remove easily it if you
don't want it.

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

* Re: Why does texinfo-make-menu append trailing whitespace?
       [not found] ` <mailman.6151.1052879746.21513.help-gnu-emacs@gnu.org>
@ 2003-05-14  8:02   ` Alan Mackenzie
  2003-05-15  8:38     ` Kai Großjohann
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2003-05-14  8:02 UTC (permalink / raw)


Eli Zaretskii <eliz@elta.co.il> wrote on Wed, 14 May 2003 05:30:38 +0300:
>> From: Alan Mackenzie<none@example.invalid>
>> Newsgroups: gnu.emacs.help
>> Date: Mon, 12 May 2003 12:56:54 +0000

>> I'm updating a file.texi using Texinfo-mode.  When I do C-c C-u <ret> to
>> update a menu, the resulting menu has trailing spaces after each item.
>> There wasn't any such trailing spaces beforehand.

> Define ``beforehand''.  Are you saying that a previous version of
> Emacs (which one?) didn't insert those spaces?

Sorry.  I meant the menu didn't have the trailing spaces before I did C-c
C-u <ret>.

>> I don't like this.  Is it a bug, or is there some reason for this
>> trailing space?

> It's a kind of a feature: Emacs assumes that you will wish to add
> some text to each menu item, and inserts those spaces to align the
> beginning of that text.

Ah!  Right!  I understand now.

Perhaps Texinfo mode should put the spaces in when it appends the text,
rather than when it creates the menu item.

> You can use delete-trailing-whitespace to remove easily it if you
> don't want it.

Indeed.  That is what I will do.

Many thanks, Eli.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

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

* Re: Why does texinfo-make-menu append trailing whitespace?
  2003-05-14  8:02   ` Alan Mackenzie
@ 2003-05-15  8:38     ` Kai Großjohann
  0 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2003-05-15  8:38 UTC (permalink / raw)


Alan Mackenzie<none@example.invalid> writes:

> Perhaps Texinfo mode should put the spaces in when it appends the text,
> rather than when it creates the menu item.

It can't.  It does not append text.  It just puts the spaces there so
that YOU can append text.

-- 
This line is not blank.

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

end of thread, other threads:[~2003-05-15  8:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-12 12:56 Why does texinfo-make-menu append trailing whitespace? Alan Mackenzie
2003-05-14  2:30 ` Eli Zaretskii
     [not found] ` <mailman.6151.1052879746.21513.help-gnu-emacs@gnu.org>
2003-05-14  8:02   ` Alan Mackenzie
2003-05-15  8:38     ` Kai Großjohann

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).