unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#739: Suggested small functions to plug symmetry gaps
@ 2008-08-19 12:51 Reuben Thomas
  2012-04-11 12:23 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Reuben Thomas @ 2008-08-19 12:51 UTC (permalink / raw)
  To: bug-emacs

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)







^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2012-07-14  2:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 12:51 bug#739: Suggested small functions to plug symmetry gaps Reuben Thomas
2012-04-11 12:23 ` Lars Magne Ingebrigtsen
2012-04-11 13:46   ` Stefan Monnier
2012-04-12 16:06     ` Lars Magne Ingebrigtsen
2012-04-12 16:17       ` Reuben Thomas
2012-04-12 18:19         ` Stefan Monnier
2012-04-12 20:47           ` Reuben Thomas
2012-04-12 21:21             ` Andreas Schwab
2012-04-12 21:27               ` Reuben Thomas
2012-04-13  6:20                 ` Chong Yidong
2012-04-13 18:52               ` Reuben Thomas
2012-04-16 12:52                 ` Stefan Monnier
2012-04-14 11:32           ` Lars Ingebrigtsen
2012-04-16  2:05             ` Stefan Monnier
2012-04-11 16:04   ` Reuben Thomas
2012-04-11 17:57   ` Drew Adams
2012-04-13  6:25   ` Chong Yidong
2012-04-14 11:33     ` Lars Ingebrigtsen
2012-04-14 13:46       ` Drew Adams
2012-07-14  2:17         ` Chong Yidong

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