GNU bug report logs - #2887
Suggestions for simple.el

Previous Next

Package: emacs;

Reported by: "Arni Magnusson" <arnima <at> hafro.is>

Date: Sat, 4 Apr 2009 13:40:04 UTC

Severity: wishlist

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Arni Magnusson <arnima <at> hafro.is>, 2887 <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#2887: Suggestions for simple.el
Date: Sun, 5 Apr 2009 23:59:59 +0200
On Sun, Apr 5, 2009 at 10:17 PM, Arni Magnusson <arnima <at> hafro.is> wrote:
>>> It's often useful to get rid of extra vertical spacing in source
>>> code, output files, etc., sometimes undoing after enjoying the
>>> squeezed view. Without this command, it would take a lot of
>>> keystrokes to delete all blank lines while retaining the cursor
>>> buffer position.
>>
>> I've never needed such a command, so again, I'll let other people
>> judge if it is sufficiently generally useful to find its way in Emacs.
>
> It's often a good way to get an overview of code that is vertically
> stretched. I remove all comments (one keystroke) and all blank lines
> (another keystroke), absorb the information and undo. I also use it on
> certain program input files where blank lines would be problematic.

I can see the idea, but I would suggest a minor mode that hide
comments and blank lines instead.

That would allow editing the file with comments and blank line hidden.

> M-down           downcase-word-or-region
> M-up             upcase-word-or-region

Key bindings is a scarce resource. Those two bindings are already used
by windmove.el for moving between windows (and that is something that
perhaps should be on by default).




This bug report was last modified 4 years and 305 days ago.

Previous Next


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