all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: bruce.connor.am@gmail.com
Cc: 18589@debbugs.gnu.org
Subject: bug#18589: Why is the the longlines package obsolete?
Date: Tue, 30 Sep 2014 21:33:04 -0400	[thread overview]
Message-ID: <jwvfvf8zirr.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CAAdUY-K7X8NatBARi8PwuK8qSBaJGc6hetMa+_Jj7-EGPDCO2w@mail.gmail.com> (bruce connor am's message of "Wed, 1 Oct 2014 00:40:09 +0100")

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





  reply	other threads:[~2014-10-01  1:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30  9:57 bug#18589: Why is the the longlines package obsolete? bruce.connor.am
2014-09-30 15:54 ` Glenn Morris
2014-09-30 16:18   ` bruce.connor.am
2014-09-30 18:19 ` Stefan Monnier
2014-09-30 23:40   ` bruce.connor.am
2014-10-01  1:33     ` Stefan Monnier [this message]
2014-10-01  8:01       ` bruce.connor.am
2014-10-01 20:39   ` Glenn Morris
2022-07-02 15:33   ` bug#51051: Restore longlines.el to non-obsolete status Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvfvf8zirr.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18589@debbugs.gnu.org \
    --cc=bruce.connor.am@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.