From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#2887: Suggestions for simple.el Date: Sun, 5 Apr 2009 23:59:59 +0200 Message-ID: References: <26172.194.144.135.59.1238851923.squirrel@www.hafro.is> <11531.194.144.135.59.1238888128.squirrel@www.hafro.is> <13654.194.144.135.59.1238962672.squirrel@www.hafro.is> Reply-To: Lennart Borgman , 2887@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238970252 23406 80.91.229.12 (5 Apr 2009 22:24:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Apr 2009 22:24:12 +0000 (UTC) To: Arni Magnusson , 2887@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 06 00:25:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LqamN-00017g-QV for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Apr 2009 00:25:29 +0200 Original-Received: from localhost ([127.0.0.1]:44146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqakz-0007Oy-7b for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 18:24:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lqakt-0007OB-RI for bug-gnu-emacs@gnu.org; Sun, 05 Apr 2009 18:23:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lqakp-0007M9-Eg for bug-gnu-emacs@gnu.org; Sun, 05 Apr 2009 18:23:55 -0400 Original-Received: from [199.232.76.173] (port=58018 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqakp-0007Lr-1R for bug-gnu-emacs@gnu.org; Sun, 05 Apr 2009 18:23:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36333) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lqako-0006QV-I8 for bug-gnu-emacs@gnu.org; Sun, 05 Apr 2009 18:23:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n35MNmcX016770; Sun, 5 Apr 2009 15:23:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n35M567F011673; Sun, 5 Apr 2009 15:05:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 05 Apr 2009 22:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2887 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2887-submit@emacsbugs.donarmstrong.com id=B2887.12389688119916 (code B ref 2887); Sun, 05 Apr 2009 22:05:06 +0000 Original-Received: (at 2887) by emacsbugs.donarmstrong.com; 5 Apr 2009 22:00:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-bw0-f157.google.com (mail-bw0-f157.google.com [209.85.218.157]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n35M05rs009362 for <2887@emacsbugs.donarmstrong.com>; Sun, 5 Apr 2009 15:00:07 -0700 Original-Received: by bwz1 with SMTP id 1so2189938bwz.1 for <2887@emacsbugs.donarmstrong.com>; Sun, 05 Apr 2009 15:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=CggayBwrD+79KRaNxsvJMjH1DWmrjA87xzhO279Gcw0=; b=p6iXhFjcI9f+62OmQABC36T4clfyVt8QfTVu2UCz0PGEtELqEF9AE/GTUKnEzXFsQd PvbvUyd2wstkGvF+cFXqHLuxvXN8OAB5aSp61btwIX2JnzS1wSmsRirkK39xvNsL2Myb WRzLngPOD0a0DAj8CtP2LCZyI8Pt0YbTv/LB4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Ff/khfDDRZ5BexZ3UHisOFEpLquWp21Y+zw1ta7Q5H9ulqMqZoQipF6ZLytMbCcDCs C8ocfhwKn2uW6SAsaM4uxBZudcdWq3YM3ELWW8lu8jJtmktNJ+F+LMN+c7sNaKtZCnfI JRjHZ4eag1r59oNoCIHMKNAHjgoiiWZG+IkJY= Original-Received: by 10.223.126.66 with SMTP id b2mr3147035fas.3.1238968799289; Sun, 05 Apr 2009 14:59:59 -0700 (PDT) In-Reply-To: <13654.194.144.135.59.1238962672.squirrel@www.hafro.is> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 05 Apr 2009 18:23:55 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26924 Archived-At: On Sun, Apr 5, 2009 at 10:17 PM, Arni Magnusson 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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 downcase-word-or-region > M-up =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 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).