bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#7503: copy-and-insert-previous-line


From: Leo
Subject: bug#7503: copy-and-insert-previous-line
Date: Sun, 28 Nov 2010 12:56:26 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.5)

On 2010-11-28 11:10 +0000, Andreas Schwab wrote:
> (defun duplicate-previous-line ()
>   (interactive "*")
>   (save-excursion
>     (insert
>      (buffer-substring (progn (forward-line -1) (point))
>                      (progn (forward-line 1) (point))))))

There's also this:

,----[ C-h f copy-from-above-command RET ]
| copy-from-above-command is an interactive autoloaded Lisp function in
| `misc.el'.
| 
| [Arg list not available until function definition is loaded.]
| 
| Not documented.
| 
| [back]
`----

Leo

-- 
Any Emacs contains an ad hoc, informally-specified, bug-ridden, slow
implementation of half of Common Lisp.






reply via email to

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