[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#739: Suggested small functions to plug symmetry gaps

From: Lars Magne Ingebrigtsen
Subject: bug#739: Suggested small functions to plug symmetry gaps
Date: Wed, 11 Apr 2012 14:23:37 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)

Reuben Thomas <address@hidden> writes:

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

This doesn't really seem that useful to me.  `C-u 9 <right>' does that

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

This is a good idea, especially in read-only buffers.  What would the
keystroke be, though?  `C-x r c' is already taken...

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]