From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#52158: 29.0.50; Add key binding fo vc-git-stash Date: Sun, 28 Nov 2021 09:36:27 +0100 Message-ID: <7e8deb56-c8c6-1ce0-7880-21dddae25de7@inventati.org> Reply-To: Manuel Uberti Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4070"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 To: 52158@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 28 09:37:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrFgN-0000rR-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Nov 2021 09:37:11 +0100 Original-Received: from localhost ([::1]:49578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrFgL-00047p-Gp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Nov 2021 03:37:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrFgE-00047e-D4 for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 03:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrFgE-0003sI-4r for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 03:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrFgE-0001IP-35 for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 03:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Uberti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Nov 2021 08:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52158 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16380886064953 (code B ref -1); Sun, 28 Nov 2021 08:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2021 08:36:46 +0000 Original-Received: from localhost ([127.0.0.1]:34923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrFfx-0001Ho-H8 for submit@debbugs.gnu.org; Sun, 28 Nov 2021 03:36:45 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrFft-0001Ha-Bd for submit@debbugs.gnu.org; Sun, 28 Nov 2021 03:36:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrFft-00046t-5D for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 03:36:41 -0500 Original-Received: from [2001:888:2000:56::19] (port=46883 helo=latitanza.investici.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrFfq-0003mD-0m for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2021 03:36:40 -0500 Original-Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4J21zb696HzGp4R for ; Sun, 28 Nov 2021 08:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1638088587; bh=rp/oCkalAk0hwRa+ueiQT9GSTxMj6ETB2kVh5kCxjT4=; h=To:Subject:From:Date:From; b=KrLv0ZB68RFoQCKQXjFxNziGDmalGZY0TbZQEb6qF5wrLlorOh2NZ1mKwrCFRqF8S XSDuWVSzjZs+sJGqk/aYevl05FMpuOgaQtKEJm8l271ELTmsTSaiqWewcH5iAcv950 eIocvhqDGU1UyuNTzIY55jhh3PoPvrsKD+i4vqtQ= Original-Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4J21zb5VYCzGp4Q for ; Sun, 28 Nov 2021 08:36:27 +0000 (UTC) Content-Language: en-GB X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:888:2000:56::19 (failed) Received-SPF: pass client-ip=2001:888:2000:56::19; envelope-from=manuel.uberti@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220959 Archived-At: 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