all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#52158: 29.0.50; Add key binding fo vc-git-stash
@ 2021-11-28  8:36 Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-11-28 13:51 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 28+ messages in thread
From: Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-11-28  8:36 UTC (permalink / raw)
  To: 52158

In my init.el I have this code:

(defun mu-vc-git-stash (pop-or-delete)
   "Create, pop, or delete Git stashes.
With no POP-OR-DELETE call `vc-git-stash'. With one prefix
argument call `vc-git-stash-pop'. With two prefix arguments call
`vc-git-stash-delete'."
   (interactive "P" vc-dir-mode)
   (cond ((= (prefix-numeric-value pop-or-delete) 4)
          (call-interactively #'vc-git-stash-pop))
         ((= (prefix-numeric-value pop-or-delete) 16)
          (call-interactively #'vc-git-stash-delete))
         (t (call-interactively #'vc-git-stash))))

(with-eval-after-load 'vc-dir
   (keymap-set vc-dir-mode-map "z" #'mu-vc-git-stash))

Stashing is something I do regularly, so I was missing a key binding for it in 
`vc-dir-mode'.

I am not suggesting to add something like `mu-vc-git-stash', though, that is 
just an example of me wrapping useful and related Emacs commands in order to 
make them easily available. Nonetheless, 'z' is free in `vc-dir-mode-map' right 
now and `vc-git-stash' is not bound to any key.

What do you think?


In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo 
version 1.16.0)
  of 2021-11-28 built on hathaway
Repository revision: 08d1c405073f614d89bcdf7f6bd19e8c8aaf8356
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12009000
System Description: Ubuntu 20.04 LTS

Configured using:
  'configure --with-harfbuzz --with-native-compilation CC=gcc-10'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
   value of $LC_MONETARY: it_IT.UTF-8
   value of $LC_NUMERIC: it_IT.UTF-8
   value of $LC_TIME: it_IT.UTF-8
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: ELisp/l

Minor modes in effect:
   electric-pair-mode: t
   flymake-mode: t
   flyspell-mode: t
   goto-address-prog-mode: t
   savehist-mode: t
   global-so-long-mode: t
   global-subword-mode: t
   subword-mode: t
   windmove-mode: t
   winner-mode: t
   global-company-mode: t
   company-mode: t
   envrc-global-mode: t
   envrc-mode: t
   fido-vertical-mode: t
   icomplete-vertical-mode: t
   icomplete-mode: t
   fido-mode: t
   delete-selection-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   window-divider-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
/home/manuel/.emacs.d/elpa/transient-0.3.7.0.20211105.10020/transient hides 
/usr/local/share/emacs/29.0.50/lisp/transient

Features:
(shadow sort mail-extr emacsbug sendmail imenu noutline outline checkdoc
lisp-mnt elec-pair flymake-proc flymake compile comint flyspell ispell
goto-addr thingatpt vc-git diff-mode easy-mmode vc vc-dispatcher
cursor-sensor mm-archive message yank-media dired-x dired dired-loaddefs
rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs
text-property-search mailabbrev gmm-utils mailheader mm-decode mm-bodies
mm-encode mail-utils mule-util gnutls network-stream url-http mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc
puny url-cache url-auth epg rfc6068 epg-config hl-line finder-inf
time-date modus-operandi-theme modus-themes delight comp comp-cstr
warnings cl-extra help-mode savehist so-long cap-words superword subword
windmove winner company-oddmuse company-keywords company-etags etags
fileloop generator xref project ring company-gtags company-dabbrev-code
company-dabbrev company-files company-clang company-capf company-cmake
company-semantic company-template company-bbdb company pcase envrc
inheritenv ansi-color icomplete ibuf-macs rx delsel info tex-site
package browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map url-vars seq gv subr-x byte-opt bytecomp
byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd 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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice
button 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 lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 420915 346814)
  (symbols 48 22702 4)
  (strings 32 106480 66469)
  (string-bytes 1 4598076)
  (vectors 16 37577)
  (vector-slots 8 1024474 89574)
  (floats 8 288 2182)
  (intervals 56 2322 271)
  (buffers 992 14))

-- 
Manuel Uberti
www.manueluberti.eu





^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2021-12-07 12:56 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-28  8:36 bug#52158: 29.0.50; Add key binding fo vc-git-stash Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-28 13:51 ` Lars Ingebrigtsen
2021-11-28 13:55   ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-28 14:12     ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-29 13:58       ` Lars Ingebrigtsen
2021-11-29 14:03         ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-29 14:12         ` Robert Pluim
2021-11-29 14:18           ` Lars Ingebrigtsen
2021-11-29 14:30             ` Robert Pluim
2021-11-29 14:40               ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-29 15:32               ` Lars Ingebrigtsen
2021-11-29 22:16                 ` Dmitry Gutov
2021-11-30 12:59                   ` Lars Ingebrigtsen
2021-12-06  1:00                     ` Dmitry Gutov
2021-12-06  5:42                       ` Lars Ingebrigtsen
2021-12-06  6:29                         ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-06  6:31                           ` Lars Ingebrigtsen
2021-12-06  6:32                             ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-06  8:58                               ` Robert Pluim
2021-12-07  7:07                                 ` Lars Ingebrigtsen
2021-12-07  9:08                                   ` Robert Pluim
2021-12-07 12:56                                   ` Dmitry Gutov
2021-12-07  7:06                               ` Lars Ingebrigtsen
2021-12-07  7:19                                 ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-06 17:32                           ` Juri Linkov
2021-12-07  5:06                             ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-29 17:12             ` Juri Linkov
2021-11-29 18:46               ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.