[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is Elisp really that slow?
From: |
Jean Louis |
Subject: |
Re: Is Elisp really that slow? |
Date: |
Tue, 25 Jun 2019 18:48:48 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
* Emanuel Berg via help-gnu-emacs <help-gnu-emacs@gnu.org> [2019-05-30 14:09]:
> (require 'dired)
> (defun su-edit ()
> "Edit the current buffer file as superuser."
> (interactive)
> (let*((window-start (window-start))
> (point (point))
> (mark (when mark-active (mark)))
> (path (or dired-directory
> (file-truename (buffer-file-name)) ))
> (sudo-path (sudo-root-path path)) )
> (find-alternate-file sudo-path)
> (when mark (set-mark mark))
> (goto-char point)
> (when dired-directory (dired-previous-line 1))
> (set-window-start nil window-start) ; the selected WINDOW
> )) ; [1]
let*: Symbol’s function definition is void: sudo-root-path
Then I found out that tramp is offering it with C-x C-f /sudo://etc/asound.conf
- Re: [offtopic] Re: Is Elisp really that slow?, (continued)
Re: Is Elisp really that slow?, Emanuel Berg, 2019/06/07
Re: Is Elisp really that slow?, Emanuel Berg, 2019/06/07
Re: Is Elisp really that slow?, Emanuel Berg, 2019/06/07
Re: Is Elisp really that slow?, Ergus, 2019/06/11
Re: Is Elisp really that slow?,
Jean Louis <=