GNU bug report logs -
#76974
31.0.50; [wishlist] Add global key binding for tramp-revert-buffer-with-sudo
Previous Next
Reported by: Michael Albinus <michael.albinus <at> gmx.de>
Date: Wed, 12 Mar 2025 08:29:01 UTC
Severity: wishlist
Found in version 31.0.50
Fixed in version 31.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76974 in the body.
You can then email your comments to 76974 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 08:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 12 Mar 2025 08:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
give it a global key binding 'C-x @'. With this binding, it is more
simple to revert the current buffer to visit with "sudo"
permissions. This is useful for buffers visiting a file, or for dired
buffers.
A further optional, slightly related, change would be to bind '@' in
dired buffers with a function which opens the dired entry via
tramp-file-name-with-sudo. This opens the respective file or directory
with "sudo" permissions, even if the visited dired buffer doesn't have
these permissions.
I haven't assembled a patch yet, because I'd like to get comments first
about the acceptance of such a change.
Best regards, Michael.
In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.43, cairo version 1.18.2) of 2025-02-19 built on gandalf
Repository revision: ec34bccfee68a521e7a98ce8dce9325a146d095b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12401006
System Description: Fedora Linux 41 (Workstation Edition)
Configured using:
'configure --without-tree-sitter'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LIBOTF LIBSELINUX LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8
Major mode: Group
Minor modes in effect:
gnus-undo-mode: t
display-time-mode: t
delete-selection-mode: t
icomplete-mode: t
global-goto-address-mode: t
goto-address-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
minibuffer-regexp-mode: t
buffer-read-only: t
column-number-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
/home/albinus/src/elpa/packages/debbugs/debbugs hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs
/home/albinus/src/elpa/packages/debbugs/debbugs-org hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-org
/home/albinus/src/elpa/packages/debbugs/debbugs-gnu hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-gnu
/home/albinus/src/elpa/packages/debbugs/debbugs-guix hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-guix
/home/albinus/src/elpa/packages/debbugs/debbugs-browse hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-browse
/home/albinus/src/elpa/packages/debbugs/debbugs-pkg hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-pkg
/home/albinus/src/elpa/packages/debbugs/debbugs-autoloads hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-autoloads
/home/albinus/src/elpa/packages/debbugs/debbugs-compat hides /home/albinus/.emacs.d/elpa/debbugs-0.43/debbugs-compat
/home/albinus/.emacs.d/elpa/helm-4.0/helm-packages hides /home/albinus/.emacs.d/elpa/helm-core-4.0/helm-packages
~/lisp/telepathy hides /home/albinus/.emacs.d/elpa/telepathy-20131209.1258/telepathy
/home/albinus/src/elpa/packages/tramp-theme/tramp-theme-autoloads hides /home/albinus/.emacs.d/elpa/tramp-theme-0.2/tramp-theme-autoloads
/home/albinus/src/elpa/packages/tramp-theme/tramp-theme hides /home/albinus/.emacs.d/elpa/tramp-theme-0.2/tramp-theme
/home/albinus/src/elpa/packages/tramp-theme/tramp-theme-pkg hides /home/albinus/.emacs.d/elpa/tramp-theme-0.2/tramp-theme-pkg
/home/albinus/.emacs.d/elpa/hydra-0.15.0/lv hides /home/albinus/.emacs.d/elpa/lv-0.15.0/lv
/home/albinus/.emacs.d/elpa/transient-20241023.1537/transient hides /usr/local/share/emacs/31.0.50/lisp/transient
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-texinfo hides /usr/local/share/emacs/31.0.50/lisp/org/ox-texinfo
/home/albinus/.emacs.d/elpa/org-9.7.14/oc hides /usr/local/share/emacs/31.0.50/lisp/org/oc
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-rmail hides /usr/local/share/emacs/31.0.50/lisp/org/ol-rmail
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-matlab hides /usr/local/share/emacs/31.0.50/lisp/org/ob-matlab
/home/albinus/.emacs.d/elpa/org-9.7.14/org-refile hides /usr/local/share/emacs/31.0.50/lisp/org/org-refile
/home/albinus/.emacs.d/elpa/org-9.7.14/org-habit hides /usr/local/share/emacs/31.0.50/lisp/org/org-habit
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-eshell hides /usr/local/share/emacs/31.0.50/lisp/org/ob-eshell
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-icalendar hides /usr/local/share/emacs/31.0.50/lisp/org/ox-icalendar
/home/albinus/.emacs.d/elpa/org-9.7.14/org-crypt hides /usr/local/share/emacs/31.0.50/lisp/org/org-crypt
/home/albinus/.emacs.d/elpa/org-9.7.14/org-inlinetask hides /usr/local/share/emacs/31.0.50/lisp/org/org-inlinetask
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-sed hides /usr/local/share/emacs/31.0.50/lisp/org/ob-sed
/home/albinus/.emacs.d/elpa/org-9.7.14/org-goto hides /usr/local/share/emacs/31.0.50/lisp/org/org-goto
/home/albinus/.emacs.d/elpa/org-9.7.14/ox hides /usr/local/share/emacs/31.0.50/lisp/org/ox
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-python hides /usr/local/share/emacs/31.0.50/lisp/org/ob-python
/home/albinus/.emacs.d/elpa/org-9.7.14/org-agenda hides /usr/local/share/emacs/31.0.50/lisp/org/org-agenda
/home/albinus/.emacs.d/elpa/org-9.7.14/org-macs hides /usr/local/share/emacs/31.0.50/lisp/org/org-macs
/home/albinus/.emacs.d/elpa/org-9.7.14/org-archive hides /usr/local/share/emacs/31.0.50/lisp/org/org-archive
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-haskell hides /usr/local/share/emacs/31.0.50/lisp/org/ob-haskell
/home/albinus/.emacs.d/elpa/org-9.7.14/org-footnote hides /usr/local/share/emacs/31.0.50/lisp/org/org-footnote
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-md hides /usr/local/share/emacs/31.0.50/lisp/org/ox-md
/home/albinus/.emacs.d/elpa/org-9.7.14/org-src hides /usr/local/share/emacs/31.0.50/lisp/org/org-src
/home/albinus/.emacs.d/elpa/org-9.7.14/org-list hides /usr/local/share/emacs/31.0.50/lisp/org/org-list
/home/albinus/.emacs.d/elpa/org-9.7.14/org-loaddefs hides /usr/local/share/emacs/31.0.50/lisp/org/org-loaddefs
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-R hides /usr/local/share/emacs/31.0.50/lisp/org/ob-R
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-gnus hides /usr/local/share/emacs/31.0.50/lisp/org/ol-gnus
/home/albinus/.emacs.d/elpa/org-9.7.14/ol hides /usr/local/share/emacs/31.0.50/lisp/org/ol
/home/albinus/.emacs.d/elpa/org-9.7.14/org-faces hides /usr/local/share/emacs/31.0.50/lisp/org/org-faces
/home/albinus/.emacs.d/elpa/org-9.7.14/org-datetree hides /usr/local/share/emacs/31.0.50/lisp/org/org-datetree
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-exp hides /usr/local/share/emacs/31.0.50/lisp/org/ob-exp
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-sass hides /usr/local/share/emacs/31.0.50/lisp/org/ob-sass
/home/albinus/.emacs.d/elpa/org-9.7.14/org-element-ast hides /usr/local/share/emacs/31.0.50/lisp/org/org-element-ast
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-processing hides /usr/local/share/emacs/31.0.50/lisp/org/ob-processing
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-beamer hides /usr/local/share/emacs/31.0.50/lisp/org/ox-beamer
/home/albinus/.emacs.d/elpa/org-9.7.14/org-cycle hides /usr/local/share/emacs/31.0.50/lisp/org/org-cycle
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-scheme hides /usr/local/share/emacs/31.0.50/lisp/org/ob-scheme
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-lua hides /usr/local/share/emacs/31.0.50/lisp/org/ob-lua
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-eval hides /usr/local/share/emacs/31.0.50/lisp/org/ob-eval
/home/albinus/.emacs.d/elpa/org-9.7.14/org-persist hides /usr/local/share/emacs/31.0.50/lisp/org/org-persist
/home/albinus/.emacs.d/elpa/org-9.7.14/oc-biblatex hides /usr/local/share/emacs/31.0.50/lisp/org/oc-biblatex
/home/albinus/.emacs.d/elpa/org-9.7.14/oc-basic hides /usr/local/share/emacs/31.0.50/lisp/org/oc-basic
/home/albinus/.emacs.d/elpa/org-9.7.14/org-keys hides /usr/local/share/emacs/31.0.50/lisp/org/org-keys
/home/albinus/.emacs.d/elpa/org-9.7.14/org-attach hides /usr/local/share/emacs/31.0.50/lisp/org/org-attach
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-gnuplot hides /usr/local/share/emacs/31.0.50/lisp/org/ob-gnuplot
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-docview hides /usr/local/share/emacs/31.0.50/lisp/org/ol-docview
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-css hides /usr/local/share/emacs/31.0.50/lisp/org/ob-css
/home/albinus/.emacs.d/elpa/org-9.7.14/org-capture hides /usr/local/share/emacs/31.0.50/lisp/org/org-capture
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-w3m hides /usr/local/share/emacs/31.0.50/lisp/org/ol-w3m
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-julia hides /usr/local/share/emacs/31.0.50/lisp/org/ob-julia
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-makefile hides /usr/local/share/emacs/31.0.50/lisp/org/ob-makefile
/home/albinus/.emacs.d/elpa/org-9.7.14/org-mouse hides /usr/local/share/emacs/31.0.50/lisp/org/org-mouse
/home/albinus/.emacs.d/elpa/org-9.7.14/org-pcomplete hides /usr/local/share/emacs/31.0.50/lisp/org/org-pcomplete
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-sql hides /usr/local/share/emacs/31.0.50/lisp/org/ob-sql
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-mhe hides /usr/local/share/emacs/31.0.50/lisp/org/ol-mhe
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-doi hides /usr/local/share/emacs/31.0.50/lisp/org/ol-doi
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-fortran hides /usr/local/share/emacs/31.0.50/lisp/org/ob-fortran
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-calc hides /usr/local/share/emacs/31.0.50/lisp/org/ob-calc
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-awk hides /usr/local/share/emacs/31.0.50/lisp/org/ob-awk
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-odt hides /usr/local/share/emacs/31.0.50/lisp/org/ox-odt
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-lilypond hides /usr/local/share/emacs/31.0.50/lisp/org/ob-lilypond
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-groovy hides /usr/local/share/emacs/31.0.50/lisp/org/ob-groovy
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-org hides /usr/local/share/emacs/31.0.50/lisp/org/ob-org
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-ruby hides /usr/local/share/emacs/31.0.50/lisp/org/ob-ruby
/home/albinus/.emacs.d/elpa/org-9.7.14/org-plot hides /usr/local/share/emacs/31.0.50/lisp/org/org-plot
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-ref hides /usr/local/share/emacs/31.0.50/lisp/org/ob-ref
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-forth hides /usr/local/share/emacs/31.0.50/lisp/org/ob-forth
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-emacs-lisp hides /usr/local/share/emacs/31.0.50/lisp/org/ob-emacs-lisp
/home/albinus/.emacs.d/elpa/org-9.7.14/org-indent hides /usr/local/share/emacs/31.0.50/lisp/org/org-indent
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-ascii hides /usr/local/share/emacs/31.0.50/lisp/org/ox-ascii
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-table hides /usr/local/share/emacs/31.0.50/lisp/org/ob-table
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-core hides /usr/local/share/emacs/31.0.50/lisp/org/ob-core
/home/albinus/.emacs.d/elpa/org-9.7.14/oc-csl hides /usr/local/share/emacs/31.0.50/lisp/org/oc-csl
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-koma-letter hides /usr/local/share/emacs/31.0.50/lisp/org/ox-koma-letter
/home/albinus/.emacs.d/elpa/org-9.7.14/org-fold-core hides /usr/local/share/emacs/31.0.50/lisp/org/org-fold-core
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-shell hides /usr/local/share/emacs/31.0.50/lisp/org/ob-shell
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-bibtex hides /usr/local/share/emacs/31.0.50/lisp/org/ol-bibtex
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-java hides /usr/local/share/emacs/31.0.50/lisp/org/ob-java
/home/albinus/.emacs.d/elpa/org-9.7.14/org-attach-git hides /usr/local/share/emacs/31.0.50/lisp/org/org-attach-git
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-info hides /usr/local/share/emacs/31.0.50/lisp/org/ol-info
/home/albinus/.emacs.d/elpa/org-9.7.14/org-macro hides /usr/local/share/emacs/31.0.50/lisp/org/org-macro
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-man hides /usr/local/share/emacs/31.0.50/lisp/org/ox-man
/home/albinus/.emacs.d/elpa/org-9.7.14/org-tempo hides /usr/local/share/emacs/31.0.50/lisp/org/org-tempo
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-sqlite hides /usr/local/share/emacs/31.0.50/lisp/org/ob-sqlite
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-lisp hides /usr/local/share/emacs/31.0.50/lisp/org/ob-lisp
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-lob hides /usr/local/share/emacs/31.0.50/lisp/org/ob-lob
/home/albinus/.emacs.d/elpa/org-9.7.14/oc-natbib hides /usr/local/share/emacs/31.0.50/lisp/org/oc-natbib
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-screen hides /usr/local/share/emacs/31.0.50/lisp/org/ob-screen
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-bbdb hides /usr/local/share/emacs/31.0.50/lisp/org/ol-bbdb
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-comint hides /usr/local/share/emacs/31.0.50/lisp/org/ob-comint
/home/albinus/.emacs.d/elpa/org-9.7.14/org-timer hides /usr/local/share/emacs/31.0.50/lisp/org/org-timer
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-ditaa hides /usr/local/share/emacs/31.0.50/lisp/org/ob-ditaa
/home/albinus/.emacs.d/elpa/org-9.7.14/org-ctags hides /usr/local/share/emacs/31.0.50/lisp/org/org-ctags
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-publish hides /usr/local/share/emacs/31.0.50/lisp/org/ox-publish
/home/albinus/.emacs.d/elpa/org-9.7.14/org-clock hides /usr/local/share/emacs/31.0.50/lisp/org/org-clock
/home/albinus/.emacs.d/elpa/org-9.7.14/org-feed hides /usr/local/share/emacs/31.0.50/lisp/org/org-feed
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-html hides /usr/local/share/emacs/31.0.50/lisp/org/ox-html
/home/albinus/.emacs.d/elpa/org-9.7.14/ob hides /usr/local/share/emacs/31.0.50/lisp/org/ob
/home/albinus/.emacs.d/elpa/org-9.7.14/org-lint hides /usr/local/share/emacs/31.0.50/lisp/org/org-lint
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-maxima hides /usr/local/share/emacs/31.0.50/lisp/org/ob-maxima
/home/albinus/.emacs.d/elpa/org-9.7.14/org-fold hides /usr/local/share/emacs/31.0.50/lisp/org/org-fold
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-latex hides /usr/local/share/emacs/31.0.50/lisp/org/ob-latex
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-man hides /usr/local/share/emacs/31.0.50/lisp/org/ol-man
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-latex hides /usr/local/share/emacs/31.0.50/lisp/org/ox-latex
/home/albinus/.emacs.d/elpa/org-9.7.14/org-element hides /usr/local/share/emacs/31.0.50/lisp/org/org-element
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-dot hides /usr/local/share/emacs/31.0.50/lisp/org/ob-dot
/home/albinus/.emacs.d/elpa/org-9.7.14/oc-bibtex hides /usr/local/share/emacs/31.0.50/lisp/org/oc-bibtex
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-eshell hides /usr/local/share/emacs/31.0.50/lisp/org/ol-eshell
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-perl hides /usr/local/share/emacs/31.0.50/lisp/org/ob-perl
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-ocaml hides /usr/local/share/emacs/31.0.50/lisp/org/ob-ocaml
/home/albinus/.emacs.d/elpa/org-9.7.14/org-duration hides /usr/local/share/emacs/31.0.50/lisp/org/org-duration
/home/albinus/.emacs.d/elpa/org-9.7.14/ox-org hides /usr/local/share/emacs/31.0.50/lisp/org/ox-org
/home/albinus/.emacs.d/elpa/org-9.7.14/org-protocol hides /usr/local/share/emacs/31.0.50/lisp/org/org-protocol
/home/albinus/.emacs.d/elpa/org-9.7.14/org-num hides /usr/local/share/emacs/31.0.50/lisp/org/org-num
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-plantuml hides /usr/local/share/emacs/31.0.50/lisp/org/ob-plantuml
/home/albinus/.emacs.d/elpa/org-9.7.14/org-compat hides /usr/local/share/emacs/31.0.50/lisp/org/org-compat
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-clojure hides /usr/local/share/emacs/31.0.50/lisp/org/ob-clojure
/home/albinus/.emacs.d/elpa/org-9.7.14/org-table hides /usr/local/share/emacs/31.0.50/lisp/org/org-table
/home/albinus/.emacs.d/elpa/org-9.7.14/org-mobile hides /usr/local/share/emacs/31.0.50/lisp/org/org-mobile
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-C hides /usr/local/share/emacs/31.0.50/lisp/org/ob-C
/home/albinus/.emacs.d/elpa/org-9.7.14/org hides /usr/local/share/emacs/31.0.50/lisp/org/org
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-tangle hides /usr/local/share/emacs/31.0.50/lisp/org/ob-tangle
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-js hides /usr/local/share/emacs/31.0.50/lisp/org/ob-js
/home/albinus/.emacs.d/elpa/org-9.7.14/org-version hides /usr/local/share/emacs/31.0.50/lisp/org/org-version
/home/albinus/.emacs.d/elpa/org-9.7.14/org-colview hides /usr/local/share/emacs/31.0.50/lisp/org/org-colview
/home/albinus/.emacs.d/elpa/org-9.7.14/org-entities hides /usr/local/share/emacs/31.0.50/lisp/org/org-entities
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-eww hides /usr/local/share/emacs/31.0.50/lisp/org/ol-eww
/home/albinus/.emacs.d/elpa/org-9.7.14/org-id hides /usr/local/share/emacs/31.0.50/lisp/org/org-id
/home/albinus/.emacs.d/elpa/org-9.7.14/ol-irc hides /usr/local/share/emacs/31.0.50/lisp/org/ol-irc
/home/albinus/.emacs.d/elpa/org-9.7.14/ob-octave hides /usr/local/share/emacs/31.0.50/lisp/org/ob-octave
~/lisp/dbus hides /usr/local/share/emacs/31.0.50/lisp/net/dbus
/home/albinus/src/tramp/lisp/tramp-sh hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-sh
/home/albinus/src/tramp/lisp/tramp-fuse hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-fuse
/home/albinus/src/tramp/lisp/tramp-androidsu hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-androidsu
/home/albinus/src/tramp/lisp/tramp-loaddefs hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-loaddefs
/home/albinus/src/tramp/lisp/tramp-ftp hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-ftp
/home/albinus/src/tramp/lisp/tramp hides /usr/local/share/emacs/31.0.50/lisp/net/tramp
/home/albinus/src/tramp/lisp/tramp-cache hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-cache
/home/albinus/src/tramp/lisp/tramp-uu hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-uu
/home/albinus/src/tramp/lisp/tramp-rclone hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-rclone
/home/albinus/src/tramp/lisp/tramp-integration hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-integration
/home/albinus/src/tramp/lisp/tramp-archive hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-archive
/home/albinus/src/tramp/lisp/tramp-adb hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-adb
/home/albinus/src/tramp/lisp/tramp-cmds hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-cmds
/home/albinus/src/tramp/lisp/tramp-compat hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-compat
/home/albinus/src/tramp/lisp/tramp-sudoedit hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-sudoedit
/home/albinus/src/tramp/lisp/tramp-container hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-container
/home/albinus/src/tramp/lisp/tramp-gvfs hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-gvfs
/home/albinus/src/tramp/lisp/tramp-crypt hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-crypt
/home/albinus/src/tramp/lisp/tramp-message hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-message
/home/albinus/src/tramp/lisp/tramp-smb hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-smb
/home/albinus/src/tramp/lisp/trampver hides /usr/local/share/emacs/31.0.50/lisp/net/trampver
/home/albinus/src/tramp/lisp/tramp-sshfs hides /usr/local/share/emacs/31.0.50/lisp/net/tramp-sshfs
/home/albinus/.emacs.d/elpa/faceup-20170925.1946/faceup hides /usr/local/share/emacs/31.0.50/lisp/emacs-lisp/faceup
/home/albinus/.emacs.d/elpa/idlwave-6.5.1/idlwave hides /usr/local/share/emacs/31.0.50/lisp/obsolete/idlwave
/home/albinus/.emacs.d/elpa/idlwave-6.5.1/idlw-shell hides /usr/local/share/emacs/31.0.50/lisp/obsolete/idlw-shell
/home/albinus/.emacs.d/elpa/idlwave-6.5.1/idlw-toolbar hides /usr/local/share/emacs/31.0.50/lisp/obsolete/idlw-toolbar
/home/albinus/.emacs.d/elpa/idlwave-6.5.1/idlw-complete-structtag hides /usr/local/share/emacs/31.0.50/lisp/obsolete/idlw-complete-structtag
/home/albinus/.emacs.d/elpa/idlwave-6.5.1/idlw-help hides /usr/local/share/emacs/31.0.50/lisp/obsolete/idlw-help
Features:
(shadow emacsbug tramp-cmds cl-print debug backtrace texinfo
texinfo-loaddefs vc-annotate autoconf autoconf-mode tabify imenu man
make-mode tramp-cache shortdoc lisp-mnt nndoc gnus-dup crm autorevert
help-fns radix-tree display-line-numbers debbugs-gnu debbugs soap-client
warnings rng-xsd rng-dt rng-util xsd-regexp debbugs-compat compface
url-http url-gw url-auth url-cache pulse find-dired xref project grep
dired-aux ediff-vers ediff ediff-merg ediff-mult ediff-wind ediff-diff
ediff-help ediff-init ediff-util emacs-news-mode vc-hg vc-bzr vc-src
vc-sccs vc-svn vc-cvs vc-rcs log-view log-edit add-log pcvs-util vc-dir
ewoc gnus-fun smerge-mode diff flow-fill mailalias time-stamp misearch
multi-isearch vc-git diff-mode track-changes easy-mmode oc-basic
org-element org-persist org-id org-element-ast inline avl-tree generator
ol-eww eww vtable mule-util url-queue mm-url ol-rmail ol-mhe ol-irc
ol-info ol-gnus nnselect ol-docview doc-view filenotify image-mode exif
ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi gnus-icalendar
org-capture org-refile org org-macro org-pcomplete org-list org-footnote
org-faces org-entities noutline outline ob-emacs-lisp org-table
org-loaddefs find-func icalendar diary-lib diary-loaddefs cal-menu
calendar cal-loaddefs shr-color color mm-archive cl-extra sort smiley
textsec uni-scripts idna-mapping ucs-normalize uni-confusable
textsec-check gnus-bcklg gnus-cite mail-extr gnus-async gnus-ml
debbugs-browse bug-reference disp-table qp pop3 utf-7 nndraft nnmh
network-stream nsm nnml gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls
dig gnus-cache gnus-sum shr pixel-fill kinsoku url-file svg dom nnnil
nntp gnus-group gnus-undo smtpmail gnus-start gnus-dbus dbus xml
gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int
gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa
derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader
gnus-win gnus nnheader gnus-util mail-utils range mm-util mail-prsvr
compile text-property-search comp-run comp-common face-remap ob-shell ob
ob-tangle ol org-src sh-script smie treesit executable ob-ref ob-lob
ob-table ob-exp ob-comint ob-core org-cycle org-fold org-fold-core
ob-eval org-keys oc org-compat org-version org-macs vc vc-dispatcher
time tramp-sh kubed-tramp kubed-common lxc-tramp lxd-tramp tramp
trampver tramp-integration files-x tramp-message help-mode tramp-compat
shell pcomplete comint ansi-osc ring parse-time iso8601 time-date
format-spec ansi-color tramp-loaddefs rx delsel ido jka-compr icomplete
cus-edit pp cus-load wid-edit dired dired-loaddefs goto-addr thingatpt
alert-autoloads android-mode-autoloads auth-source-gopass-autoloads
auth-source-keytar-autoloads auth-source-kwallet-autoloads
auth-source-xoauth2-autoloads auto-sudoedit-autoloads
auto-virtualenv-autoloads auto-virtualenvwrapper-autoloads
boxquote-autoloads bug-hunter-autoloads clang-format-autoloads
company-shell-autoloads company-autoloads counsel-toki-autoloads
counsel-tramp-autoloads counsel-autoloads bui-autoloads
dbus-codegen-autoloads debbugs-autoloads dired-du-autoloads
dired-rsync-autoloads dired-toggle-sudo-autoloads direnv-autoloads
disk-usage-autoloads dockerfile-mode-autoloads drepl-autoloads
comint-mime-autoloads editorconfig-charset-extras-autoloads
editorconfig-custom-majormode-autoloads
editorconfig-domain-specific-autoloads editorconfig-generate-autoloads
ednc-autoloads el-get-autoloads envrc-autoloads
etc-sudoers-mode-autoloads exec-path-from-shell-autoloads
faceup-autoloads fontaine-autoloads forge-autoloads closql-autoloads
emacsql-autoloads friendly-tramp-path-autoloads fzf-autoloads
ggtags-autoloads ghub-autoloads gited-autoloads
gitlab-ci-mode-flycheck-autoloads gitlab-ci-mode-autoloads
flycheck-autoloads gntp-autoloads helm-gitlab-autoloads
helm-projectile-autoloads helm-autoloads helm-core-autoloads
async-autoloads ibuffer-tramp-autoloads idlwave-autoloads
incus-tramp-autoloads inheritenv-autoloads ivy-gitlab-autoloads
gitlab-autoloads journalctl-mode-autoloads keepass-mode-autoloads
keytar-autoloads kubed-autoloads kubernetes-autoloads log4e-autoloads
lsp-docker-autoloads lsp-latex-autoloads consult-autoloads
lsp-mode-autoloads f-autoloads lxc-tramp-autoloads lxd-tramp-autoloads
magit-filenotify-autoloads magit-autoloads pcase magit-popup-autoloads
magit-section-autoloads marcopolo-autoloads mastodon-autoloads
nexus-autoloads oauth2-autoloads ob-restclient-autoloads
orderless-autoloads org-autoloads password-menu-autoloads
password-store-menu-autoloads password-store-otp-autoloads
password-store-autoloads persist-autoloads pkg-info-autoloads
epl-autoloads popup-autoloads projectile-autoloads promise-autoloads
pylint-autoloads python-environment-autoloads deferred-autoloads
pyvenv-autoloads recentf-remove-sudo-tramp-prefix-autoloads
request-autoloads restclient-test-autoloads restclient-autoloads
s3ed-autoloads shell-maker-autoloads slime-autoloads macrostep-autoloads
spinner-autoloads ssh-deploy-autoloads su-autoloads sudo-edit-autoloads
sudo-ext-autoloads sudo-utils-autoloads swiper-autoloads ivy-autoloads
sx-autoloads markdown-mode-autoloads syslog-mode-autoloads
hsluv-autoloads ov-autoloads hide-lines-autoloads telepathy-autoloads
totp-autoloads totp-auth-autoloads base32-autoloads tp-autoloads
tramp-nspawn-autoloads tramp-theme-autoloads transient-dwim-autoloads
transient-autoloads finder-inf ht-autoloads pfuture-autoloads
ace-window-autoloads avy-autoloads treepy-autoloads uuid-autoloads
vdiff-autoloads hydra-autoloads lv-autoloads vertico-autoloads
virtualenv-autoloads virtualenvwrapper-autoloads s-autoloads
dash-autoloads web-server-autoloads wfnames-autoloads info
with-editor-autoloads xr-autoloads yaml-autoloads yaml-mode-autoloads
package browse-url xdg url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons
password-cache json subr-x map byte-opt gv bytecomp byte-compile
url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process
tty-child-frames native-compile emacs)
Memory information:
((conses 16 1195297 307474)
(symbols 48 39115 1)
(strings 32 156778 17070)
(string-bytes 1 5619149)
(vectors 16 92166)
(vector-slots 8 2019557 148100)
(floats 8 707 24357)
(intervals 56 111412 9368)
(buffers 984 120))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 08:51:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76974 <at> debbugs.gnu.org (full text, mbox):
On Wed, 12 Mar 2025 09:27:50 +0100 Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> wrote:
> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
> give it a global key binding 'C-x @'. With this binding, it is more
> simple to revert the current buffer to visit with "sudo"
> permissions. This is useful for buffers visiting a file, or for dired
> buffers.
`C-x @' is the prefix for the `event-apply-*-modifier' functions in the
globally accessible function-key-map.
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 08:52:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 09:20:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
Hi Steve,
>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
>> give it a global key binding 'C-x @'. With this binding, it is more
>> simple to revert the current buffer to visit with "sudo"
>> permissions. This is useful for buffers visiting a file, or for dired
>> buffers.
>
> `C-x @' is the prefix for the `event-apply-*-modifier' functions in the
> globally accessible function-key-map.
That's unfortune. What about 'C-x |'? Worse mnemonic, but it is related
to Tramp's multi-hop syntax.
> Steve Berman
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 09:29:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 76974 <at> debbugs.gnu.org (full text, mbox):
On Wed, 12 Mar 2025 10:14:27 +0100 Michael Albinus <michael.albinus <at> gmx.de> wrote:
> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
> Hi Steve,
>
>>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
>>> give it a global key binding 'C-x @'. With this binding, it is more
>>> simple to revert the current buffer to visit with "sudo"
>>> permissions. This is useful for buffers visiting a file, or for dired
>>> buffers.
>>
>> `C-x @' is the prefix for the `event-apply-*-modifier' functions in the
>> globally accessible function-key-map.
>
> That's unfortune. What about 'C-x |'? Worse mnemonic, but it is related
> to Tramp's multi-hop syntax.
`C-x |' is globally unbound AFAICS. Another available key combination
is `C-c @', unless '@' counts as a letter (info "(elisp) Key Binding
Conventions"). (On e.g. German keyboards '|' and '@' are not the easiest
keys to type, but that's probably not a decisive criterion.)
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 09:38:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
Hi Steve,
>>>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
>>>> give it a global key binding 'C-x @'. With this binding, it is more
>>>> simple to revert the current buffer to visit with "sudo"
>>>> permissions. This is useful for buffers visiting a file, or for dired
>>>> buffers.
>>>
>>> `C-x @' is the prefix for the `event-apply-*-modifier' functions in the
>>> globally accessible function-key-map.
>>
>> That's unfortune. What about 'C-x |'? Worse mnemonic, but it is related
>> to Tramp's multi-hop syntax.
>
> `C-x |' is globally unbound AFAICS. Another available key combination
> is `C-c @', unless '@' counts as a letter (info "(elisp) Key Binding
> Conventions"). (On e.g. German keyboards '|' and '@' are not the easiest
> keys to type, but that's probably not a decisive criterion.)
I'm open to any alternative. I've proposed the 'C-x' keymap due to its
similarity to 'C-x C-f', 'C-x C-v' and 'C-x d'.
> Steve Berman
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 09:44:02 GMT)
Full text and
rfc822 format available.
Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):
On March 12, 2025 1:50:43 AM PDT, "Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> wrote:
>On Wed, 12 Mar 2025 09:27:50 +0100 Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> wrote:
>
>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
>> give it a global key binding 'C-x @'. With this binding, it is more
>> simple to revert the current buffer to visit with "sudo"
>> permissions. This is useful for buffers visiting a file, or for dired
>> buffers.
>
>`C-x @' is the prefix for the `event-apply-*-modifier' functions in the
>globally accessible function-key-map.
This prefix binding is sitting on some pretty valuable real estate --- not as valuable as C-o, granted, but still. Is the modifier prefix feature justifying its squatting on this binding? I don't think I've ever used it on purpose, and keyboards with missing essential modifiers are a rarity. Seems like a niche feature to enable with a mode or something.
That said, does the sudo feature (which is great and sorely needed) need such a prominent keybinding? Might M-x sudo be sufficient? People type s u d o in the terminal all the time.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 09:44:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 09:59:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 76974 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Wed, 12 Mar 2025 02:43:18 -0700, Daniel Colascione <dancol <at> dancol.org> said:
Daniel> On March 12, 2025 1:50:43 AM PDT, "Stephen Berman via Bug reports for
Daniel> GNU Emacs, the Swiss army knife of text editors"
Daniel> <bug-gnu-emacs <at> gnu.org> wrote:
>> On Wed, 12 Mar 2025 09:27:50 +0100 Michael Albinus via "Bug reports
>> for GNU Emacs, the Swiss army knife of text editors"
>> <bug-gnu-emacs <at> gnu.org> wrote:
>>
>>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
>>> give it a global key binding 'C-x @'. With this binding, it is more
>>> simple to revert the current buffer to visit with "sudo"
>>> permissions. This is useful for buffers visiting a file, or for dired
>>> buffers.
>>
>> `C-x @' is the prefix for the `event-apply-*-modifier' functions in the
>> globally accessible function-key-map.
Daniel> This prefix binding is sitting on some pretty valuable real estate ---
Daniel> not as valuable as C-o, granted, but still. Is the modifier prefix
Daniel> feature justifying its squatting on this binding? I don't think I've
Daniel> ever used it on purpose, and keyboards with missing essential
Daniel> modifiers are a rarity. Seems like a niche feature to enable with a
Daniel> mode or something.
Itʼs one of those things that are useless until you need it, and then
you *really* need it 🙂
Daniel> That said, does the sudo feature (which is great and sorely needed)
Daniel> need such a prominent keybinding? Might M-x sudo be sufficient? People
Daniel> type s u d o in the terminal all the time.
How about "C-u C-u M-x revert-buffer", and then people can choose
their own key binding? Sticking it on "C-x @" or "C-x |" seems like
overkill.
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 10:47:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
Hi Robert,
> How about "C-u C-u M-x revert-buffer", and then people can choose
> their own key binding? Sticking it on "C-x @" or "C-x |" seems like
> overkill.
'C-u C-u M-x revert-buffer' doesn't sound like a benefit, compared with
'M-x tramp-rev TAB'.
But revert-buffer is a good hint. We have already the 'C-x x g'
binding. How about to bind 'C-x x @' to tramp-revert-buffer-with-sudo?
The ctl-x-x-map collects already some less frequently used buffer
commands.
> Robert
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 11:00:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 76974 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Wed, 12 Mar 2025 11:46:26 +0100, Michael Albinus <michael.albinus <at> gmx.de> said:
Michael> Robert Pluim <rpluim <at> gmail.com> writes:
Michael> Hi Robert,
>> How about "C-u C-u M-x revert-buffer", and then people can choose
>> their own key binding? Sticking it on "C-x @" or "C-x |" seems like
>> overkill.
Michael> 'C-u C-u M-x revert-buffer' doesn't sound like a benefit, compared with
Michael> 'M-x tramp-rev TAB'.
In my setup is would be "C-u C-u s-u", since I bind "s-u" to `revert-buffer'.
Michael> But revert-buffer is a good hint. We have already the 'C-x x g'
Michael> binding. How about to bind 'C-x x @' to tramp-revert-buffer-with-sudo?
Michael> The ctl-x-x-map collects already some less frequently used buffer
Michael> commands.
I like this suggestion. Although for non-US keyboards maybe "C-x x s"
would be easier to type?
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 11:07:01 GMT)
Full text and
rfc822 format available.
Message #38 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
Hi Robert,
> Michael> But revert-buffer is a good hint. We have already the 'C-x x g'
> Michael> binding. How about to bind 'C-x x @' to tramp-revert-buffer-with-sudo?
> Michael> The ctl-x-x-map collects already some less frequently used buffer
> Michael> commands.
>
> I like this suggestion. Although for non-US keyboards maybe "C-x x s"
> would be easier to type?
Well, I use a German keyboard as well. Typing '@' isn't a pain, because it
happens so often; my finger muscles are trained. But I don't insist on
my preference. Majority of users will decide.
And there is still my proposal to bind '@' in dired. Similar key
bindings are a benefit.
> Robert
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 11:51:01 GMT)
Full text and
rfc822 format available.
Message #41 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Hello,
Yes, when I saw this my first thought was the C-x x keymap. I think
using one of TRAMP's commonly-used characters would be good, so:
C-x x @
or C-x x :
or C-x x |
or C-x x /
I would suggest avoiding '|' because we might want to use it later for
something pipe-related.
We would want it to be easy to customise this for specific systems so
that the new binding always gets you root access, on systems that use
doas or su instead of sudo.
I see that there is already tramp-file-name-with-method for configuring
this.
Have you considered renaming the command to something like
tramp-revert-buffer-obtain-root ? Adding a global binding seems like a
nice opportunity for a rename.
--
Sean Whitton
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 11:52:02 GMT)
Full text and
rfc822 format available.
Message #44 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Hello,
On Wed 12 Mar 2025 at 07:49pm +08, Sean Whitton wrote:
> Have you considered renaming the command to something like
> tramp-revert-buffer-obtain-root ? Adding a global binding seems like a
> nice opportunity for a rename.
... which suggests C-x x # as root's shell prompt character on many systems.
--
Sean Whitton
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 12:18:02 GMT)
Full text and
rfc822 format available.
Message #47 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Sean Whitton <spwhitton <at> spwhitton.name> writes:
> Hello,
Hi Sean,
> Yes, when I saw this my first thought was the C-x x keymap. I think
> using one of TRAMP's commonly-used characters would be good, so:
>
> C-x x @
> or C-x x :
> or C-x x |
> or C-x x /
>
> I would suggest avoiding '|' because we might want to use it later for
> something pipe-related.
Welcome to our funny bikeshedding :-)
'@' is already used for indication of remoteness, see mode-line-remote.
And again, I prefer to use the same key in ctl-x-x-map and dired-mode-map.
> We would want it to be easy to customise this for specific systems so
> that the new binding always gets you root access, on systems that use
> doas or su instead of sudo.
> I see that there is already tramp-file-name-with-method for configuring
> this.
Yes. This must be improved, I guess.
> Have you considered renaming the command to something like
> tramp-revert-buffer-obtain-root ? Adding a global binding seems like a
> nice opportunity for a rename.
Yes, I did. Neither tramp-revert-buffer-with-sudo nor
tramp-revert-buffer-obtain-root are a perfect name. We don't know for
sure, that the method will be "sudo", nor that the user will be
"root". On my QNAP NAS, the root user is called "admin".
And using a Tramp specific name for a global bound command doesn't seem
to be proper as well.
I was thinking to introduce a new command
'revert-buffer-<something-better-than-sudo-or-root>', which will be an
alias of tramp-revert-buffer-with-sudo. But I'm bad with proper names.
This is a minor issue; we can find the best command name as long as
Emacs 31 is under development.
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 13:14:02 GMT)
Full text and
rfc822 format available.
Message #50 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Hello,
On Wed 12 Mar 2025 at 01:16pm +01, Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
> Welcome to our funny bikeshedding :-)
>
> '@' is already used for indication of remoteness, see mode-line-remote.
> And again, I prefer to use the same key in ctl-x-x-map and dired-mode-map.
Yeah, "@" seems most natural.
> Yes, I did. Neither tramp-revert-buffer-with-sudo nor
> tramp-revert-buffer-obtain-root are a perfect name. We don't know for
> sure, that the method will be "sudo", nor that the user will be
> "root". On my QNAP NAS, the root user is called "admin".
But "gain root" as a verb has the same meaning, even if the root user is
not named "root".
> And using a Tramp specific name for a global bound command doesn't
> seem to be proper as well.
I don't think that's a problem, myself.
Keeping "tramp-" might be helpful documentation.
--
Sean Whitton
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 13:43:02 GMT)
Full text and
rfc822 format available.
Message #53 received at 76974 <at> debbugs.gnu.org (full text, mbox):
[புதன் மார்ச் 12, 2025] Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
> [...]
> Another available key combination is `C-c @', unless '@' counts as a
> letter (info "(elisp) Key Binding Conventions"). (On e.g. German
> keyboards '|' and '@' are not the easiest keys to type, but that's
> probably not a decisive criterion.)
C-c @ is used as a prefix by outline-minor-mode (and hs-minor-mode
IIRC).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 14:22:02 GMT)
Full text and
rfc822 format available.
Message #56 received at 76974 <at> debbugs.gnu.org (full text, mbox):
On 12/03/2025 13:16 +0100, Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
> Yes, I did. Neither tramp-revert-buffer-with-sudo nor
> tramp-revert-buffer-obtain-root are a perfect name. We don't know for
> sure, that the method will be "sudo", nor that the user will be
> "root". On my QNAP NAS, the root user is called "admin".
>
> And using a Tramp specific name for a global bound command doesn't seem
> to be proper as well.
>
> I was thinking to introduce a new command
> 'revert-buffer-<something-better-than-sudo-or-root>', which will be an
> alias of tramp-revert-buffer-with-sudo. But I'm bad with proper names.
Maybe revert-buffer-as-superuser?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 14:23:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Wed, 12 Mar 2025 16:28:02 GMT)
Full text and
rfc822 format available.
Message #62 received at 76974 <at> debbugs.gnu.org (full text, mbox):
On 2025-03-12 05:58, Robert Pluim wrote:
>>>>>> On Wed, 12 Mar 2025 02:43:18 -0700, Daniel Colascione
>>>>>> <dancol <at> dancol.org> said:
>
> Daniel> On March 12, 2025 1:50:43 AM PDT, "Stephen Berman via Bug
> reports for
> Daniel> GNU Emacs, the Swiss army knife of text editors"
> Daniel> <bug-gnu-emacs <at> gnu.org> wrote:
> >> On Wed, 12 Mar 2025 09:27:50 +0100 Michael Albinus via "Bug
> reports
> >> for GNU Emacs, the Swiss army knife of text editors"
> >> <bug-gnu-emacs <at> gnu.org> wrote:
> >>
> >>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I
> propose to
> >>> give it a global key binding 'C-x @'. With this binding, it is
> more
> >>> simple to revert the current buffer to visit with "sudo"
> >>> permissions. This is useful for buffers visiting a file, or for
> dired
> >>> buffers.
> >>
> >> `C-x @' is the prefix for the `event-apply-*-modifier' functions
> in the
> >> globally accessible function-key-map.
>
>
> Daniel> This prefix binding is sitting on some pretty valuable real
> estate ---
> Daniel> not as valuable as C-o, granted, but still. Is the modifier
> prefix
> Daniel> feature justifying its squatting on this binding? I don't
> think I've
> Daniel> ever used it on purpose, and keyboards with missing
> essential
> Daniel> modifiers are a rarity. Seems like a niche feature to
> enable with a
> Daniel> mode or something.
>
> Itʼs one of those things that are useless until you need it, and then
> you *really* need it 🙂
>
> Daniel> That said, does the sudo feature (which is great and sorely
> needed)
> Daniel> need such a prominent keybinding? Might M-x sudo be
> sufficient? People
> Daniel> type s u d o in the terminal all the time.
>
> How about "C-u C-u M-x revert-buffer", and then people can choose
> their own key binding? Sticking it on "C-x @" or "C-x |" seems like
> overkill.
FWIW, I'm not a fan of this "tap C-u seventeen times while hopping on
one leg
under the full moon" UI paradigm that parts of the system have. C-u
C-SPC isn't
great either. I'd hope we could move more towards named commands and
less universal
prefix as a generic identifier that means different things in different
contexts.
I'd also find M-x s u d o a lot more convenient than C-u C-u M-x [...].
Not every
possible command needs a keybinding.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Fri, 14 Mar 2025 15:42:02 GMT)
Full text and
rfc822 format available.
Message #65 received at submit <at> debbugs.gnu.org (full text, mbox):
Version: 31.1
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:
Hi everybody,
>> Yes, I did. Neither tramp-revert-buffer-with-sudo nor
>> tramp-revert-buffer-obtain-root are a perfect name. We don't know for
>> sure, that the method will be "sudo", nor that the user will be
>> "root". On my QNAP NAS, the root user is called "admin".
>>
>> And using a Tramp specific name for a global bound command doesn't seem
>> to be proper as well.
>>
>> I was thinking to introduce a new command
>> 'revert-buffer-<something-better-than-sudo-or-root>', which will be an
>> alias of tramp-revert-buffer-with-sudo. But I'm bad with proper names.
>
> Maybe revert-buffer-as-superuser?
There is general agreement on this feature. So I've pushed a patch to the
master branch:
- Add key binding 'C-x x @' to tramp-revert-buffer-with-sudo.
- New command tramp-dired-find-file-with-sudo, bound to '@' in Dired.
- Add handling of prefix argument 'C-u' for both commands, asking
interactively for another Tramp method but "sudo".
I haven't changed the command names; it doesn't seem to be urgent now we
have the bindings.
Closing the bug.
Best regards, Michael.
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Fri, 14 Mar 2025 15:42:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
bug acknowledged by developer.
(Fri, 14 Mar 2025 15:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Fri, 14 Mar 2025 18:56:03 GMT)
Full text and
rfc822 format available.
Message #73 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
> There is general agreement on this feature. So I've pushed a patch to the
> master branch:
There is now this warning:
bindings.el:1610:9: Warning: the function
‘tramp-revert-buffer-with-sudo’ is not known to be defined.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76974
; Package
emacs
.
(Sat, 15 Mar 2025 09:02:02 GMT)
Full text and
rfc822 format available.
Message #76 received at 76974 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefankangas <at> gmail.com> writes:
Hi Stefan,
>> There is general agreement on this feature. So I've pushed a patch to the
>> master branch:
>
> There is now this warning:
>
> bindings.el:1610:9: Warning: the function
> ‘tramp-revert-buffer-with-sudo’ is not known to be defined.
Indeed, when calling 'make bootstrap' (which I didn't). Fixed in master.
Best regards, Michael.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 12 Apr 2025 11:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.