* Longlines mode in menu
@ 2008-06-05 5:42 Chong Yidong
2008-06-05 5:53 ` Miles Bader
` (3 more replies)
0 siblings, 4 replies; 48+ messages in thread
From: Chong Yidong @ 2008-06-05 5:42 UTC (permalink / raw)
To: emacs-devel
Someone just suggested to me that Longlines mode should have an entry in
the Options menu of the menu-bar. This seems reasonable to me: new
users are likely to come across situations where Longlines mode is
necessary, but not know of its existence. Windows notepad has had such
an item in its menu for a while.
Thoughts?
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-05 5:42 Longlines mode in menu Chong Yidong
@ 2008-06-05 5:53 ` Miles Bader
2008-06-05 12:50 ` Chong Yidong
2008-06-05 16:41 ` Paul R
` (2 subsequent siblings)
3 siblings, 1 reply; 48+ messages in thread
From: Miles Bader @ 2008-06-05 5:53 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> Someone just suggested to me that Longlines mode should have an entry in
> the Options menu of the menu-bar. This seems reasonable to me: new
> users are likely to come across situations where Longlines mode is
> necessary, but not know of its existence. Windows notepad has had such
> an item in its menu for a while.
Is longlines-mode more or less guaranteed to restore the buffer contents
properly when being disabled? [I vaguely recall problems with
longlines-mode occassionally trashing the buffer in the past, but a long
time ago.]
-Miles
--
Joy, n. An emotion variously excited, but in its highest degree arising from
the contemplation of grief in another.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-05 5:53 ` Miles Bader
@ 2008-06-05 12:50 ` Chong Yidong
0 siblings, 0 replies; 48+ messages in thread
From: Chong Yidong @ 2008-06-05 12:50 UTC (permalink / raw)
To: Miles Bader; +Cc: emacs-devel
Miles Bader <miles.bader@necel.com> writes:
> Chong Yidong <cyd@stupidchicken.com> writes:
>> Someone just suggested to me that Longlines mode should have an entry in
>> the Options menu of the menu-bar. This seems reasonable to me: new
>> users are likely to come across situations where Longlines mode is
>> necessary, but not know of its existence. Windows notepad has had such
>> an item in its menu for a while.
>
> Is longlines-mode more or less guaranteed to restore the buffer contents
> properly when being disabled? [I vaguely recall problems with
> longlines-mode occassionally trashing the buffer in the past, but a long
> time ago.]
I know of only one failure case (reported by you, IIRC): in text
containing no spaces like Japanese, extra spaces might be inserted in
some circumstances. Longlines does exactly the same thing here as
auto-fill-mode.
As far as I know, no one else has reported that problem. But I'll take
another look at it.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-05 5:42 Longlines mode in menu Chong Yidong
2008-06-05 5:53 ` Miles Bader
@ 2008-06-05 16:41 ` Paul R
2008-06-05 18:55 ` Chong Yidong
2008-06-06 21:27 ` Chong Yidong
2008-06-12 10:48 ` David Reitter
3 siblings, 1 reply; 48+ messages in thread
From: Paul R @ 2008-06-05 16:41 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> Someone just suggested to me that Longlines mode should have an entry in
> the Options menu of the menu-bar. This seems reasonable to me: new
> users are likely to come across situations where Longlines mode is
> necessary, but not know of its existence. Windows notepad has had such
> an item in its menu for a while.
>
> Thoughts?
>
It brakes tables done with M-x table-insert . That said, I don't think
this should prevent long-line from being added to the menu.
--
Paul
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-05 16:41 ` Paul R
@ 2008-06-05 18:55 ` Chong Yidong
0 siblings, 0 replies; 48+ messages in thread
From: Chong Yidong @ 2008-06-05 18:55 UTC (permalink / raw)
To: Paul R; +Cc: emacs-devel
Paul R <paul.r.ml@gmail.com> writes:
> Chong Yidong <cyd@stupidchicken.com> writes:
>
>> Someone just suggested to me that Longlines mode should have an entry in
>> the Options menu of the menu-bar. This seems reasonable to me: new
>> users are likely to come across situations where Longlines mode is
>> necessary, but not know of its existence. Windows notepad has had such
>> an item in its menu for a while.
>>
>> Thoughts?
>>
>
> It brakes tables done with M-x table-insert . That said, I don't think
> this should prevent long-line from being added to the menu.
This should be easy to fix. I'll take a look once I get some time.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-05 5:42 Longlines mode in menu Chong Yidong
2008-06-05 5:53 ` Miles Bader
2008-06-05 16:41 ` Paul R
@ 2008-06-06 21:27 ` Chong Yidong
2008-06-12 10:48 ` David Reitter
3 siblings, 0 replies; 48+ messages in thread
From: Chong Yidong @ 2008-06-06 21:27 UTC (permalink / raw)
To: emacs-devel
I've added a per-buffer Longlines mode toggle to the options menu. I've
also changed the wording of the menu entries to make them clearer.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-05 5:42 Longlines mode in menu Chong Yidong
` (2 preceding siblings ...)
2008-06-06 21:27 ` Chong Yidong
@ 2008-06-12 10:48 ` David Reitter
2008-06-12 11:00 ` Miles Bader
2008-06-12 15:05 ` Chong Yidong
3 siblings, 2 replies; 48+ messages in thread
From: David Reitter @ 2008-06-12 10:48 UTC (permalink / raw)
To: Chong Yidong; +Cc: Kim F. Storm, Emacs-Devel devel
On 5 Jun 2008, at 06:42, Chong Yidong wrote:
> Someone just suggested to me that Longlines mode should have an
> entry in
> the Options menu of the menu-bar. This seems reasonable to me: new
> users are likely to come across situations where Longlines mode is
> necessary, but not know of its existence. Windows notepad has had
> such
> an item in its menu for a while.
Are you aware that syntax hightlighting is broken with longlines mode?
Any (line-based) comments, e.g. in LaTeX, will make it fail.
When you comment out formulae in LaTeX and they get wrapped in middle,
parsing fails with consequences for the remainder of the buffer. E.g.,:
% \begin{quote}
% $P_e(N_i|C_j)$ is empirically defined as $F(N_i \&
C_j)/F(C_j)$,
% where $F(N_i \& C_j)$ is the number of times $i$ is needed
It seems that syntax highlighting does not know about soft and hard
line breaks.
Are there any news on the display-time word wrapping patch by Kim Storm?
Back then when he posted the first incarnation, things almost worked
as intended.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 10:48 ` David Reitter
@ 2008-06-12 11:00 ` Miles Bader
2008-07-11 21:21 ` Kim F. Storm
2008-06-12 15:05 ` Chong Yidong
1 sibling, 1 reply; 48+ messages in thread
From: Miles Bader @ 2008-06-12 11:00 UTC (permalink / raw)
To: David Reitter; +Cc: Chong Yidong, Emacs-Devel devel, Kim F. Storm
David Reitter <david.reitter@gmail.com> writes:
> Are there any news on the display-time word wrapping patch by Kim Storm?
> Back then when he posted the first incarnation, things almost worked as
> intended.
I don't recall having seen any message (on any subject) from Kim in
quite a while...
-Miles
--
We have met the enemy, and he is us. -- Pogo
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 10:48 ` David Reitter
2008-06-12 11:00 ` Miles Bader
@ 2008-06-12 15:05 ` Chong Yidong
2008-06-12 16:12 ` David Reitter
2008-06-12 19:39 ` Stefan Monnier
1 sibling, 2 replies; 48+ messages in thread
From: Chong Yidong @ 2008-06-12 15:05 UTC (permalink / raw)
To: David Reitter; +Cc: Kim F. Storm, Emacs-Devel devel
David Reitter <david.reitter@gmail.com> writes:
> Are you aware that syntax hightlighting is broken with longlines mode?
> Any (line-based) comments, e.g. in LaTeX, will make it fail.
>
> When you comment out formulae in LaTeX and they get wrapped in middle,
> parsing fails with consequences for the remainder of the
> buffer. E.g.,:
>
> % \begin{quote}
> % $P_e(N_i|C_j)$ is empirically defined as $F(N_i \&
> C_j)/F(C_j)$,
> % where $F(N_i \& C_j)$ is the number of times $i$ is needed
>
> It seems that syntax highlighting does not know about soft and hard
> line breaks.
>
> Are there any news on the display-time word wrapping patch by Kim
> Storm? Back then when he posted the first incarnation, things almost
> worked as intended.
The display-time work wrapping won't necessarily help. It would
interfere with commands that expect soft newlines to behave like
newlines (next-line, etc).
One way to fix this might be to selectively bind search-spaces-regexp
during font-lock, if longlines mode is on.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 15:05 ` Chong Yidong
@ 2008-06-12 16:12 ` David Reitter
2008-06-12 16:38 ` Chong Yidong
2008-06-12 19:38 ` Stefan Monnier
2008-06-12 19:39 ` Stefan Monnier
1 sibling, 2 replies; 48+ messages in thread
From: David Reitter @ 2008-06-12 16:12 UTC (permalink / raw)
To: Chong Yidong; +Cc: Kim F. Storm, Emacs-Devel devel
On 12 Jun 2008, at 16:05, Chong Yidong wrote:
>
> The display-time work wrapping won't necessarily help. It would
> interfere with commands that expect soft newlines to behave like
> newlines (next-line, etc).
Internally, they would move to the next paragraph, which is the next
line in the underlying file. That may well be the correct behavior.
This is not any different from `truncate-lines' being nil, with the
occasional line wrapped.
Things like C-n can be changed to actually move to the next line.
For Aquamacs I have written code that moves to the next (visible) line
and places the cursor as close (horizontally) as possible. This is
also relevant when using variable-width fonts. I'd be more than happy
to contribute that.
> One way to fix this might be to selectively bind search-spaces-regexp
> during font-lock, if longlines mode is on.
Well, sure. You can patch up things here and there to deal with
longlines-mode. Of course this would work for this specific bug.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 16:12 ` David Reitter
@ 2008-06-12 16:38 ` Chong Yidong
2008-06-12 17:14 ` Chong Yidong
2008-06-12 19:38 ` Stefan Monnier
1 sibling, 1 reply; 48+ messages in thread
From: Chong Yidong @ 2008-06-12 16:38 UTC (permalink / raw)
To: David Reitter; +Cc: Kim F. Storm, Emacs-Devel devel
David Reitter <david.reitter@gmail.com> writes:
> On 12 Jun 2008, at 16:05, Chong Yidong wrote:
>>
>> The display-time work wrapping won't necessarily help. It would
>> interfere with commands that expect soft newlines to behave like
>> newlines (next-line, etc).
>
> Internally, they would move to the next paragraph, which is the next
> line in the underlying file. That may well be the correct behavior.
> This is not any different from `truncate-lines' being nil, with the
> occasional line wrapped.
>
> Things like C-n can be changed to actually move to the next line.
> For Aquamacs I have written code that moves to the next (visible) line
> and places the cursor as close (horizontally) as possible. This is
> also relevant when using variable-width fonts. I'd be more than happy
> to contribute that.
In the long run, this approach is definitely the way to go. The main
concern is that rebinding the motion commands is a non-trivial change.
Unless it's unavoidable, I'd prefer not to revisit this issue during the
current release cycle. If it's possible to change font-lock to
understand soft newlines, that might be a better fix for the moment.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 16:38 ` Chong Yidong
@ 2008-06-12 17:14 ` Chong Yidong
2008-06-12 22:32 ` Chong Yidong
0 siblings, 1 reply; 48+ messages in thread
From: Chong Yidong @ 2008-06-12 17:14 UTC (permalink / raw)
To: David Reitter; +Cc: Emacs-Devel devel, Kim F. Storm
Chong Yidong <cyd@stupidchicken.com> writes:
>> Internally, they would move to the next paragraph, which is the next
>> line in the underlying file. That may well be the correct behavior.
>> This is not any different from `truncate-lines' being nil, with the
>> occasional line wrapped.
>>
>> Things like C-n can be changed to actually move to the next line.
>> For Aquamacs I have written code that moves to the next (visible) line
>> and places the cursor as close (horizontally) as possible. This is
>> also relevant when using variable-width fonts. I'd be more than happy
>> to contribute that.
>
> In the long run, this approach is definitely the way to go. The main
> concern is that rebinding the motion commands is a non-trivial change.
> Unless it's unavoidable, I'd prefer not to revisit this issue during the
> current release cycle. If it's possible to change font-lock to
> understand soft newlines, that might be a better fix for the moment.
However, it may be a good idea to incorporate Kim's patch now, *without*
rebinding any motion commands, and provide it as an alternative value
for `truncate-line'. This would be useful for editing files with
occasional long lines, e.g. code with long comments. Editing text that
consists mostly of long lines would be cumbersome, but no worse than
with the current continued/truncated lines system.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 16:12 ` David Reitter
2008-06-12 16:38 ` Chong Yidong
@ 2008-06-12 19:38 ` Stefan Monnier
2008-06-13 3:04 ` Kevin Rodgers
2008-06-18 6:48 ` David Reitter
1 sibling, 2 replies; 48+ messages in thread
From: Stefan Monnier @ 2008-06-12 19:38 UTC (permalink / raw)
To: David Reitter; +Cc: Chong Yidong, Emacs-Devel devel, Kim F. Storm
> Things like C-n can be changed to actually move to the next line.
> For Aquamacs I have written code that moves to the next (visible) line and
> places the cursor as close (horizontally) as possible. This is also
> relevant when using variable-width fonts. I'd be more than happy to
> contribute that.
I think this would be a good addition. In the longer run, we may even
use such as things as the default movement commands, but for a start, we
could put it into a minor-mode.
Stefan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 15:05 ` Chong Yidong
2008-06-12 16:12 ` David Reitter
@ 2008-06-12 19:39 ` Stefan Monnier
1 sibling, 0 replies; 48+ messages in thread
From: Stefan Monnier @ 2008-06-12 19:39 UTC (permalink / raw)
To: Chong Yidong; +Cc: David Reitter, Emacs-Devel devel, Kim F. Storm
> The display-time work wrapping won't necessarily help. It would
> interfere with commands that expect soft newlines to behave like
> newlines (next-line, etc).
That's a problem we have to solve anyway at some point.
> One way to fix this might be to selectively bind search-spaces-regexp
> during font-lock, if longlines mode is on.
It would probably not fix it, because I'd expect the bug to come from
parse-partial-sexp.
Stefan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 17:14 ` Chong Yidong
@ 2008-06-12 22:32 ` Chong Yidong
2008-06-13 6:45 ` David Reitter
0 siblings, 1 reply; 48+ messages in thread
From: Chong Yidong @ 2008-06-12 22:32 UTC (permalink / raw)
To: Emacs-Devel devel, Kim F. Storm
Does anyone know where Kim Storm's redisplay-based word wrap patch is?
I'm having trouble finding it on emacs-devel.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 19:38 ` Stefan Monnier
@ 2008-06-13 3:04 ` Kevin Rodgers
2008-06-13 3:13 ` Stefan Monnier
2008-06-18 6:48 ` David Reitter
1 sibling, 1 reply; 48+ messages in thread
From: Kevin Rodgers @ 2008-06-13 3:04 UTC (permalink / raw)
To: emacs-devel
Stefan Monnier wrote:
>> Things like C-n can be changed to actually move to the next line.
>> For Aquamacs I have written code that moves to the next (visible) line and
>> places the cursor as close (horizontally) as possible. This is also
>> relevant when using variable-width fonts. I'd be more than happy to
>> contribute that.
>
> I think this would be a good addition. In the longer run, we may even
> use such as things as the default movement commands, but for a start, we
> could put it into a minor-mode.
Hmmm, Longlines mode is a minor mode. :-)
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-13 3:04 ` Kevin Rodgers
@ 2008-06-13 3:13 ` Stefan Monnier
2008-06-13 7:36 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: Stefan Monnier @ 2008-06-13 3:13 UTC (permalink / raw)
To: Kevin Rodgers; +Cc: emacs-devel
>>> Things like C-n can be changed to actually move to the next line.
>>> For Aquamacs I have written code that moves to the next (visible) line and
>>> places the cursor as close (horizontally) as possible. This is also
>>> relevant when using variable-width fonts. I'd be more than happy to
>>> contribute that.
>>
>> I think this would be a good addition. In the longer run, we may even
>> use such as things as the default movement commands, but for a start, we
>> could put it into a minor-mode.
> Hmmm, Longlines mode is a minor mode. :-)
I have no idea why you think that's relevant.
I was thinking of something similar to screen-lines.el.
Stefan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 22:32 ` Chong Yidong
@ 2008-06-13 6:45 ` David Reitter
0 siblings, 0 replies; 48+ messages in thread
From: David Reitter @ 2008-06-13 6:45 UTC (permalink / raw)
To: Chong Yidong; +Cc: Kim F. Storm, Emacs-Devel devel
On 12 Jun 2008, at 23:32, Chong Yidong wrote:
> Does anyone know where Kim Storm's redisplay-based word wrap patch is?
> I'm having trouble finding it on emacs-devel.
http://article.gmane.org/gmane.emacs.devel/41107
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-13 3:13 ` Stefan Monnier
@ 2008-06-13 7:36 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-13 7:36 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Kevin Rodgers, emacs-devel
Stefan Monnier wrote:
>>>> Things like C-n can be changed to actually move to the next line.
>>>> For Aquamacs I have written code that moves to the next (visible) line and
>>>> places the cursor as close (horizontally) as possible. This is also
>>>> relevant when using variable-width fonts. I'd be more than happy to
>>>> contribute that.
>>> I think this would be a good addition. In the longer run, we may even
>>> use such as things as the default movement commands, but for a start, we
>>> could put it into a minor-mode.
>
>> Hmmm, Longlines mode is a minor mode. :-)
>
> I have no idea why you think that's relevant.
> I was thinking of something similar to screen-lines.el.
See http://www.emacswiki.org/cgi-bin/wiki/MoveByVisibleLineCommands for
an overview.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 19:38 ` Stefan Monnier
2008-06-13 3:04 ` Kevin Rodgers
@ 2008-06-18 6:48 ` David Reitter
2008-06-18 7:13 ` Lennart Borgman (gmail)
1 sibling, 1 reply; 48+ messages in thread
From: David Reitter @ 2008-06-18 6:48 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Chong Yidong, Emacs-Devel devel, Kim F. Storm
[-- Attachment #1: Type: text/plain, Size: 917 bytes --]
On 12 Jun 2008, at 20:38, Stefan Monnier wrote:
>> Things like C-n can be changed to actually move to the next line.
>> For Aquamacs I have written code that moves to the next (visible)
>> line and
>> places the cursor as close (horizontally) as possible. This is also
>> relevant when using variable-width fonts. I'd be more than happy to
>> contribute that.
>
> I think this would be a good addition. In the longer run, we may even
> use such as things as the default movement commands, but for a
> start, we
> could put it into a minor-mode.
I have posted code here:
http://article.gmane.org/gmane.emacs.devel/90861
... but did not get any feedback.
I'm not going to put in further work (i.e. packaging this as stand-
alone minor mode) without getting the general OK to do it this way,
especially given that there are probably alternative implementations
on the C level.
Thanks for your comments
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 6:48 ` David Reitter
@ 2008-06-18 7:13 ` Lennart Borgman (gmail)
2008-06-18 8:38 ` David Reitter
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-18 7:13 UTC (permalink / raw)
To: David Reitter
Cc: Chong Yidong, Kim F. Storm, Stefan Monnier, Emacs-Devel devel
David Reitter wrote:
> On 12 Jun 2008, at 20:38, Stefan Monnier wrote:
>
>>> Things like C-n can be changed to actually move to the next line.
>>> For Aquamacs I have written code that moves to the next (visible)
>>> line and
>>> places the cursor as close (horizontally) as possible. This is also
>>> relevant when using variable-width fonts. I'd be more than happy to
>>> contribute that.
>>
>> I think this would be a good addition. In the longer run, we may even
>> use such as things as the default movement commands, but for a start, we
>> could put it into a minor-mode.
>
> I have posted code here:
>
> http://article.gmane.org/gmane.emacs.devel/90861
>
> ... but did not get any feedback.
> I'm not going to put in further work (i.e. packaging this as stand-alone
> minor mode) without getting the general OK to do it this way, especially
> given that there are probably alternative implementations on the C level.
>
> Thanks for your comments
Does this take also of wrapped lines?
There is a couple of modes for that at
http://www.emacswiki.org/cgi-bin/wiki/MoveByVisibleLineCommands
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 7:13 ` Lennart Borgman (gmail)
@ 2008-06-18 8:38 ` David Reitter
2008-06-18 16:17 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: David Reitter @ 2008-06-18 8:38 UTC (permalink / raw)
To: Lennart Borgman (gmail)
Cc: Chong Yidong, Kim F. Storm, Stefan Monnier, Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
On 18 Jun 2008, at 08:13, Lennart Borgman (gmail) wrote:
>>
>> http://article.gmane.org/gmane.emacs.devel/90861
>
> Does this take also of wrapped lines?
yes, it does.
> There is a couple of modes for that at
>
> http://www.emacswiki.org/cgi-bin/wiki/MoveByVisibleLineCommands
.. which fail to deal with variable width fonts and/or hidden
portions of text (folding).
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 8:38 ` David Reitter
@ 2008-06-18 16:17 ` Lennart Borgman (gmail)
2008-06-18 16:55 ` David Reitter
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-18 16:17 UTC (permalink / raw)
To: David Reitter
Cc: Chong Yidong, Kim F. Storm, Stefan Monnier, Emacs-Devel devel
David Reitter wrote:
> On 18 Jun 2008, at 08:13, Lennart Borgman (gmail) wrote:
>>>
>>> http://article.gmane.org/gmane.emacs.devel/90861
>>
>> Does this take also of wrapped lines?
>
> yes, it does.
>
>> There is a couple of modes for that at
>>
>> http://www.emacswiki.org/cgi-bin/wiki/MoveByVisibleLineCommands
>
> .. which fail to deal with variable width fonts and/or hidden portions
> of text (folding).
Thanks. What key bindings do you suggest? Maybe this could be a minor mode?
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 16:17 ` Lennart Borgman (gmail)
@ 2008-06-18 16:55 ` David Reitter
2008-06-18 20:50 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: David Reitter @ 2008-06-18 16:55 UTC (permalink / raw)
To: Lennart Borgman
Cc: Chong Yidong, Kim F. Storm, Stefan Monnier, Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
On 18 Jun 2008, at 17:17, Lennart Borgman (gmail) wrote:
>
> Thanks. What key bindings do you suggest? Maybe this could be a
> minor mode?
I have remapped the arrow keys but left C-n and C-p alone (in Aquamacs).
To cover the TTY situation, one could simply remap everything bound to
next-line and previous-line to the new commands when the minor mode is
on.
I wouldn't like to introduce new and different bindings for these
functions.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 16:55 ` David Reitter
@ 2008-06-18 20:50 ` Lennart Borgman (gmail)
2008-06-18 20:59 ` David Reitter
` (2 more replies)
0 siblings, 3 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-18 20:50 UTC (permalink / raw)
To: David Reitter; +Cc: Emacs-Devel devel
David Reitter wrote:
> On 18 Jun 2008, at 17:17, Lennart Borgman (gmail) wrote:
>>
>> Thanks. What key bindings do you suggest? Maybe this could be a minor
>> mode?
>
>
> I have remapped the arrow keys but left C-n and C-p alone (in Aquamacs).
That might perhaps be a good choice (or maybe better an option?)
Could you show me exactly how and what you bind. I want to test and I
had some trouble with bindings like this
(define-key map [down] 'osxkeys-visual-line-down-in-buffers)
> To cover the TTY situation, one could simply remap everything bound to
> next-line and previous-line to the new commands when the minor mode is on.
>
> I wouldn't like to introduce new and different bindings for these functions.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 20:50 ` Lennart Borgman (gmail)
@ 2008-06-18 20:59 ` David Reitter
2008-06-18 21:17 ` Lennart Borgman (gmail)
2008-06-19 0:22 ` Miles Bader
2008-06-19 13:51 ` Stefan Monnier
2 siblings, 1 reply; 48+ messages in thread
From: David Reitter @ 2008-06-18 20:59 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
On 18 Jun 2008, at 21:50, Lennart Borgman (gmail) wrote:
> Could you show me exactly how and what you bind. I want to test and
> I had some trouble with bindings like this
>
> (define-key map [down] 'osxkeys-visual-line-down-in-buffers)
I'm binding this:
(define-key map '[(up)] 'visual-line-up)
(define-key map '[(down)] 'visual-line-down)
I'm actually binding this in my mode's "low priority keymap" so that
other minor modes can override.
I use the code below.
That said, it should work from the normal minor mode keymap as well.
- D
(defun aquamacs-install-low-priority-global-key-map (keymap &optional
target)
"Install keys from keymap keymap into the target (or global) map."
(let ((target (or target (current-global-map)))
(overwritten (make-sparse-keymap)))
(map-keymap
(lambda (key command)
(let ((old (lookup-key target `[,key])))
(if (keymapp command) ; key is a prefix key
(if (keymapp old)
;; recurse
(setq old (aquamacs-install-low-priority-global-key-map
command old)))
(define-key target `[,key] command))
;; also save "nil" entries for unassigned keys
(define-key overwritten `[,key] old)))
keymap)
overwritten))
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 20:59 ` David Reitter
@ 2008-06-18 21:17 ` Lennart Borgman (gmail)
2008-06-18 21:38 ` David Reitter
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-18 21:17 UTC (permalink / raw)
To: David Reitter; +Cc: Emacs-Devel devel
David Reitter wrote:
> On 18 Jun 2008, at 21:50, Lennart Borgman (gmail) wrote:
>> Could you show me exactly how and what you bind. I want to test and I
>> had some trouble with bindings like this
>>
>> (define-key map [down] 'osxkeys-visual-line-down-in-buffers)
>
>
> I'm binding this:
>
> (define-key map '[(up)] 'visual-line-up)
> (define-key map '[(down)] 'visual-line-down)
Thanks.
> I'm actually binding this in my mode's "low priority keymap" so that
> other minor modes can override.
> I use the code below.
>
> That said, it should work from the normal minor mode keymap as well.
>
> - D
>
>
> (defun aquamacs-install-low-priority-global-key-map (keymap &optional
> target)
> "Install keys from keymap keymap into the target (or global) map."
> (let ((target (or target (current-global-map)))
> (overwritten (make-sparse-keymap)))
> (map-keymap
> (lambda (key command)
> (let ((old (lookup-key target `[,key])))
> (if (keymapp command) ; key is a prefix key
> (if (keymapp old)
> ;; recurse
> (setq old (aquamacs-install-low-priority-global-key-map
> command old)))
> (define-key target `[,key] command))
> ;; also save "nil" entries for unassigned keys
> (define-key overwritten `[,key] old)))
> keymap)
> overwritten))
Couldn't you just use a minor mode and put it last in
minor-mode-map-alist? AFAICS new modes are entered first in that list by
default.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 21:17 ` Lennart Borgman (gmail)
@ 2008-06-18 21:38 ` David Reitter
2008-06-18 21:53 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: David Reitter @ 2008-06-18 21:38 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
On 18 Jun 2008, at 22:17, Lennart Borgman (gmail) wrote:
>
>
> Couldn't you just use a minor mode and put it last in minor-mode-map-
> alist? AFAICS new modes are entered first in that list by default.
Guess I could define two minor modes, but how do I correctly add
something to the list?
Or can I manipulate the list when the minor mode is activated?
- d
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 21:38 ` David Reitter
@ 2008-06-18 21:53 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-18 21:53 UTC (permalink / raw)
To: David Reitter; +Cc: Emacs-Devel devel
David Reitter wrote:
> On 18 Jun 2008, at 22:17, Lennart Borgman (gmail) wrote:
>>
>>
>> Couldn't you just use a minor mode and put it last in
>> minor-mode-map-alist? AFAICS new modes are entered first in that list
>> by default.
>
> Guess I could define two minor modes, but how do I correctly add
> something to the list?
> Or can I manipulate the list when the minor mode is activated?
The keymap is added to minor-mode-map-alist by add-minor-mode when the
minor mode is defined. So you can move the entry when you turn on the
minor mode.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 20:50 ` Lennart Borgman (gmail)
2008-06-18 20:59 ` David Reitter
@ 2008-06-19 0:22 ` Miles Bader
2008-06-19 7:21 ` Lennart Borgman
2008-06-19 13:51 ` Stefan Monnier
2 siblings, 1 reply; 48+ messages in thread
From: Miles Bader @ 2008-06-19 0:22 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: David Reitter, Emacs-Devel devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>> I have remapped the arrow keys but left C-n and C-p alone (in Aquamacs).
>
> That might perhaps be a good choice (or maybe better an option?)
Eh? Maybe (hopefully!) I misunderstand what's being said, but any
change that makes the arrow keys do the "right thing", but _not_ C-n/C-p
is broken, full stop.
-Miles
--
"Most attacks seem to take place at night, during a rainstorm, uphill,
where four map sheets join." -- Anon. British Officer in WW I
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-19 0:22 ` Miles Bader
@ 2008-06-19 7:21 ` Lennart Borgman
2008-06-19 7:39 ` Miles Bader
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman @ 2008-06-19 7:21 UTC (permalink / raw)
To: Miles Bader; +Cc: David Reitter, Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 629 bytes --]
On Thu, Jun 19, 2008 at 2:22 AM, Miles Bader <miles@gnu.org> wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> >> I have remapped the arrow keys but left C-n and C-p alone (in Aquamacs).
> >
> > That might perhaps be a good choice (or maybe better an option?)
>
> Eh? Maybe (hopefully!) I misunderstand what's being said, but any
> change that makes the arrow keys do the "right thing", but _not_ C-n/C-p
> is broken, full stop.
>
Both things are "right", it might be good to have both behaviors available.
I guess those using the arrow keys more expect the new behaviour.
Though I am not at all sure.
[-- Attachment #2: Type: text/html, Size: 1026 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-19 7:21 ` Lennart Borgman
@ 2008-06-19 7:39 ` Miles Bader
2008-06-19 7:58 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: Miles Bader @ 2008-06-19 7:39 UTC (permalink / raw)
To: Lennart Borgman; +Cc: David Reitter, Emacs-Devel devel
"Lennart Borgman" <lennart.borgman@gmail.com> writes:
>> Eh? Maybe (hopefully!) I misunderstand what's being said, but any
>> change that makes the arrow keys do the "right thing", but _not_ C-n/C-p
>> is broken, full stop.
>
> Both things are "right", it might be good to have both behaviors available.
> I guess those using the arrow keys more expect the new behaviour.
In general, C-n/C-p should do exactly the same thing as the arrow keys.
The context of this discussion AFAIK, is with regard to Kim's
display-time word-wrapping patch. The typical situation where you would
want display-time word-wrapping is when you're editing text where
there's one newline per paragraph. When editing such text, "visual"
line-movement becomes more or less a necessity for normal editing, and
clearly we want C-n/C-p to be usable for normal editing.
-Miles
--
Mayonnaise, n. One of the sauces that serve the French in place of a state
religion.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-19 7:39 ` Miles Bader
@ 2008-06-19 7:58 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-19 7:58 UTC (permalink / raw)
To: Miles Bader; +Cc: David Reitter, Emacs-Devel devel
Miles Bader wrote:
> "Lennart Borgman" <lennart.borgman@gmail.com> writes:
>>> Eh? Maybe (hopefully!) I misunderstand what's being said, but any
>>> change that makes the arrow keys do the "right thing", but _not_ C-n/C-p
>>> is broken, full stop.
>> Both things are "right", it might be good to have both behaviors available.
>> I guess those using the arrow keys more expect the new behaviour.
>
> In general, C-n/C-p should do exactly the same thing as the arrow keys.
>
> The context of this discussion AFAIK, is with regard to Kim's
> display-time word-wrapping patch. The typical situation where you would
> want display-time word-wrapping is when you're editing text where
> there's one newline per paragraph. When editing such text, "visual"
> line-movement becomes more or less a necessity for normal editing, and
> clearly we want C-n/C-p to be usable for normal editing.
Ok, I agree, but there are also circumstances when you want to go to the
next buffer line.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-18 20:50 ` Lennart Borgman (gmail)
2008-06-18 20:59 ` David Reitter
2008-06-19 0:22 ` Miles Bader
@ 2008-06-19 13:51 ` Stefan Monnier
2008-06-20 18:50 ` Lennart Borgman (gmail)
2 siblings, 1 reply; 48+ messages in thread
From: Stefan Monnier @ 2008-06-19 13:51 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: David Reitter, Emacs-Devel devel
>>> Thanks. What key bindings do you suggest? Maybe this could be
>>> a minor mode?
It should be either a global minor mode which adds `remap' bindings to
the global map, or a buffer-local minor mode which adds the same remap
bindings but via a minor-mode map.
Stefan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-19 13:51 ` Stefan Monnier
@ 2008-06-20 18:50 ` Lennart Borgman (gmail)
2008-06-20 19:47 ` Stefan Monnier
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-20 18:50 UTC (permalink / raw)
To: Stefan Monnier; +Cc: David Reitter, Emacs-Devel devel
Stefan Monnier wrote:
>>>> Thanks. What key bindings do you suggest? Maybe this could be
>>>> a minor mode?
>
> It should be either a global minor mode which adds `remap' bindings to
> the global map, or a buffer-local minor mode which adds the same remap
> bindings but via a minor-mode map.
Maybe something like this? I think it is essential to be able to use the
original move and kill commands too.
(defalias 'original-next-line 'next-line "test")
(defalias 'original-previous-line 'previous-line "test")
(defalias 'original-kill-line 'kill-line "test")
(defvar visual-line-map
(let ((map (make-sparse-keymap)))
(define-key map [remap next-line] 'visual-line-down)
(define-key map [remap previous-line] 'visual-line-up)
(define-key map [(control down)] 'original-next-line)
(define-key map [(control up)] 'original-previous-line)
(define-key map [remap kill-line] 'kill-visual-line)
(define-key map [(control shift ?k)] 'original-kill-line)
(define-key map [remap kill-whole-line] 'kill-whole-visual-line)
map))
(define-minor-mode visual-line-mode
"Define key binding for visual line moves etc."
:lighter " vl"
:global t
:keymap visual-line-map
:group 'convenience)
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 18:50 ` Lennart Borgman (gmail)
@ 2008-06-20 19:47 ` Stefan Monnier
2008-06-20 19:53 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: Stefan Monnier @ 2008-06-20 19:47 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: David Reitter, Emacs-Devel devel
>>>>> Thanks. What key bindings do you suggest? Maybe this could be
>>>>> a minor mode?
>> It should be either a global minor mode which adds `remap' bindings to
>> the global map, or a buffer-local minor mode which adds the same remap
>> bindings but via a minor-mode map.
> Maybe something like this? I think it is essential to be able to use the
> original move and kill commands too.
Why do you find it essential?
What about something like
(define-key map [remap forward-paragraph] 'forward-line)
-- Stefan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 19:47 ` Stefan Monnier
@ 2008-06-20 19:53 ` Lennart Borgman (gmail)
2008-06-20 20:13 ` Miles Bader
2008-06-20 21:23 ` Stefan Monnier
0 siblings, 2 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-20 19:53 UTC (permalink / raw)
To: Stefan Monnier; +Cc: David Reitter, Emacs-Devel devel
Stefan Monnier wrote:
>>>>>> Thanks. What key bindings do you suggest? Maybe this could be
>>>>>> a minor mode?
>>> It should be either a global minor mode which adds `remap' bindings to
>>> the global map, or a buffer-local minor mode which adds the same remap
>>> bindings but via a minor-mode map.
>> Maybe something like this? I think it is essential to be able to use the
>> original move and kill commands too.
>
> Why do you find it essential?
If there are very long lines it is easier to use the original commands.
Also, I think sometimes you have the logic of buffer lines in your head.
> What about something like
>
> (define-key map [remap forward-paragraph] 'forward-line)
That hides forward-paragraph. I guess you are thinking of the situation
with a buffer consisting of only very long lines, but I think this is
not the only situation when you want the original forward-line/next-line.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 19:53 ` Lennart Borgman (gmail)
@ 2008-06-20 20:13 ` Miles Bader
2008-06-20 20:16 ` Lennart Borgman (gmail)
2008-06-20 21:23 ` Stefan Monnier
1 sibling, 1 reply; 48+ messages in thread
From: Miles Bader @ 2008-06-20 20:13 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: David Reitter, Stefan Monnier, Emacs-Devel devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> That hides forward-paragraph. I guess you are thinking of the situation
> with a buffer consisting of only very long lines, but I think this is
> not the only situation when you want the original
> forward-line/next-line.
Well one problem is that you're making it a global minor-mode.
Such things are much easier to get right if you're only doing it for a
single buffer.
-Miles
--
Bacchus, n. A convenient deity invented by the ancients as an excuse for
getting drunk.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 20:13 ` Miles Bader
@ 2008-06-20 20:16 ` Lennart Borgman (gmail)
2008-06-21 0:11 ` Miles Bader
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-20 20:16 UTC (permalink / raw)
To: Miles Bader; +Cc: David Reitter, Stefan Monnier, Emacs-Devel devel
Miles Bader wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>> That hides forward-paragraph. I guess you are thinking of the situation
>> with a buffer consisting of only very long lines, but I think this is
>> not the only situation when you want the original
>> forward-line/next-line.
>
> Well one problem is that you're making it a global minor-mode.
>
> Such things are much easier to get right if you're only doing it for a
> single buffer.
Yes, it might be more flexible as a globalized minor mode.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 19:53 ` Lennart Borgman (gmail)
2008-06-20 20:13 ` Miles Bader
@ 2008-06-20 21:23 ` Stefan Monnier
2008-06-20 23:39 ` Lennart Borgman (gmail)
1 sibling, 1 reply; 48+ messages in thread
From: Stefan Monnier @ 2008-06-20 21:23 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: David Reitter, Emacs-Devel devel
> If there are very long lines it is easier to use the original
> commands. Also, I think sometimes you have the logic of buffer lines
> in your head.
I.e. you're not accustomed to the new commands. I'm not convinced we
need both sets of commands in the same buffer at the same time.
Stefan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 21:23 ` Stefan Monnier
@ 2008-06-20 23:39 ` Lennart Borgman (gmail)
2008-06-21 7:19 ` David Reitter
0 siblings, 1 reply; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-20 23:39 UTC (permalink / raw)
To: Stefan Monnier; +Cc: David Reitter, Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
Stefan Monnier wrote:
>> If there are very long lines it is easier to use the original
>> commands. Also, I think sometimes you have the logic of buffer lines
>> in your head.
>
> I.e. you're not accustomed to the new commands. I'm not convinced we
> need both sets of commands in the same buffer at the same time.
Ok, I am not sure either. I took Miles idea (as I understand it) instead
and made this a globalized minor mode.
I have attached the original code + David's code in one file for
convenience.
I added new functions for <home> and <end> keys. Those functions also
contains a proposal I made long ago, but which was never installed then.
David, there is also a small change to end-of-visual-line. Can you check
it, please? I do not understand your comment in that function.
[-- Attachment #2: from-osxkeys.el --]
[-- Type: text/plain, Size: 22878 bytes --]
;;; from-osxkeys.el ---
;;
;; Author: Lennart Borgman (lennart O borgman A gmail O com)
;; Created: 2008-06-18T16:32:32+0200 Wed
;; Version:
;; Last-Updated:
;; URL:
;; Keywords:
;; Compatibility:
;;
;; Features that might be required by this library:
;;
;; None
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Commentary:
;;
;; This is extracted from
;; http://article.gmane.org/gmane.emacs.devel/90861
;; plus some additions.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Change log:
;;
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
;; Floor, Boston, MA 02110-1301, USA.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Code:
;; From: David Reitter <david.reitter <at> gmail.com>
;; Subject: Re: longlines-mode
;; Newsgroups: gmane.emacs.devel
;; Date: 2008-02-29 10:47:40 GMT (15 weeks, 4 days, 20 hours and 13 minutes ago)
;; On 28 Feb 2008, at 16:47, Stefan Monnier wrote:
;; >>
;; >> We have been using different code for these that does the right
;; >> thing. This was necessary primarily because of variable width
;; >> fonts. <down> is bound to visual-line-down', which moves the point to
;; >> the next visual line and to the column that is closest on the screen
;; >> (pixel wise), minimizing horizontal offset (in pixels). Other
;; >> functions provided are beginning-of-visual-line',
;; >> `end-of-visual-line', `kill- visual-line', `kill-whole-visual-line'.
;; >
;; > Could you show us the corresponding code?
;; The code is below. This is straight out of Aquamacs (osxkeys.el) and
;; may or may not run as is.
;; Note that `visual-line-up' and friends use two different methods to
;; figure out the best position to move to because of a slowness with
;; outline-(minor-)mode. One of the methods (basically binary search) is
;; much faster when a lot of hidden text is present, but a bit slower in
;; all other cases.
;; We have `visual-line-down' bound to <down> (and so forth), with
;; special cases for minibuffers.
;; N.B. I do not take comments about non-conforming code formatting etc.
;; at this point.
(defun visual-col-at-point ()
(- (point)
(save-excursion
(vertical-motion 0)
(point))))
;; seems slower (in situations with very long lines)
;;(or (car (nth 6 (posn-at-point))) 0))
(defun visual-pixel-col-at-point ()
(or
(car-safe (pos-visible-in-window-p (point) nil 'partial))
0))
(defvar visual-movement-temporary-goal-column nil)
(make-variable-buffer-local 'visual-movement-temporary-goal-column)
(defvar visual-previous-scroll-margin 'none)
(defun visual-restore-scroll-margin ()
(if (integerp visual-previous-scroll-margin)
(setq scroll-margin visual-previous-scroll-margin))
(remove-hook 'pre-command-hook 'visual-restore-scroll-margin))
(defcustom visual-scroll-margin nil
"Number of lines of margin at top and bottom of a window.
For visual scrolling with up and down keys, this value
applies instead of `scroll-margin' if it is non-nil.
The reason this variable exists is that clicks in the first and last
line of a window will set the cursor within the standard scroll-margin,
causing the buffer to scroll immediately. This is usually undesired.
In this case, set `scroll-margin' to zero and `visual-scroll-margin'
to the desired margin."
:group 'Aquamacs)
;; (setq scroll-margin 0)
;; (setq visual-scroll-margin 5)
(defun visual-line-up (num-lines)
"Move cursor vertically up NUM-LINES lines.
Interactively, vscroll tall lines if `auto-window-vscroll' is
enabled. If there is no character in the target line exactly
over the current horizontal pixel position, the cursor is
positioned close to the character in that line at the same position,
or at the end of the line if it is not long enough.
The command C-x C-n can be used to create
a semipermanent goal column for this command.
Then instead of trying to move exactly vertically (or as close as
possible),
this command moves to the specified goal column (or as close as
possible).
The goal column is stored in the variable `goal-column', which is nil
when there is no goal column.
This function differs from `previous-line' as it moves vertically
in the visual sense. The result differs when variable-width font is
used or when characters of non-standard width (e.g. TABs) are used.
If you are thinking of using this in a Lisp program, consider using
`forward-line' with a negative argument instead. It is usually easier
to use and more reliable (no dependence on goal column, etc.)."
(interactive "p")
(if (bobp) (signal 'beginning-of-buffer nil))
(let ((pixel-col (visual-pixel-col-at-point))
(visual-col (visual-col-at-point))
(old-point (point))
(end-of-old-line))
;; temporary binding of scroll-margin
;; cannot do this with a temporary let binding
(setq visual-previous-scroll-margin scroll-margin)
(if visual-scroll-margin
(setq scroll-margin visual-scroll-margin))
(add-hook 'pre-command-hook 'visual-restore-scroll-margin)
(save-excursion
(vertical-motion 1) ;; trying going one down, to left
(setq end-of-old-line (point)))
(vertical-motion 0)
(let* ((beg-of-old-line
;; move right, but not further than to end of line
(prog1 (point)
(vertical-motion (- num-lines)))) ;; one up again
(beg-of-new-line (point))
(rel-beg-of-old-line (- beg-of-old-line (point) 1)))
;; handle track-eol...
(if (and track-eol (= old-point (1- end-of-old-line))
;; Don't count beg of empty line as end of line
;; unless we just did explicit end-of-line.
(or (not (= old-point beg-of-old-line))
(eq last-command 'end-of-line)))
(setq visual-movement-temporary-goal-column 9999))
;; approximate positioning
(if (and (or goal-column visual-movement-temporary-goal-column)
(memq last-command '(visual-line-up
visual-line-down
osxkeys-visual-line-up-in-buffers
osxkeys-visual-line-down-in-buffers))
(= old-point (1- end-of-old-line)))
;; jumping from end of line
(forward-char (min (or goal-column
visual-movement-temporary-goal-column)
rel-beg-of-old-line))
;; else, do complete positioning
;; save original position
(setq visual-movement-temporary-goal-column visual-col)
; (forward-char (min visual-col rel-beg-of-old-line))
;; this won't work because we don't have the
;; absolute position, just the position within window
;; (let ((p (pos-visible-in-window-p old-point nil 'p))
;; (p2 (pos-visible-in-window-p beg-of-new-line nil 'p) ))
;; (print (cons (car p) (cdr p2)))
;; (posn-set-point (cons (car p) (cdr p2)))
;; )
(if (> (abs (- (point) beg-of-old-line)) 400)
;; aq-find-position-at-pixel-col is much faster when
;; large portions of hidden text are to be crossed.
;; this can happen in outline-(minor-)mode for instance.
(goto-char (aq-find-position-at-pixel-col pixel-col))
;; approximate positioning
(forward-char (min visual-col rel-beg-of-old-line))
(if (>= (visual-pixel-col-at-point) pixel-col)
(progn
(while (and
(> (visual-pixel-col-at-point) pixel-col)
(> (point) beg-of-new-line)) ;; do not cross line
(forward-char -1)))
(progn
(while (and
(< (visual-pixel-col-at-point) pixel-col)
(< (point) (1- beg-of-old-line))) ;; do not cross line
(forward-char +1)))))
))))
(defun visual-line-down (num-lines)
"Move cursor vertically down NUM-LINES lines.
Interactively, vscroll tall lines if `auto-window-vscroll' is enabled.
If there is no character in the target line exactly under the current
column,
the cursor is positioned after the character in that line which spans
this
column, or at the end of the line if it is not long enough.
If there is no line in the buffer after this one, behavior depends on
the
value of `next-line-add-newlines'. If non-nil, it inserts a newline
character
to create a line, and moves the cursor to that line. Otherwise it
moves the
cursor to the end of the buffer.
The command C-x C-n can be used to create
a semipermanent goal column for this command.
Then instead of trying to move exactly vertically (or as close as
possible),
this command moves to the specified goal column (or as close as
possible).
The goal column is stored in the variable `goal-column', which is nil
when there is no goal column.
This function differs from `next-line' as it moves vertically
in the visual sense. The result differs when variable-width font is
used or when characters of non-standard width (e.g. TABs) are used.
If you are thinking of using this in a Lisp program, consider
using `forward-line' instead. It is usually easier to use
and more reliable (no dependence on goal column, etc.)."
(interactive "p")
(if (and next-line-add-newlines (= num-lines 1))
(if (save-excursion (end-of-line) (eobp))
;; When adding a newline, don't expand an abbrev.
(let ((abbrev-mode nil))
(end-of-line)
(insert hard-newline)))
(if (eobp) (signal 'end-of-buffer nil)))
(let ((pixel-col (visual-pixel-col-at-point))
(visual-col (visual-col-at-point))
(old-point (point))
(beg-of-line)
(next-line-start)
(rel-next-line-start))
;; temporary binding of scroll-margin
;; cannot do this with a temporary let binding
(setq visual-previous-scroll-margin scroll-margin)
(if visual-scroll-margin
(setq scroll-margin visual-scroll-margin))
(add-hook 'pre-command-hook 'visual-restore-scroll-margin)
(vertical-motion num-lines) ;; down
(save-excursion
(setq beg-of-line (point))
(vertical-motion +1) ;; down
(setq next-line-start (point))
(setq rel-next-line-start (- (point) beg-of-line 1)))
(unless (= beg-of-line (point-max))
;; handle track-eol...
(if (and track-eol (= old-point (1- next-line-start))
;; Don't count beg of empty line as end of line
;; unless we just did explicit end-of-line.
(or (not (= 0 visual-col))
(eq last-command 'end-of-line)))
(setq visual-movement-temporary-goal-column 9999))
;; approximate positioning
(if (and (or goal-column visual-movement-temporary-goal-column)
(memq last-command '(visual-line-up
visual-line-down
osxkeys-visual-line-up-in-buffers
osxkeys-visual-line-down-in-buffers))
(= old-point (- beg-of-line 1))) ;; jumping from end of line
(forward-char (min (or goal-column
visual-movement-temporary-goal-column)
rel-next-line-start))
;; else, do complete positioning
;; save original position
(setq visual-movement-temporary-goal-column visual-col)
;; aq-find-position-at-pixel-col is much faster when
;; large portions of hidden text are to be crossed.
;; this can happen in outline-(minor-)mode for instance.
(if (> (abs (- old-point next-line-start)) 400)
(goto-char (aq-find-position-at-pixel-col pixel-col))
(forward-char (min visual-col rel-next-line-start))
(if (> (visual-pixel-col-at-point) pixel-col)
(progn
(while (and
(> (visual-pixel-col-at-point) pixel-col)
(> (point) beg-of-line)) ;; do not cross line
(forward-char -1)))
(progn
(while (and
(< (visual-pixel-col-at-point) pixel-col)
(< (point) (1- next-line-start))) ;; do not cross line
(forward-char +1)))))))))
(defun aq-find-position-at-pixel-col (pixel-col)
(let ((beg-of-line) (end-of-line))
(vertical-motion 1) ;; trying going one down, to left
(setq end-of-line (point))
(if (eq (point) (point-max)) (vertical-motion 0) (vertical-motion
-1))
(setq beg-of-line (point))
(let ((op (point)))
; move to beg of line
(vertical-motion 0) ;; trying going one down, to left
(forward-char (/ pixel-col (frame-char-width)))
(aq-find-position-at-pixel-col-recursive
beg-of-line end-of-line pixel-col)
(let* ((nearest-pos (point))
(smallest-distance
(abs (- pixel-col (visual-pixel-col-at-point)))))
(let ((pdif (abs (- pixel-col
(progn (forward-char -1)
(visual-pixel-col-at-point))))))
(when (< pdif smallest-distance)
(setq nearest-pos (point))
(setq smallest-distance pdif)))
(let ((pdif (abs (- pixel-col
(progn (forward-char 2)
(visual-pixel-col-at-point))))))
(when (< pdif smallest-distance)
(setq nearest-pos (point))
(setq smallest-distance pdif)))
(goto-char nearest-pos))
(point))))
(defun aq-find-position-at-pixel-col-recursive
(beg-of-line end-of-line pixel-col)
; set it in the middle
(if (eq beg-of-line end-of-line)
(point)
(let ((middle (+ beg-of-line (round (/ (- end-of-line beg-of-line)
2)))))
(if (or
(eq middle (point)) ;; wouldn't change point any more
(eq (visual-pixel-col-at-point) pixel-col))
(point)
;(incf steps)
(goto-char middle)
(if (> (visual-pixel-col-at-point) pixel-col)
(aq-find-position-at-pixel-col-recursive
beg-of-line (point) pixel-col)
(aq-find-position-at-pixel-col-recursive
(point) end-of-line pixel-col))))))
(defun beginning-of-visual-line ()
(interactive)
(if (bobp)
(signal 'beginning-of-buffer nil))
(vertical-motion 0))
(defun end-of-visual-line ()
(interactive)
(if (eobp)
(signal 'end-of-buffer nil))
(let ((end-of-line (line-end-position)))
(vertical-motion 1)
(unless (or (eobp)
;;(< (point) end-of-line) ;; jumping over wrapped text
)
(backward-char 1))))
;; this code based on simple.el
(defun kill-visual-line (&optional arg)
"Kill the rest of the visual line; if no nonblanks there, kill thru
newline.
With prefix argument, kill that many lines from point.
Negative arguments kill lines backward.
With zero argument, kills the text before point on hthe current line.
When calling from a program, nil means \"no arg\",
a number counts as a prefix arg.
To kill a whole line, when point is not at the beginning, type \
\\[beginning-of-line] \\[kill-line] \\[kill-line].
If `kill-whole-line' is non-nil, then this command kills the whole line
including its terminating newline, when used at the beginning of a line
with no argument. As a consequence, you can always kill a whole line
by typing \\[beginning-of-line] \\[kill-line].
If you want to append the killed line to the last killed text,
use \\[append-next-kill] before \\[kill-line].
If the buffer is read-only, Emacs will beep and refrain from deleting
the line, but put the line in the kill ring anyway. This means that
you can use this command to copy text from a read-only buffer.
\(If the variable `kill-read-only-ok' is non-nil, then this won't
even beep.)"
(interactive "P")
(kill-region (point)
;; It is better to move point to the other end of the kill
;; before killing. That way, in a read-only buffer, point
;; moves across the text that is copied to the kill ring.
;; The choice has no effect on undo now that undo records
;; the value of point from before the command was run.
(progn
(if arg
(vertical-motion (prefix-numeric-value arg))
(if (eobp)
(signal 'end-of-buffer nil))
(let ((end
(save-excursion
(end-of-visual-line) (point))))
(if (or (save-excursion
;; If trailing whitespace is visible,
;; don't treat it as nothing.
(unless show-trailing-whitespace
(skip-chars-forward " \t" end))
(= (point) end))
(and kill-whole-line (bolp)))
(visual-line-down 1)
(goto-char end))))
(point))))
(defun kill-whole-visual-line (&optional arg)
"Kill current visual line.
With prefix arg, kill that many lines starting from the current line.
If arg is negative, kill backward. Also kill the preceding newline.
\(This is meant to make \\[repeat] work well with negative arguments.\)
If arg is zero, kill current line but exclude the trailing newline."
(interactive "p")
(if (and (> arg 0) (eobp) (save-excursion (vertical-motion 0) (eobp)))
(signal 'end-of-buffer nil))
(if (and (< arg 0) (bobp) (save-excursion (vertical-motion 1) (bobp)))
(signal 'beginning-of-buffer nil))
(unless (eq last-command 'kill-region)
(kill-new "")
(setq last-command 'kill-region))
(cond ((zerop arg)
;; We need to kill in two steps, because the previous command
;; could have been a kill command, in which case the text
;; before point needs to be prepended to the current kill
;; ring entry and the text after point appended. Also, we
;; need to use save-excursion to avoid copying the same text
;; twice to the kill ring in read-only buffers.
(save-excursion
;; delete in one go
(kill-region (progn (vertical-motion 0) (point))
(progn (vertical-motion 1) (point)))
))
((< arg 0)
(save-excursion
(kill-region (point) (progn (end-of-visual-line) (point))))
(kill-region (point)
(progn (vertical-motion (1+ arg))
(unless (bobp) (backward-char))
(point))))
(t
(save-excursion
(kill-region (progn (vertical-motion 0) (point))
(progn (vertical-motion arg) (point)))))))
(defun osxkeys-visual-line-up-in-buffers ()
"Moves the cursor up one (visual) line.
If the `up' key would normally be bound to something else than
`previous-line' (as it is the case in minibuffers), the other binding
is called."
(interactive)
(let* (osx-key-mode ;; turn off mode temporarily
(binding (key-binding [up])))
(if (eq binding 'previous-line)
(call-interactively (function visual-line-up))
(call-interactively binding))))
(defun osxkeys-visual-line-down-in-buffers ()
"Moves the cursor down one (visual) line.
If the `down' key would normally be bound to something else than
`next-line' (as it is the case in minibuffers), the other binding
is called."
(interactive)
(let* (osx-key-mode ;; turn off mode temporarily
(binding (key-binding [down])))
(if (eq binding 'next-line)
(call-interactively (function visual-line-down))
(call-interactively binding))))
;; mark functions for CUA
(dolist (cmd
'( beginning-of-visual-line
end-of-visual-line
visual-line-down visual-line-up
osxkeys-visual-line-up-in-buffers
osxkeys-visual-line-down-in-buffers))
(put cmd 'CUA 'move))
(defalias 'original-kill-line 'kill-line "test")
(defun smart-move-beginning (arg)
(interactive "p")
(if (or (null arg) (/= arg 1))
(if visual-line-mode
(progn
(visual-line-up (1- arg))
(beginning-of-visual-line))
(call-interactively 'move-beginning-of-line arg))
(let ((here (point)))
(if visual-line-mode
(beginning-of-visual-line)
(move-beginning-of-line))
(when (= here (point))
(if (= here (line-beginning-position))
(skip-chars-forward " \t")
(backward-char 1)
(beginning-of-visual-line))))))
(defun smart-move-end (arg)
(interactive "p")
(if (or (null arg) (/= arg 1))
(if visual-line-mode
(progn
(visual-line-down (1- arg))
(beginning-of-visual-line))
(call-interactively 'move-end-of-line arg))
(let ((here (point)))
(if visual-line-mode
(end-of-visual-line)
(move-end-of-line))
(when (= here (point))
(if (= here (line-end-position))
(skip-chars-backward " \t")
(forward-char 1)
(end-of-visual-line))))))
(defvar visual-line-map
(let ((map (make-sparse-keymap)))
(define-key map [remap next-line] 'visual-line-down)
(define-key map [remap previous-line] 'visual-line-up)
(define-key map [remap kill-line] 'kill-visual-line)
(define-key map [(control shift ?k)] 'original-kill-line)
(define-key map [home] 'smart-move-beginning)
(define-key map [end] 'smart-move-end)
map))
(define-minor-mode visual-line-mode
"Define key binding for visual line moves."
:keymap visual-line-map
:group 'convenience)
(defun maybe-turn-on-visual-line-mode ()
(visual-line-mode 1))
(define-globalized-minor-mode global-visual-line-mode
visual-line-mode maybe-turn-on-visual-line-mode
:lighter " vl")
(provide 'from-osxkeys)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; from-osxkeys.el ends here
;;(defalias 'original-next-line 'next-line "test")
;;(defalias 'original-previous-line 'previous-line "test")
;;
;; (defun line-is-wrapped ()
;; (let ((here (point))
;; res)
;; (vertical-motion 0)
;; (setq res (/= (line-beginning-position) (point)))
;; (unless res
;; (let ((line-end-pos (line-end-position)))
;; (vertical-motion 1)
;; (setq res (/= line-end-pos (- (point) 1)))))
;; (goto-char here)
;; res))
;; (defun next-wrapped-line-or-paragraph (&optional arg try-vscroll)
;; (interactive)
;; (let ((bpos (line-beginning-position)))
;; (visual-line-down 1)
;; (if (= bpos (line-beginning-position))
;; (next-line arg try-vscroll)
;; (forward-paragraph arg))))
;; (defun previous-wrapped-line-or-paragraph (&optional arg try-vscroll)
;; (interactive)
;; (let ((bpos (line-beginning-position)))
;; (visual-line-up 1)
;; (if (= bpos (line-beginning-position))
;; (previous-line arg try-vscroll)
;; (backward-paragraph arg))))
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 20:16 ` Lennart Borgman (gmail)
@ 2008-06-21 0:11 ` Miles Bader
2008-06-21 0:15 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: Miles Bader @ 2008-06-21 0:11 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: David Reitter, Stefan Monnier, Emacs-Devel devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>> Well one problem is that you're making it a global minor-mode.
>>
>> Such things are much easier to get right if you're only doing it for a
>> single buffer.
>
> Yes, it might be more flexible as a globalized minor mode.
Hmm, well I didn't really man that, I just meant it should be an ordinary --
buffer-local -- minor-mode.
That way, the "visual" bindings will only be present when actually
needed, so will cause less confusion.
-Miles
--
Justice, n. A commodity which in a more or less adulterated condition the
State sells to the citizen as a reward for his allegiance, taxes and personal
service.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-21 0:11 ` Miles Bader
@ 2008-06-21 0:15 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-21 0:15 UTC (permalink / raw)
To: Miles Bader; +Cc: David Reitter, Stefan Monnier, Emacs-Devel devel
Miles Bader wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>>> Well one problem is that you're making it a global minor-mode.
>>>
>>> Such things are much easier to get right if you're only doing it for a
>>> single buffer.
>> Yes, it might be more flexible as a globalized minor mode.
>
> Hmm, well I didn't really man that, I just meant it should be an ordinary --
> buffer-local -- minor-mode.
>
> That way, the "visual" bindings will only be present when actually
> needed, so will cause less confusion.
Yes, I thought so, but I see no harm in making it a globalized minor
mode too.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-20 23:39 ` Lennart Borgman (gmail)
@ 2008-06-21 7:19 ` David Reitter
2008-06-21 13:08 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 48+ messages in thread
From: David Reitter @ 2008-06-21 7:19 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Stefan Monnier, Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
On 21 Jun 2008, at 00:39, Lennart Borgman (gmail) wrote:
>
> David, there is also a small change to end-of-visual-line. Can you
> check it, please? I do not understand your comment in that function.
OK, I'll look into this over the next days or so; I'm pretty busy at
the moment.
I'm happy to maintain the package given that I wrote the core functions.
Using a globalized minor mode seems sensible; if one is used to the
new movement commands, one may well enable them everywhere. Other
users will probably just use it locally.
- D
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-21 7:19 ` David Reitter
@ 2008-06-21 13:08 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 48+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-21 13:08 UTC (permalink / raw)
To: David Reitter; +Cc: Stefan Monnier, Emacs-Devel devel
David Reitter wrote:
> On 21 Jun 2008, at 00:39, Lennart Borgman (gmail) wrote:
>>
>> David, there is also a small change to end-of-visual-line. Can you
>> check it, please? I do not understand your comment in that function.
>
> OK, I'll look into this over the next days or so; I'm pretty busy at the
> moment.
> I'm happy to maintain the package given that I wrote the core functions.
Very nice. I would be glad if you could adapt the functions for <home>
and <end> too.
I played a little bit with visual-line-up/down and noticed that it looks
slower when point is at the bottom half of the screen. Could that be the
call to `pos-visible-in-window-p'? (I am doing this with a fresh CVS
Emacs from today on w32.)
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-06-12 11:00 ` Miles Bader
@ 2008-07-11 21:21 ` Kim F. Storm
2008-07-12 2:51 ` Chong Yidong
0 siblings, 1 reply; 48+ messages in thread
From: Kim F. Storm @ 2008-07-11 21:21 UTC (permalink / raw)
To: Miles Bader; +Cc: David Reitter, Chong Yidong, Emacs-Devel devel
Miles Bader <miles.bader@necel.com> writes:
> I don't recall having seen any message (on any subject) from Kim in
> quite a while...
No sorry for the long silence - I've recently started my own company
with a few friends, so I'm loaded 150% at the moment - and will be for
the rest of this year...
But I'm still following the mailing lists at irregular intervals
as time allows, trying to keep up-to-date with current developments
hoping to be able to join the team again at some later date...
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-07-11 21:21 ` Kim F. Storm
@ 2008-07-12 2:51 ` Chong Yidong
2008-07-14 3:08 ` Miles Bader
0 siblings, 1 reply; 48+ messages in thread
From: Chong Yidong @ 2008-07-12 2:51 UTC (permalink / raw)
To: Kim F. Storm; +Cc: David Reitter, Emacs-Devel devel, Miles Bader
storm@cua.dk (Kim F. Storm) writes:
> Miles Bader <miles.bader@necel.com> writes:
>
>> I don't recall having seen any message (on any subject) from Kim in
>> quite a while...
>
> No sorry for the long silence - I've recently started my own company
> with a few friends, so I'm loaded 150% at the moment - and will be for
> the rest of this year...
>
> But I'm still following the mailing lists at irregular intervals
> as time allows, trying to keep up-to-date with current developments
> hoping to be able to join the team again at some later date...
Good luck with your venture!
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: Longlines mode in menu
2008-07-12 2:51 ` Chong Yidong
@ 2008-07-14 3:08 ` Miles Bader
0 siblings, 0 replies; 48+ messages in thread
From: Miles Bader @ 2008-07-14 3:08 UTC (permalink / raw)
To: Kim F. Storm; +Cc: David Reitter, Chong Yidong, Emacs-Devel devel
Chong Yidong <cyd@stupidchicken.com> writes:
>> No sorry for the long silence - I've recently started my own company
>> with a few friends, so I'm loaded 150% at the moment - and will be for
>> the rest of this year...
>
> Good luck with your venture!
Yeah! :-)
What is your company doing?
-Miles
--
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
^ permalink raw reply [flat|nested] 48+ messages in thread
end of thread, other threads:[~2008-07-14 3:08 UTC | newest]
Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 5:42 Longlines mode in menu Chong Yidong
2008-06-05 5:53 ` Miles Bader
2008-06-05 12:50 ` Chong Yidong
2008-06-05 16:41 ` Paul R
2008-06-05 18:55 ` Chong Yidong
2008-06-06 21:27 ` Chong Yidong
2008-06-12 10:48 ` David Reitter
2008-06-12 11:00 ` Miles Bader
2008-07-11 21:21 ` Kim F. Storm
2008-07-12 2:51 ` Chong Yidong
2008-07-14 3:08 ` Miles Bader
2008-06-12 15:05 ` Chong Yidong
2008-06-12 16:12 ` David Reitter
2008-06-12 16:38 ` Chong Yidong
2008-06-12 17:14 ` Chong Yidong
2008-06-12 22:32 ` Chong Yidong
2008-06-13 6:45 ` David Reitter
2008-06-12 19:38 ` Stefan Monnier
2008-06-13 3:04 ` Kevin Rodgers
2008-06-13 3:13 ` Stefan Monnier
2008-06-13 7:36 ` Lennart Borgman (gmail)
2008-06-18 6:48 ` David Reitter
2008-06-18 7:13 ` Lennart Borgman (gmail)
2008-06-18 8:38 ` David Reitter
2008-06-18 16:17 ` Lennart Borgman (gmail)
2008-06-18 16:55 ` David Reitter
2008-06-18 20:50 ` Lennart Borgman (gmail)
2008-06-18 20:59 ` David Reitter
2008-06-18 21:17 ` Lennart Borgman (gmail)
2008-06-18 21:38 ` David Reitter
2008-06-18 21:53 ` Lennart Borgman (gmail)
2008-06-19 0:22 ` Miles Bader
2008-06-19 7:21 ` Lennart Borgman
2008-06-19 7:39 ` Miles Bader
2008-06-19 7:58 ` Lennart Borgman (gmail)
2008-06-19 13:51 ` Stefan Monnier
2008-06-20 18:50 ` Lennart Borgman (gmail)
2008-06-20 19:47 ` Stefan Monnier
2008-06-20 19:53 ` Lennart Borgman (gmail)
2008-06-20 20:13 ` Miles Bader
2008-06-20 20:16 ` Lennart Borgman (gmail)
2008-06-21 0:11 ` Miles Bader
2008-06-21 0:15 ` Lennart Borgman (gmail)
2008-06-20 21:23 ` Stefan Monnier
2008-06-20 23:39 ` Lennart Borgman (gmail)
2008-06-21 7:19 ` David Reitter
2008-06-21 13:08 ` Lennart Borgman (gmail)
2008-06-12 19:39 ` Stefan Monnier
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.