Subject: bug#72465: closed (Re: bug#72465: Acknowledgement ([PATCH 1/2] Document how set path to C source code for SUSE based systems))

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 05 Aug 2024 09:50:02 +0000

Your bug report

#72465: [PATCH 1/2] Document how set path to C source code for SUSE based systems

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
72465: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72465
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#72465: Acknowledgement ([PATCH 1/2] Document how set path to C source code for SUSE based systems)
From: Andrea Corallo <[email-masked]>
To: Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]>
Cc: Björn Bidar <[email-masked]>, [email-masked]
Date: Mon, 05 Aug 2024 05:46:47 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <[email-masked]> writes:

> Sorry I meant to send the patches in a reply to the the cover message.
> Please close the bug I created by accident.

Closing

Subject: [PATCH 1/2] Document how set path to C source code for SUSE based systems
From: Björn Bidar <[email-masked]>
To: [email-masked]
Date: Sun, 4 Aug 2024 16:09:36 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* etc/PROBLEMS(Problems when reading or debugging Emacs C code):
Document how to install Emacs C source and how to set path it for SUSE
based distributions such as openSUSE and SUSE Linux Enterprise.
---
 etc/PROBLEMS | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index c1ad8321fa6..ef205da2c17 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -456,6 +456,25 @@ However, the exact directory name will depend on the system, and you
 will need to both upgrade source and debug info when your system
 upgrades or patches Emacs, and change your startup file accordingly.
 
+** SUSE based distributions (openSUSE, SUSE Linux Enterprise)
+
+On systems with distributions, you can install source and debug info
+via superuser commands like the following:
+
+    # Install Emacs source and debuginfo by using --plus-content
+    zypper --plus-content debug,source install emacs-debuginfo emacs-debugsource
+
+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
+          (car (file-expand-wildcards "/usr/src/debug/emacs-*/src")))
+
+The line above should work for all systems using zypper besides SUSE
+based ones, however it could be that you have to adjust the path to
+the sources slightly depending on the version of the distribution you
+have installed.
+
 ** Source and debuginfo for other systems
 
 If your system follows neither the Debian nor the Red Hat patterns,
-- 
2.45.2