unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Davis Herring" <herring@lanl.gov>
To: "Miles Bader" <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: visual-line-mode tweaks
Date: Wed, 3 Feb 2010 08:56:18 -0800 (PST)	[thread overview]
Message-ID: <55964.130.55.118.19.1265216178.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <buo636eokgo.fsf@dhlpc061.dev.necel.com>

> (1) Maybe visual-line-mode should turn off auto-fill-mode -- it's
> annoying to have your lines truncated physically when editing a file
> that intentionally uses a line-per-paragraph, and it's very common for
> auto-fill mode to be turned on by default.

I don't think it's a good idea to make it automatic, because one might
have some very long lines that one likes to peruse/edit with v-l-m and yet
be writing text that isn't meant to be line-per-para.

So, I would suggest adding a convenience command: perhaps
`visual-line-nofill'.  If v-l-m were off, it would turn it on and turn off
auto-fill-mode.  Otherwise, it would turn off v-l-m and turn on a-f-m. 
(The downside would be that two invocations of the command would not be a
no-op, but would instead set a-f-m to the opposite of your original v-l-m
setting.  I doubt anyone would be harmed, but that's why I gave it a name
not ending in "mode".)

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




  parent reply	other threads:[~2010-02-03 16:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-03  7:19 visual-line-mode tweaks Miles Bader
2010-02-03 14:23 ` Stefan Monnier
2010-02-03 14:48   ` Teemu Likonen
2010-02-04  1:06   ` Miles Bader
2010-02-04  5:18     ` Teemu Likonen
2010-02-04 15:27     ` Stefan Monnier
2010-02-03 16:56 ` Davis Herring [this message]
2010-02-05 18:14 ` Andrey Paramonov

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=55964.130.55.118.19.1265216178.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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