From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Is Elisp really that slow? Date: Tue, 25 Jun 2019 18:48:48 +0200 Organization: Thetabiz Corporation Message-ID: <20190625164848.GQ21606@protected.rcdrun.com> References: <838sv6cmwt.fsf@gnu.org> <20190516202327.5cgy2s4kppy3ahxa@Ergus> <871s0yqg2i.fsf@telefonica.net> <3210C8E9-7A74-47D6-81A0-470948E6D09C@gmail.com> <87r28xq0j1.fsf@telefonica.net> <5495188F-7A7D-4E50-82C4-E2CBABD8633D@gmail.com> <20190517060858.xoddgzyudvo4p2oo@Ergus> <20190517092120.GE9018@tuxteam.de> <87imu9p4c1.fsf@telefonica.net> <86r28g400u.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="100867"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 25 18:52:32 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfogI-000Q48-0n for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jun 2019 18:52:30 +0200 Original-Received: from localhost ([::1]:34058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfogH-0001lA-2N for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jun 2019 12:52:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52148) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfodO-0008Q2-Ea for help-gnu-emacs@gnu.org; Tue, 25 Jun 2019 12:49:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfodL-0003bs-E8 for help-gnu-emacs@gnu.org; Tue, 25 Jun 2019 12:49:29 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:34283) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hfodJ-0003CC-9Q for help-gnu-emacs@gnu.org; Tue, 25 Jun 2019 12:49:25 -0400 Original-Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA; Tue, 25 Jun 2019 09:48:49 -0700 id 000000000005DD7E.000000005D125071.00004389 Original-Received: from localhost (protected.rcdrun.com [local]) by protected.rcdrun.com (OpenSMTPD) with ESMTPA id 294427ff for ; Tue, 25 Jun 2019 16:48:48 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86r28g400u.fsf@zoho.eu> X-Mime-Autoconverted: from 8bit to quoted-printable by courier 0.76.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.170.207.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121043 Archived-At: * Emanuel Berg via help-gnu-emacs [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=E2=80=99s function definition is void: sudo-root-path Then I found out that tramp is offering it with C-x C-f /sudo://etc/asoun= d.conf=20