GNU bug report logs - #52465
29.0.50; Expand project-kill-buffer-conditions

Previous Next

Package: emacs;

Reported by: Manuel Uberti <manuel.uberti <at> inventati.org>

Date: Mon, 13 Dec 2021 13:33:01 UTC

Severity: normal

Found in version 29.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

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 52465 in the body.
You can then email your comments to 52465 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Mon, 13 Dec 2021 13:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Manuel Uberti <manuel.uberti <at> inventati.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 13 Dec 2021 13:33:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Expand project-kill-buffer-conditions
Date: Mon, 13 Dec 2021 14:32:27 +0100
Would it make sense to add two more entries
project-kill-buffer-conditions? I have this in my configuration:

(dolist (entry (list '(derived-mode . comint-mode)
                     '(major-mode . change-log-mode)))
  (add-to-list 'project-kill-buffer-conditions entry t))

I often use project-shell in my projects, so I am happy to close it when I do 
'C-x p k'.

Also, project-kill-buffers already gets rid of the project VC buffers I have 
opened, so I like to kill the related change-log one as well.

What do you think?


In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo 
version 1.16.0)
 of 2021-12-13 built on hathaway
Repository revision: 5640b055d6962bbf54958e9c2355bd21f763967d
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'

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/d

Minor modes in effect:
  shell-dirtrack-mode: t
  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:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail view jka-compr cl-print
ibuf-ext ibuffer ibuffer-loaddefs tramp-cmds whitespace tabify log-view
dabbrev emoji-labels emoji transient edmacro kmacro help-fns radix-tree
mm-archive mule-util gnutls url-cache finder-inf log-edit message
yank-media rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev mail-utils
gmm-utils mailheader pcvs-util add-log smerge-mode diff vc-dir ewoc
misearch multi-isearch noutline outline checkdoc dired dired-loaddefs
pkg-info url-http url-auth url-gw find-func epl network-stream puny nsm
rmc server cider tramp-sh cider-debug cider-browse-ns cider-repl-history
pulse derived cider-mode cider-find cider-inspector cider-completion
cider-profile cider-eval cider-repl cider-resolve cider-eldoc cider-test
cider-stacktrace cider-doc advice cider-browse-spec cider-clojuredocs
cider-overlays cider-jar arc-mode archive-mode cider-client cider-common
cider-connection cider-util color cider-popup sesman-browser
nrepl-client tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp
format-spec queue nrepl-dict cider-compat spinner parseedn
parseclj-parser parseclj-lex parseclj-alist flymake-kondor elec-pair
flymake-proc flymake compile text-property-search comint flyspell ispell
goto-addr sesman clojure-mode lisp-mnt mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr align imenu thingatpt pp vc-git
diff-mode easy-mmode vc vc-dispatcher cursor-sensor modus-operandi-theme
modus-themes delight comp comp-cstr warnings rx 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 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 611111 253591)
 (symbols 48 28570 1)
 (strings 32 158076 48353)
 (string-bytes 1 6242308)
 (vectors 16 53384)
 (vector-slots 8 1521013 201131)
 (floats 8 566 3540)
 (intervals 56 7103 557)
 (buffers 992 37))

-- 
Manuel Uberti
www.manueluberti.eu




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Tue, 14 Dec 2021 02:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 52465 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Manuel Uberti <manuel.uberti <at> inventati.org>, 52465 <at> debbugs.gnu.org,
 "Philip K." <philip <at> warpmail.net>
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Tue, 14 Dec 2021 05:20:58 +0300
Hi Manuel,

On 13.12.2021 16:32, Manuel Uberti via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> Would it make sense to add two more entries
> project-kill-buffer-conditions? I have this in my configuration:
> 
> (dolist (entry (list '(derived-mode . comint-mode)
>                       '(major-mode . change-log-mode)))
>    (add-to-list 'project-kill-buffer-conditions entry t))
> 
> I often use project-shell in my projects, so I am happy to close it when 
> I do 'C-x p k'.
> 
> Also, project-kill-buffers already gets rid of the project VC buffers I 
> have opened, so I like to kill the related change-log one as well.
> 
> What do you think?

Adding comint-mode sounds fine to me.

Regarding change-log-mode, do you usually have those buffers not saved 
to a file? Because otherwise the condition with 'buffer-file-name' 
should be used.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Tue, 14 Dec 2021 06:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 52465 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 52465 <at> debbugs.gnu.org,
 "Philip K." <philip <at> warpmail.net>
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Tue, 14 Dec 2021 07:28:07 +0100
On 14/12/21 03:20, Dmitry Gutov wrote:
> Adding comint-mode sounds fine to me.

Great, thanks.

> Regarding change-log-mode, do you usually have those buffers not saved to a 
> file? Because otherwise the condition with 'buffer-file-name' should be used.

You are right, that's a better condition.

-- 
Manuel Uberti
www.manueluberti.eu




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Tue, 14 Dec 2021 16:17:01 GMT) Full text and rfc822 format available.

Message #14 received at 52465 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Manuel Uberti <manuel.uberti <at> inventati.org>, 52465 <at> debbugs.gnu.org,
 "Philip K." <philip <at> warpmail.net>
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Tue, 14 Dec 2021 19:14:59 +0300
On 14.12.2021 09:28, Manuel Uberti via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
>> Regarding change-log-mode, do you usually have those buffers not saved 
>> to a file? Because otherwise the condition with 'buffer-file-name' 
>> should be used.
> 
> You are right, that's a better condition.

So... it works already? Those buffers are killed?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Tue, 14 Dec 2021 19:15:01 GMT) Full text and rfc822 format available.

Message #17 received at 52465 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 52465 <at> debbugs.gnu.org,
 "Philip K." <philip <at> warpmail.net>
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Tue, 14 Dec 2021 20:14:14 +0100
On 14/12/21 17:14, Dmitry Gutov wrote:
> On 14.12.2021 09:28, Manuel Uberti via Bug reports for GNU Emacs, the Swiss army 
> knife of text editors wrote:
>>> Regarding change-log-mode, do you usually have those buffers not saved to a 
>>> file? Because otherwise the condition with 'buffer-file-name' should be used.
>>
>> You are right, that's a better condition.
> 
> So... it works already? Those buffers are killed?

Yeah, I guess handling shell buffers is enough then.

-- 
Manuel Uberti
www.manueluberti.eu




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Tue, 14 Dec 2021 19:43:02 GMT) Full text and rfc822 format available.

Message #20 received at 52465 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: dgutov <at> yandex.ru, 52465 <at> debbugs.gnu.org
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Tue, 14 Dec 2021 20:42:42 +0100
Actually no, I do not save those change-log-mode buffers to a file, so I'd like 
to have them killed on 'C-x p k'.

[Sorry, not the best time for me to be debugging right now.]

-- 
Manuel Uberti
www.manueluberti.eu




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Wed, 15 Dec 2021 00:01:01 GMT) Full text and rfc822 format available.

Notification sent to Manuel Uberti <manuel.uberti <at> inventati.org>:
bug acknowledged by developer. (Wed, 15 Dec 2021 00:01:01 GMT) Full text and rfc822 format available.

Message #25 received at 52465-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Manuel Uberti <manuel.uberti <at> inventati.org>, 52465-done <at> debbugs.gnu.org
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Wed, 15 Dec 2021 02:59:50 +0300
On 14.12.2021 22:42, Manuel Uberti via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> Actually no, I do not save those change-log-mode buffers to a file, so 
> I'd like to have them killed on 'C-x p k'.
> 
> [Sorry, not the best time for me to be debugging right now.]

All right, thanks for checking.

I've added both proposed conditions in commit 38977b6134.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52465; Package emacs. (Wed, 15 Dec 2021 06:19:02 GMT) Full text and rfc822 format available.

Message #28 received at 52465-done <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 52465-done <at> debbugs.gnu.org
Subject: Re: bug#52465: 29.0.50; Expand project-kill-buffer-conditions
Date: Wed, 15 Dec 2021 07:18:26 +0100
On 15/12/21 00:59, Dmitry Gutov wrote:
> All right, thanks for checking.
> 
> I've added both proposed conditions in commit 38977b6134.

Awesome, thank you!

-- 
Manuel Uberti
www.manueluberti.eu




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 12 Jan 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.