unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using longlines-mode on part of a buffer
@ 2009-10-26  8:55 Cecil Westerhof
  2009-10-26 11:59 ` Giorgos Keramidas
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Cecil Westerhof @ 2009-10-26  8:55 UTC (permalink / raw)
  To: help-gnu-emacs

I find longlines-mode very usefull. But sometimes I only want to use it
on part of a buffer. Is this possible, or do I want to much?


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

* Re: Using longlines-mode on part of a buffer
  2009-10-26  8:55 Using longlines-mode on part of a buffer Cecil Westerhof
@ 2009-10-26 11:59 ` Giorgos Keramidas
  2009-10-26 13:38   ` Cecil Westerhof
  2009-10-26 13:16 ` tomas
       [not found] ` <mailman.9493.1256562802.2239.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 8+ messages in thread
From: Giorgos Keramidas @ 2009-10-26 11:59 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, 26 Oct 2009 09:55:59 +0100, Cecil Westerhof <Cecil@decebal.nl> wrote:
> I find longlines-mode very usefull. But sometimes I only want to use
> it on part of a buffer. Is this possible, or do I want to much?

You can temporarily narrow the buffer to a smaller region, enable
`longlines-mode' temporarily, do some editing, disable `longlines-mode'
when you are done, and widen the buffer to its full size again.



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

* Re: Using longlines-mode on part of a buffer
  2009-10-26  8:55 Using longlines-mode on part of a buffer Cecil Westerhof
  2009-10-26 11:59 ` Giorgos Keramidas
@ 2009-10-26 13:16 ` tomas
       [not found] ` <mailman.9493.1256562802.2239.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: tomas @ 2009-10-26 13:16 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 26, 2009 at 09:55:59AM +0100, Cecil Westerhof wrote:
> I find longlines-mode very usefull. But sometimes I only want to use it
> on part of a buffer. Is this possible, or do I want to much?

Note that AFAIK longlines-mode is in the process of being replaced by
visual-lines-mode (which version of Emacs do you have?). But this
doesn't answer your question, of course.

Depending on what you want to do, Giorgios's proposal (narrowing) might
do the trick for you (you won't see the "outer" part of the text when
narrowed, though).

What exactly are you trying to achieve?

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFK5aErBcgs9XrR2kYRAm3tAJ9/3spq6HR/V3tLkYnWU1fk5Aul1wCeOvf6
VaJyKop+ACSMPmq9szOkCZ8=
=w25P
-----END PGP SIGNATURE-----




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

* Re: Using longlines-mode on part of a buffer
  2009-10-26 11:59 ` Giorgos Keramidas
@ 2009-10-26 13:38   ` Cecil Westerhof
  0 siblings, 0 replies; 8+ messages in thread
From: Cecil Westerhof @ 2009-10-26 13:38 UTC (permalink / raw)
  To: help-gnu-emacs

Giorgos Keramidas <keramida@ceid.upatras.gr> writes:

>> I find longlines-mode very usefull. But sometimes I only want to use
>> it on part of a buffer. Is this possible, or do I want to much?
>
> You can temporarily narrow the buffer to a smaller region, enable
> `longlines-mode' temporarily, do some editing, disable `longlines-mode'
> when you are done, and widen the buffer to its full size again.

That is a hack that could work reasonable, but is not really what I
want. See my response to the message of Tomas.


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

* Re: Using longlines-mode on part of a buffer
       [not found] ` <mailman.9493.1256562802.2239.help-gnu-emacs@gnu.org>
@ 2009-10-26 13:59   ` Cecil Westerhof
  2009-10-26 15:33     ` tomas
  2009-10-30  3:33     ` Joseph Brenner
  0 siblings, 2 replies; 8+ messages in thread
From: Cecil Westerhof @ 2009-10-26 13:59 UTC (permalink / raw)
  To: help-gnu-emacs

tomas@tuxteam.de writes:

>> I find longlines-mode very usefull. But sometimes I only want to use it
>> on part of a buffer. Is this possible, or do I want to much?
>
> Note that AFAIK longlines-mode is in the process of being replaced by
> visual-lines-mode (which version of Emacs do you have?). But this
> doesn't answer your question, of course.

On the system where this editing takes place: GNU Emacs 22.3.1.
This does not have this command. I could look if it is possible to
update it.

By the way the command is 'visual-line-mode' instead off
'visual-lines-mode'. I think 'visual-lines-mode' would be better.


> Depending on what you want to do, Giorgios's proposal (narrowing) might
> do the trick for you (you won't see the "outer" part of the text when
> narrowed, though).
>
> What exactly are you trying to achieve?

In the org-document I edit I use tables. I do not want those to be
wrapped, because that does look bad. And in longlines-mode it went
severall times wrong. And when editing the 'normal' text it would be
nice to see the unwrapped tables.
By the way I prefer longlines-mode, because this wraps at fill-column
instead of at the right window edge.


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

