all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: bug-emacs@gnu.org
Subject: bug#739: Suggested small functions to plug symmetry gaps
Date: Tue, 19 Aug 2008 13:51:06 +0100 (BST)	[thread overview]
Message-ID: <alpine.DEB.1.00.0808191333010.21819@canta> (raw)

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)







             reply	other threads:[~2008-08-19 12:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 12:51 Reuben Thomas [this message]
2012-04-11 12:23 ` bug#739: Suggested small functions to plug symmetry gaps 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.1.00.0808191333010.21819@canta \
    --to=rrt@sc3d.org \
    --cc=739@emacsbugs.donarmstrong.com \
    --cc=bug-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.