GNU bug report logs - #18589
Why is the the longlines package obsolete?

Previous Next

Package: emacs;

Reported by: bruce.connor.am <at> gmail.com

Date: Tue, 30 Sep 2014 09:59:01 UTC

Severity: wishlist

Merged with 51051

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18589 in the body.
You can then email your comments to 18589 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Tue, 30 Sep 2014 09:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to bruce.connor.am <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Sep 2014 09:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: bruce.connor.am <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: Why is the the longlines package obsolete?
Date: Tue, 30 Sep 2014 10:57:19 +0100
[Message part 1 (text/plain, inline)]
Hi,
It seems the longlines package has been marked obsolete for emacs 24.4, in
lieu of visual-line-mode.
<http://emacs.1067599.n5.nabble.com/Marking-longlines-mode-as-obsolete-td271094.html>

However, from what I understand, visual-line-mode isn't capable of wraping
lines to be shorter than window width, which was one of longlines' features.

Is longlines-mode really redundant? Or was it marked obsolete for another
reason.

Cheers,
Malabarba
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Tue, 30 Sep 2014 15:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 18589 <at> debbugs.gnu.org
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Tue, 30 Sep 2014 11:54:21 -0400
bruce.connor.am <at> gmail.com wrote:

> It seems the longlines package has been marked obsolete for emacs 24.4, in
> lieu of visual-line-mode.

Yes, it was marked obsolete by its maintainer.
Since your question(s) is not a bug report, I will close it, but feel free
to keep discussing it here.
(If there are features you would like to see added to visual-line-mode,
please make a new bug report for each.)




Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 30 Sep 2014 15:55:03 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 30 Sep 2014 15:55:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 18589 <at> debbugs.gnu.org and bruce.connor.am <at> gmail.com Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 30 Sep 2014 15:55:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Tue, 30 Sep 2014 16:19:01 GMT) Full text and rfc822 format available.

Message #17 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: bruce.connor.am <at> gmail.com
Cc: 18589 <at> debbugs.gnu.org
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Tue, 30 Sep 2014 17:18:13 +0100
[Message part 1 (text/plain, inline)]
Ok, thanks.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Tue, 30 Sep 2014 18:21:02 GMT) Full text and rfc822 format available.

Message #20 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bruce.connor.am <at> gmail.com
Cc: 18589 <at> debbugs.gnu.org
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Tue, 30 Sep 2014 14:19:36 -0400
> However, from what I understand, visual-line-mode isn't capable of wraping
> lines to be shorter than window width, which was one of longlines' features.

You can get the same result by fiddling with the window margins or by
splitting your window.  I seem to remember someone writing code to do
that conveniently, but I wouldn't know where to find it.

> Is longlines-mode really redundant?

visual-lines-mode provides the feature for which longlines-mode was
written, so in this sense it's definitely obsolete/redundant.

Of course, by virtue of working differently, it might provide some
functionality which visual-lines-mode can't provide.  But "lines shorter
than the window" is not really one of them.

Recently someone pointed out that using longlines-mode in a buffer that
contain *very* long lines makes it possible to view&edit the buffer
without suffering unbearable performance problems.  So maybe in this
sense it's not completely obsolete.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Tue, 30 Sep 2014 23:41:01 GMT) Full text and rfc822 format available.

Message #23 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: bruce.connor.am <at> gmail.com
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18589 <at> debbugs.gnu.org
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Wed, 1 Oct 2014 00:40:09 +0100
[Message part 1 (text/plain, inline)]
On 30 Sep 2014 19:19, "Stefan Monnier" <monnier <at> iro.umontreal.ca> wrote:
>
> > However, from what I understand, visual-line-mode isn't capable of
wraping
> > lines to be shorter than window width, which was one of longlines'
features.
>
> You can get the same result by fiddling with the window margins or by
> splitting your window.
>
> Of course, by virtue of working differently, it might provide some
> functionality which visual-lines-mode can't provide.  But "lines shorter
> than the window" is not really one of them.
>

In my case, I managed to make longlines-mode wrap text while not wrapping
equations (LaTeX-mode). I also got it to indent wrapped lines correctly.
Both of which you can't do if you take the "change the margin" approach.

I understand this is a very specific hack, and doesn't justify unobsoleting
the package. But for the record, the code can be found here.
http://endlessparentheses.com/longlines-mode-in-latex.html


Thanks

Artur Malabarba
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Wed, 01 Oct 2014 01:34:02 GMT) Full text and rfc822 format available.

Message #26 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bruce.connor.am <at> gmail.com
Cc: 18589 <at> debbugs.gnu.org
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Tue, 30 Sep 2014 21:33:04 -0400
> In my case, I managed to make longlines-mode wrap text while not wrapping
> equations (LaTeX-mode).