* Re: Using longlines-mode on part of a buffer
  2009-10-26 13:59   ` Cecil Westerhof
@ 2009-10-26 15:33     ` tomas
  2009-10-30  3:33     ` Joseph Brenner
  1 sibling, 0 replies; 8+ messages in thread
From: tomas @ 2009-10-26 15:33 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 26, 2009 at 02:59:38PM +0100, Cecil Westerhof wrote:
> tomas@tuxteam.de writes:
> 
> >> I find longlines-mode very usefull. But sometimes I only want to use it
> >> on part of a buffer. Is this possible, or do I want to much?
> >
> > Note that AFAIK longlines-mode is in the process of being replaced by
> > visual-lines-mode (which version of Emacs do you have?). But this
> > doesn't answer your question, of course.
> 
> On the system where this editing takes place: GNU Emacs 22.3.1.

Ah, yes. It's longlines then.

> This does not have this command. I could look if it is possible to
> update it.
> 
> By the way the command is 'visual-line-mode' instead off
> 'visual-lines-mode'.

Oops -- you are right.

>                      I think 'visual-lines-mode' would be better.

The typo-generator within my brain seems to think likewise ;-)

> > Depending on what you want to do, Giorgios's proposal (narrowing) might
> > do the trick [...]

> > What exactly are you trying to achieve?
> 
> In the org-document I edit I use tables. I do not want those to be
> wrapped, because that does look bad. And in longlines-mode it went
> severall times wrong.

Yes, longlines-mode is a tad "robust" when inserting things and manages
to confuse other modes. Visual-line-mode seems to tread a bit lighter.

>                       And when editing the 'normal' text it would be
> nice to see the unwrapped tables.
> By the way I prefer longlines-mode, because this wraps at fill-column
> instead of at the right window edge.

I see. I think to remember that some discussion went about adding this
capability to visual-line-mode, but I can't find that. May be I dreamt
of this one.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFK5cFkBcgs9XrR2kYRArL+AJwIch2sVlZm3JfxZKqtcEUMqGatjQCeOvKz
Ov2cQxPDWt9SZNmC5rDHUpc=
=elQs
-----END PGP SIGNATURE-----




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

* Re: Using longlines-mode on part of a buffer
  2009-10-26 13:59   ` Cecil Westerhof
  2009-10-26 15:33     ` tomas
@ 2009-10-30  3:33     ` Joseph Brenner
  2009-10-30  3:43       ` Cecil Westerhof
  1 sibling, 1 reply; 8+ messages in thread
From: Joseph Brenner @ 2009-10-30  3:33 UTC (permalink / raw)
  To: help-gnu-emacs

Cecil Westerhof <Cecil@decebal.nl> writes:

> tomas@tuxteam.de writes:
>
>>> I find longlines-mode very usefull. But sometimes I only want to use it
>>> on part of a buffer. Is this possible, or do I want to much?
>>
>> Note that AFAIK longlines-mode is in the process of being replaced by
>> visual-lines-mode (which version of Emacs do you have?). But this
>> doesn't answer your question, of course.
>
> On the system where this editing takes place: GNU Emacs 22.3.1.
> This does not have this command. I could look if it is possible to
> update it.
>
> By the way the command is 'visual-line-mode' instead off
> 'visual-lines-mode'. I think 'visual-lines-mode' would be better.
>
>
>> Depending on what you want to do, Giorgios's proposal (narrowing) might
>> do the trick for you (you won't see the "outer" part of the text when
>> narrowed, though).
>>
>> What exactly are you trying to achieve?
>
> In the org-document I edit I use tables. I do not want those to be
> wrapped, because that does look bad. And in longlines-mode it went
> several times wrong. And when editing the 'normal' text it would be
> nice to see the unwrapped tables.
> By the way I prefer longlines-mode, because this wraps at fill-column
> instead of at the right window edge.

I'm not familiar with tables in org-documents, but if they're delimeted
in a way that you could use regular expressions to detect the
boundaries, hypothetically you could use a multimode (like mmm-mode)
to automatically enable longlines-mode on the tabular part only.




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

* Re: Using longlines-mode on part of a buffer
  2009-10-30  3:33     ` Joseph Brenner
@ 2009-10-30  3:43       ` Cecil Westerhof
  0 siblings, 0 replies; 8+ messages in thread
From: Cecil Westerhof @ 2009-10-30  3:43 UTC (permalink / raw)
  To: help-gnu-emacs

Joseph Brenner <doom@kzsu.stanford.edu> writes:

>> In the org-document I edit I use tables. I do not want those to be
>> wrapped, because that does look bad. And in longlines-mode it went
>> several times wrong. And when editing the 'normal' text it would be
>> nice to see the unwrapped tables.
>> By the way I prefer longlines-mode, because this wraps at fill-column
>> instead of at the right window edge.
>
> I'm not familiar with tables in org-documents, but if they're delimeted
> in a way that you could use regular expressions to detect the
> boundaries, hypothetically you could use a multimode (like mmm-mode)
> to automatically enable longlines-mode on the tabular part only.

Tables look like:
|-------+---------+-------+-------------|
|       |         |       |             |
|-------+---------+-------+-------------|
|       |         |       |             |
|-------+---------+-------+-------------|

So to keep it simple it could be done so that lines that start with a
'|', or where the first non-white-space character is a '|' the line is
not wrapped. Any pointers how to create this?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


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

end of thread, other threads:[~2009-10-30  3:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26  8:55 Using longlines-mode on part of a buffer Cecil Westerhof
2009-10-26 11:59 ` Giorgos Keramidas
2009-10-26 13:38   ` Cecil Westerhof
2009-10-26 13:16 ` tomas
     [not found] ` <mailman.9493.1256562802.2239.help-gnu-emacs@gnu.org>
2009-10-26 13:59   ` Cecil Westerhof
2009-10-26 15:33     ` tomas
2009-10-30  3:33     ` Joseph Brenner
2009-10-30  3:43       ` Cecil Westerhof

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