* bug#72466: [PATCH 2/2] Improve instructions how set path to C source code for Red Hat
@ 2024-08-04 13:17 Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 3+ messages in thread
From: Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-04 13:17 UTC (permalink / raw)
To: 72466
* etc/PROBLEMS(Problems when reading or debugging Emacs C code):
Improve instruction how to set path to C source code for Red Hat
based systems.
---
etc/PROBLEMS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index ef205da2c17..a642ebce570 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -450,7 +450,7 @@ To get describe-function and similar commands to work, you can then
add something like the following to your startup file:
(setq find-function-C-source-directory
- "/usr/src/debug/emacs-27.1-1.fc31.x86_64/src/")
+ (car (file-expand-wildcards "/usr/src/debug/emacs-*/src")))
However, the exact directory name will depend on the system, and you
will need to both upgrade source and debug info when your system
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <87frrkb7oj.fsf@>]
* bug#72466: [PATCH 2/2] Improve instructions how set path to C source code for Red Hat
[not found] <87frrkb7oj.fsf@>
@ 2024-08-04 16:15 ` Eli Zaretskii
2024-08-04 16:45 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-08-04 16:15 UTC (permalink / raw)
To: Björn Bidar; +Cc: 72466
> Date: Sun, 4 Aug 2024 16:17:25 +0300
> From: Björn Bidar via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> * etc/PROBLEMS(Problems when reading or debugging Emacs C code):
> Improve instruction how to set path to C source code for Red Hat
> based systems.
> ---
> etc/PROBLEMS | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/etc/PROBLEMS b/etc/PROBLEMS
> index ef205da2c17..a642ebce570 100644
> --- a/etc/PROBLEMS
> +++ b/etc/PROBLEMS
> @@ -450,7 +450,7 @@ To get describe-function and similar commands to work, you can then
> add something like the following to your startup file:
>
> (setq find-function-C-source-directory
> - "/usr/src/debug/emacs-27.1-1.fc31.x86_64/src/")
> + (car (file-expand-wildcards "/usr/src/debug/emacs-*/src")))
Thanks, but I'd rather not confuse users with Lisp, and neither would
I assume that the first directory in the wildcard expansion will
necessarily be the one belonging to the running Emacs.
What exactly is wrong with the text as written? It explains where did
27.1 came from:
Once you have installed the source package, for example at
/home/myself/deb-src/emacs-27.1, add the following line to your
startup file: ^^^^^^^^^^
If you think 27.1 is too old, we could change that to 30 or something.
But other than that, I think the text is fine as it is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#72466: [PATCH 2/2] Improve instructions how set path to C source code for Red Hat
2024-08-04 16:15 ` Eli Zaretskii
@ 2024-08-04 16:45 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 3+ messages in thread
From: Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-04 16:45 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 72466
Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Sun, 4 Aug 2024 16:17:25 +0300
>> From: Björn Bidar via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> * etc/PROBLEMS(Problems when reading or debugging Emacs C code):
>> Improve instruction how to set path to C source code for Red Hat
>> based systems.
>> ---
>> etc/PROBLEMS | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/etc/PROBLEMS b/etc/PROBLEMS
>> index ef205da2c17..a642ebce570 100644
>> --- a/etc/PROBLEMS
>> +++ b/etc/PROBLEMS
>> @@ -450,7 +450,7 @@ To get describe-function and similar commands to work, you can then
>> add something like the following to your startup file:
>>
>> (setq find-function-C-source-directory
>> - "/usr/src/debug/emacs-27.1-1.fc31.x86_64/src/")
>> + (car (file-expand-wildcards "/usr/src/debug/emacs-*/src")))
>
> Thanks, but I'd rather not confuse users with Lisp, and neither would
> I assume that the first directory in the wildcard expansion will
> necessarily be the one belonging to the running Emacs.
There's only one Emacs package in Fedora as well as in (open)SUSE
the source expanded in that wildcard is to 99% the one that the user
runs, especially for user that would be confused with lisp.
> What exactly is wrong with the text as written? It explains where did
> 27.1 came from:
>
> Once you have installed the source package, for example at
> /home/myself/deb-src/emacs-27.1, add the following line to your
> startup file: ^^^^^^^^^^
>
> If you think 27.1 is too old, we could change that to 30 or something.
> But other than that, I think the text is fine as it is.
I don't have a problem with 27.1 I just thought there would be a more
streamlined way of setting the patch to the C source code rather than
one that the user to update to each time they update.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-04 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-04 13:17 bug#72466: [PATCH 2/2] Improve instructions how set path to C source code for Red Hat Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] <87frrkb7oj.fsf@>
2024-08-04 16:15 ` Eli Zaretskii
2024-08-04 16:45 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.