GNU bug report logs - #7503
copy-and-insert-previous-line

Previous Next

Package: emacs;

Reported by: Mads Jensen <mje <at> inducks.org>

Date: Sun, 28 Nov 2010 10:23:01 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mads Jensen <mje <at> inducks.org>
To: bug-gnu-emacs <at> gnu.org
Subject: copy-and-insert-previous-line
Date: Sun, 28 Nov 2010 11:27:53 +0100
[Message part 1 (text/plain, inline)]
I couldn't find a similar macro which did the same trick, so I wrote one
myself:

(defun copy-and-insert-previous-line ()
  (interactive)
  (save-excursion
    (goto-line (1- (line-number-at-pos)))
    (copy-current-line))
  (yank))

It's quite useful for much of the typing I do.
-- 
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 11 years and 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.