unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64266: [PATCH] ; * lisp/progmodes/project.el (project-current): Doc fix.
@ 2023-06-24 14:35 Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-06-24 15:01 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-06-24 14:35 UTC (permalink / raw)
  To: 64266

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

Tags: patch

Hi,

Since commit 9efa6d2cf28f4e21f23bb0dbfedc59a4286dab12, the function
`project-current` uses the function specified by `project-prompter`
rather than calling `project-prompt-project-dir` directly.  As a result,
it can prompt for a project by its name rather than by its root
directory (depending on the value of `project-prompter`), but the doc
string of `project-current` says that it "asks the user for a directory"
without mentioning `project-prompter`.  This patch clarifies that
`project-current` uses `project-prompter` for prompting.


In GNU Emacs 30.0.50 (build 18, x86_64-apple-darwin22.5.0, NS
 appkit-2299.60 Version 13.4 (Build 22F66)) of 2023-06-24 built on
 Dazzs-MBP
Repository revision: 77c2f05d773271cb59ebfd994b06a4075cacbfa8
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2299
System Description:  macOS 13.4

Configured using:
 'configure 'CFLAGS=-g0 -O3' --with-native-compilation --with-json
 --with-imagemagick --with-tree-sitter --enable-link-time-optimization'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-progmodes-project.el-project-current-Doc-fix.patch --]
[-- Type: text/patch, Size: 1388 bytes --]

From 8dbf48e71fd68b10478a70ec8453e5e0c61e176d Mon Sep 17 00:00:00 2001
From: Eshel Yaron <me@eshelyaron.com>
Date: Sat, 24 Jun 2023 17:16:19 +0300
Subject: [PATCH] ; * lisp/progmodes/project.el (project-current): Doc fix.

Avoid saying that 'project-current' asks specifically for a directory,
as it can also ask for a project's directory by other identifiers,
such as the project's name, when 'project-prompter' is set to a
different value than the default 'project-prompt-project-dir'.
---
 lisp/progmodes/project.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 56c524bcab5..5e8628bbd0e 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -219,9 +219,9 @@ project-current
 
 When no project is found in that directory, the result depends on
 the value of MAYBE-PROMPT: if it is nil or omitted, return nil,
-else ask the user for a directory in which to look for the
-project, and if no project is found there, return a \"transient\"
-project instance.
+else call the function specified by `project-prompter' to prompt
+the user for a project's directory, and if no project is found
+there, return a \"transient\" project instance.
 
 The \"transient\" project instance is a special kind of value
 which denotes a project rooted in that directory and includes all
-- 
2.41.0


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

end of thread, other threads:[~2023-07-13  6:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-24 14:35 bug#64266: [PATCH] ; * lisp/progmodes/project.el (project-current): Doc fix Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-24 15:01 ` Eli Zaretskii
2023-06-24 15:32   ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-24 17:06     ` Eli Zaretskii
2023-06-25  2:20       ` Dmitry Gutov
2023-07-09  7:57         ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-09 13:19           ` sbaugh
2023-07-13  6:15           ` Eli Zaretskii

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).