Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bugfix in starter-kit: sudo-edit #148

Merged
merged 1 commit into from

2 participants

@dajva

I assume C-u M-x sudo-edit is the intended usage for selecting another file than the current one.

@dajva dajva Bugfix in starter-kit: sudo-edit
Should use capital "P" as interactive argument here.
0e2d3af
@technomancy technomancy merged commit 31c2465 into technomancy:master
@technomancy
Owner

Good catch; thanks.

@co-dan co-dan referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 7, 2012
  1. @dajva

    Bugfix in starter-kit: sudo-edit

    dajva authored
    Should use capital "P" as interactive argument here.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  starter-kit-defuns.el
View
2  starter-kit-defuns.el
@@ -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))))
Something went wrong with that request. Please try again.