* Typo in project-kill-buffers
@ 2020-09-18 17:16 Manuel Uberti
2020-09-18 18:43 ` Stefan Kangas
0 siblings, 1 reply; 2+ messages in thread
From: Manuel Uberti @ 2020-09-18 17:16 UTC (permalink / raw)
To: emacs-devel
Hello everyone,
since this is a little typo and not a proper bug, I am just reporting it here:
(defun project-kill-buffers (&optional no-confirm)
"Kill the buffers belonging to the current project.
Two buffers belong to the same project if their project
instances, as reported by `project-current' in each buffer, are
identical. Only the buffers that match a condition in
`project-kill-buffer-conditions' will be killed. If NO-CONFIRM
is non-nil, the command will not ask the user for confirmation.
NO-CONFIRM is always nil when the command is invoked
interactivly."
(interactive)
(let* ((pr (project-current t))
(bufs (project--buffers-to-kill pr)))
(cond (no-confirm
(mapc #'kill-buffer bufs))
((null bufs)
(message "No buffers to kill"))
((yes-or-no-p (format "Kill %d buffers in %s? "
(length bufs)
(project-root pr)))
(mapc #'kill-buffer bufs)))))
In the docstring, "interactivly" should be "interactively".
All the best.
--
Manuel Uberti
www.manueluberti.eu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Typo in project-kill-buffers
2020-09-18 17:16 Typo in project-kill-buffers Manuel Uberti
@ 2020-09-18 18:43 ` Stefan Kangas
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2020-09-18 18:43 UTC (permalink / raw)
To: Manuel Uberti, emacs-devel
Manuel Uberti <manuel.uberti@inventati.org> writes:
> In the docstring, "interactivly" should be "interactively".
Thanks, now fixed on the master branch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-18 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-18 17:16 Typo in project-kill-buffers Manuel Uberti
2020-09-18 18:43 ` Stefan Kangas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).