It would be interesting to extend visual-lines-mode so you can prevent
wrapping of some lines (or prevent wrapping at particular places, as is
done with fill-nobreak-functions).

> I also got it to indent wrapped lines correctly.

adaptive-wrap-mode is another approach at indenting wrapped lines
correctly (but for visual-lines-mode).  I don't guarantee it works well
for LaTeX, tho (I don't think it uses the indent-according-to-mode code,
but rather uses the adaptive-fill-mode code).

> I understand this is a very specific hack, and doesn't justify unobsoleting
> the package. But for the record, the code can be found here.
> http://endlessparentheses.com/longlines-mode-in-latex.html

I wouldn't mind de-obsoleting it.  If you're interested, I think it
would be nice to change longlines.el by adding some hooks to it so you
can cleanly make it work like you do (without overwriting its functions).
Feel like taking over maintainership?


        Stefan


PS: BTW, I don't understand why people want to use
single-line-paragraphs for "LaTeX under version control".  It means that
any change to a paragraph will always appear in the diff as a change to
the whole paragraph, rather than just to the specific line on which the
change happened.  Of course, refilling a paragraph may cause the whole
paragraph to show up in the diff, but as long as you only refill when
you make changes, it's never worse than the "single-line
paragraphs" approach.  And `diff-refine-hunk' lets you see which part of
the paragraph was really changed.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Wed, 01 Oct 2014 08:02:02 GMT) Full text and rfc822 format available.

Message #29 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: bruce.connor.am <at> gmail.com
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18589 <at> debbugs.gnu.org
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Wed, 1 Oct 2014 09:01:18 +0100
[Message part 1 (text/plain, inline)]
>
> It would be interesting to extend visual-lines-mode so you can prevent
> wrapping of some lines
>
If I understand things correctly, visual-line-mode only wraps lines when
they’re longer than the window-width (or window-width - margins), so making
it not wrap some lines would only cause them to extend beyond the window’s
boundaries.

> adaptive-wrap-mode is another approach at indenting wrapped lines
> correctly (but for visual-lines-mode).  I don't guarantee it works well
> for LaTeX, tho (I don't think it uses the indent-according-to-mode code,
> but rather uses the adaptive-fill-mode code).
>
Thanks, under a few initial tests, it does seem to fix the indentation!

> I wouldn't mind de-obsoleting it.  If you're interested, I think it
> would be nice to change longlines.el by adding some hooks to it so you
> can cleanly make it work like you do (without overwriting its functions).
> Feel like taking over maintainership?
>
Sure, I could take over. What would that involve?

> PS: BTW, I don't understand why people want to use
> single-line-paragraphs for "LaTeX under version control".
>
Me neither, and I agree with everything you said here. The approach I’m
taking is with sentences.

If you give each sentence its own line then, when you change a sentence,
the rest of the paragraph doesn’t show up on the diff.

Best Regards,
Artur Malabarba
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Wed, 01 Oct 2014 20:40:02 GMT) Full text and rfc822 format available.

Message #32 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18589 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#18589: Why is the the longlines package obsolete?
Date: Wed, 01 Oct 2014 16:39:35 -0400
Stefan Monnier wrote:

>> However, from what I understand, visual-line-mode isn't capable of wraping
>> lines to be shorter than window width, which was one of longlines' features.
>
> You can get the same result by fiddling with the window margins or by
> splitting your window.  I seem to remember someone writing code to do
> that conveniently, but I wouldn't know where to find it.

http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00475.html




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Oct 2014 11:24:05 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 06 Oct 2021 23:17:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Oct 2021 23:17:02 GMT) Full text and rfc822 format available.

Forcibly Merged 18589 51051. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 06 Oct 2021 23:17:02 GMT) Full text and rfc822 format available.

Removed tag(s) notabug. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 06 Oct 2021 23:17:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18589; Package emacs. (Sat, 02 Jul 2022 15:35:01 GMT) Full text and rfc822 format available.

Message #45 received at 18589 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18589 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com, 51051 <at> debbugs.gnu.org
Subject: Re: bug#51051: Restore longlines.el to non-obsolete status
Date: Sat, 02 Jul 2022 17:33:52 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> Recently someone pointed out that using longlines-mode in a buffer that
> contain *very* long lines makes it possible to view&edit the buffer
> without suffering unbearable performance problems.  So maybe in this
> sense it's not completely obsolete.

I've now unobsoleted longlines-mode in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 51051 <at> debbugs.gnu.org and Phil Sainty <psainty <at> orcon.net.nz> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 02 Jul 2022 15:35:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 31 Jul 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.