Skip to content

Commit

Permalink
Bugfix in starter-kit: sudo-edit
Browse files Browse the repository at this point in the history
Should use capital "P" as interactive argument here.
  • Loading branch information
David Landell committed Sep 7, 2012
1 parent 853a0f8 commit 0e2d3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starter-kit-defuns.el
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Symbols matching the text at point are put first in the completion list."
(load autoload-file))

(defun sudo-edit (&optional arg)
(interactive "p")
(interactive "P")
(if (or arg (not buffer-file-name))
(find-file (concat "/sudo:root@localhost:" (ido-read-file-name "File: ")))
(find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
Expand Down

0 comments on commit 0e2d3af

Please sign in to comment.