From 99a46bbce91f9e3585942774fc34e10816c0b5c9 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 15 Aug 2016 09:57:04 +1000 Subject: [PATCH] allow copying lines in read-only files --- lisp/my-editing-defuns.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/my-editing-defuns.el b/lisp/my-editing-defuns.el index 8e8ace2..bf72f94 100644 --- a/lisp/my-editing-defuns.el +++ b/lisp/my-editing-defuns.el @@ -14,7 +14,7 @@ (defun my/copy-line (arg) "Copy the current line into the kill ring. With ARG copies that many lines." - (interactive "*p") + (interactive "p") (kill-ring-save (line-beginning-position 1) (line-beginning-position (+ 1 arg))) (message "Copied %d lines" arg)) -- 2.39.2