diff options
| author | Po Lu | 2024-07-16 10:15:59 +0800 |
|---|---|---|
| committer | Po Lu | 2024-07-16 10:15:59 +0800 |
| commit | 06ce99b76a8e5823f003f4e0dee945d97d0271ea (patch) | |
| tree | 567d917f1bfe3682b9f131cabdc7a4dc134fb625 /lisp | |
| parent | 0fc8d8836701f928a124ac13c32e6dae7f55ee37 (diff) | |
| parent | 72c8e0df87b0776451f9065f3432a8ebecee974d (diff) | |
| download | emacs-06ce99b76a8e5823f003f4e0dee945d97d0271ea.tar.gz emacs-06ce99b76a8e5823f003f4e0dee945d97d0271ea.zip | |
Merge remote-tracking branch 'savannah/master' into master-android-1
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/project.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b7c1698f50b..3d0f742c51d 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -1715,7 +1715,7 @@ in `project-kill-buffer-conditions'." | |||
| 1715 | bufs)) | 1715 | bufs)) |
| 1716 | 1716 | ||
| 1717 | ;;;###autoload | 1717 | ;;;###autoload |
| 1718 | (defun project-kill-buffers (&optional no-confirm) | 1718 | (defun project-kill-buffers (&optional no-confirm project) |
| 1719 | "Kill the buffers belonging to the current project. | 1719 | "Kill the buffers belonging to the current project. |
| 1720 | Two buffers belong to the same project if their project | 1720 | Two buffers belong to the same project if their project |
| 1721 | instances, as reported by `project-current' in each buffer, are | 1721 | instances, as reported by `project-current' in each buffer, are |
| @@ -1725,9 +1725,11 @@ is non-nil, the command will not ask the user for confirmation. | |||
| 1725 | NO-CONFIRM is always nil when the command is invoked | 1725 | NO-CONFIRM is always nil when the command is invoked |
| 1726 | interactively. | 1726 | interactively. |
| 1727 | 1727 | ||
| 1728 | If PROJECT is non-nil, kill buffers for that project instead. | ||
| 1729 | |||
| 1728 | Also see the `project-kill-buffers-display-buffer-list' variable." | 1730 | Also see the `project-kill-buffers-display-buffer-list' variable." |
| 1729 | (interactive) | 1731 | (interactive) |
| 1730 | (let* ((pr (project-current t)) | 1732 | (let* ((pr (or project (project-current t))) |
| 1731 | (bufs (project--buffers-to-kill pr)) | 1733 | (bufs (project--buffers-to-kill pr)) |
| 1732 | (query-user (lambda () | 1734 | (query-user (lambda () |
| 1733 | (yes-or-no-p | 1735 | (yes-or-no-p |