[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#739: Suggested small functions to plug symmetry gaps
From: |
Reuben Thomas |
Subject: |
bug#739: Suggested small functions to plug symmetry gaps |
Date: |
Tue, 19 Aug 2008 13:51:06 +0100 (BST) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
Hi,
I have a couple of functions in my ~/.emacs that are useful, tiny, and plug
obvious "symmetry gaps" in the standard functions. They're not even
original; one at least has been discussed on the list before.
For simple.el:
(defun goto-column (n)
"Goto column COLUMN, counting from column 1 at beginning of line."
(interactive "nGoto column: ")
(move-to-column n))
For rect.el:
(defun copy-rectangle-as-kill (start end)
"Copy the region-rectangle and save it as the last killed one."
(interactive "r")
(setq killed-rectangle (extract-rectangle start end)))
goto-column fills an obvious gap left between goto-char and goto-line, while
copy-rectangle-as-kill mirrors copy-region-as-kill (and has been requested
and suggested before on more than one Emacs mailing list).
Is there some reason not to put these functions in Emacs? I'd be happy to
supply the other obvious missing part (documentation for the manual) if that
helped.
--
http://rrt.sc3d.org/ | resolute, a. obstinate in a good cause (Bierce)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#739: Suggested small functions to plug symmetry gaps,
Reuben Thomas <=