From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Arni Magnusson" Newsgroups: gmane.emacs.bugs Subject: bug#2887: Suggestions for simple.el Date: Sat, 4 Apr 2009 23:35:28 -0000 (GMT) Message-ID: <11531.194.144.135.59.1238888128.squirrel@www.hafro.is> References: <26172.194.144.135.59.1238851923.squirrel@www.hafro.is> Reply-To: Arni Magnusson , 2887@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238888649 29062 80.91.229.12 (4 Apr 2009 23:44:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2009 23:44:09 +0000 (UTC) Cc: 2887@emacsbugs.donarmstrong.com To: "Stefan Monnier" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 05 01:45:27 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 1LqFYD-00032Z-Nc for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 01:45:26 +0200 Original-Received: from localhost ([127.0.0.1]:56656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqFWp-0005sd-On for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2009 19:43:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqFWm-0005sM-7X for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:43:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqFWh-0005s0-Fe for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:43:55 -0400 Original-Received: from [199.232.76.173] (port=58800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqFWh-0005rx-8y for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:43:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34786) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LqFWg-00040m-Oe for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:43:51 -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 n34NhlCt015984; Sat, 4 Apr 2009 16:43:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n34Ne4XH014847; Sat, 4 Apr 2009 16:40:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Arni Magnusson" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 04 Apr 2009 23:40:04 +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.123888814114561 (code B ref 2887); Sat, 04 Apr 2009 23:40:04 +0000 Original-Received: (at 2887) by emacsbugs.donarmstrong.com; 4 Apr 2009 23:35:41 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from hafgarpur.hafro.is (hafgarpur.hafro.is [130.208.64.48]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n34NZaRe014547 for <2887@emacsbugs.donarmstrong.com>; Sat, 4 Apr 2009 16:35:38 -0700 X-Virus-Scanned: amavisd-new at hafro.is Original-Received: from hafrun.hafro.is (hafrun.hafro.is [130.208.58.66]) by hafgarpur.hafro.is (8.14.2/8.14.2/hafro-2.45) with ESMTP id n34NZSEH017120; Sat, 4 Apr 2009 23:35:28 GMT Original-Received: from www.hafro.is (localhost [127.0.0.1]) by hafrun.hafro.is (8.14.2/8.14.2/hafro-1.6) with ESMTP id n34NZRmI020577; Sat, 4 Apr 2009 23:35:27 GMT Original-Received: from 194.144.135.59 (SquirrelMail authenticated user arnima) by www.hafro.is with HTTP; Sat, 4 Apr 2009 23:35:28 -0000 (GMT) In-Reply-To: User-Agent: SquirrelMail/1.4.10a X-Priority: 3 (Normal) Importance: Normal X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n34NhlCt015984 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 04 Apr 2009 19:43: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:26912 Archived-At: Thank you, Stefan, for the prompt reply and interest. Please find below m= y list of raisons d'=EAtre. Arni `backward-delete-word' `delete-word' Users can delete words while leaving the kill-ring unchanged. For example= , the user has copied a table from somewhere and is now deleting some words before yanking the table where it belongs. It would be frustrating for th= e user to yank and see recently deleted words instead of the table. `kill-line-or-region' Users can bind C-k to kill lines and regions (do what I mean), as an alternative to the default C-k and C-w setup. `pull-line-down' `pull-line-up' Users can move lines up and down more effectively thank with `transpose-lines'. `pos-at-beginning-of-line' `pos-at-end-of-line' Useful when writing a variety of editing functions. Should be in simple.e= l for the same resons as `line-beginning-position' and `line-end-position' are there. `zap-back-to-char' `zap-up-to-char' Zapping is typically to delete garbage until some important location. The existing `zap-to-char' often deletes the beginning of that important location, an opening brace or the like. `clean-trails' Like `delete-trailing-white', but reports how many lines were cleaned, an= d deletes ^M as well. Many programs and programmers write files with trailing spaces and ^M glyphs. It's nice to be able to clean those and ge= t body count in one keystroke. `delete-all-blank-lines' 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. `delete-indentation-nospace' The `delete-indentation' command is very useful, but it often creates an unwanted space. Users will probably bind this command to a keystroke clos= e to the `delete-indentation' keystroke. `goto-longest-line' Users can find out the maximum width (columns) of a text file, to check the coding style or for some other reason. Sometimes it's easiest to call "wc -L" via `shell-command' or `dired-do-shell-command', but `goto-longest-line' will often be quicker and moves the cursor to the longest line, for closer examination. I remember when I wrote this command I thought about implementing a separate non-interactive function called `longest-line' that would just return the line number. Then `goto-longest-line' would call `longest-line= ' to do the calculations, and other functions might call `longest-line' wit= h some other purpose than moving the cursor to it. I would be happy to contribute a two-function implementation instead, since `longest-line' might be useful for many users. `downcase-word-or-region' `upcase-word-or-region' Users can bind M-l and M-u to downcase/upcase words or regions (do what I mean), as an alternative to the default C-x C-l, C-x C-u, M-l, and M-u setup.