From unknown Thu Jun 19 13:57:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#71522 <71522@debbugs.gnu.org> To: bug#71522 <71522@debbugs.gnu.org> Subject: Status: 29.2.50; Allow associating module symbols with defining files Reply-To: bug#71522 <71522@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:57:06 +0000 retitle 71522 29.2.50; Allow associating module symbols with defining files reassign 71522 emacs submitter 71522 Spencer Baugh severity 71522 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 12 11:14:51 2024 Received: (at submit) by debbugs.gnu.org; 12 Jun 2024 15:14:51 +0000 Received: from localhost ([127.0.0.1]:39954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHPgZ-0007CJ-9n for submit@debbugs.gnu.org; Wed, 12 Jun 2024 11:14:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:52104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHPgV-0007C8-Qd for submit@debbugs.gnu.org; Wed, 12 Jun 2024 11:14:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHPeN-0002iB-S8 for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2024 11:12:36 -0400 Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHPeK-00007W-NR for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2024 11:12:35 -0400 From: Spencer Baugh To: bug-gnu-emacs@gnu.org Subject: 29.2.50; Allow associating module symbols with defining files Date: Wed, 12 Jun 2024 11:12:30 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1718205150; bh=g8Am1B65hcCnf5dNSFFaWYTBlnQh26RsJ/OMeRo9ThM=; h=From:To:Subject:Date; b=D3T842IULM2IUQcvnSyEEUAGlakcFAC2A5JC106U1qTF1xAqzAjdZNUFfTWQldxMu EwURWMo4piD/fL15yp2k80Q2puNTWNeLFCg/Feghhv5BxRCXh4Q0xTixyo7dV0TCNy NZjBgenwShxqRJ7h5KlMR3au/gdYEkCiyUmq6RzaOCDQzQYXO3js7aWfM0viburW3G v1EhtJdwO3f4/RON8XSTOcoV9g5mw2u0OZWAvkcxI3o6ZPA1UmR7G4115a138GuA77 fmu1HFWwkbaWC41rh9zZpS+rhREKJ7XYu1pDqLsoy6ujVc+5ZPSXrwyKhh6dpUzPr6 BssRWachBYGUg== Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) It's currently impossible to associate a symbol defined by a module with the source file which actually defined that symbol. 1. Make any native module whatsoever, defining any Lisp symbols at all 2. emacs -Q -l ./your-native-module.so 3. (symbol-file your-native-module-symbol) yields "your-native-module.so" 4. If it's a function: C-h f your-native-module-symbol RET 5. Observe that it says "your-native-module.so" defines this function, and that jumping to the source via the link or "s" drops you in your-native-module.so. It should instead be possible for a module to express which files defines a symbol, so that it's possible to jump to the source for that symbol, if it's around. In GNU Emacs 29.2.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2024-06-01 built on igm-qws-u22796a Repository revision: fcef787a846f0c51f7443dfab6af6e18b476b166 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Rocky Linux 8.9 (Green Obsidian) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 12 12:54:18 2024 Received: (at 71522) by debbugs.gnu.org; 12 Jun 2024 16:54:18 +0000 Received: from localhost ([127.0.0.1]:40042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHREo-0001QT-7e for submit@debbugs.gnu.org; Wed, 12 Jun 2024 12:54:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHREj-0001QD-Ar for 71522@debbugs.gnu.org; Wed, 12 Jun 2024 12:54:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHREe-0003OC-LX; Wed, 12 Jun 2024 12:54:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hu03jOr6wj8+9BozFcg2bo4c4U8VzLWXG/nO2tMtKyQ=; b=J65HKF2BDDS+ 35nyPhk89q6AeSDBmdAhAULlQGqRZRKC8BEeQ+ki9rEQtWgvX4y3P735JjUirHWx/WpUlCP2MBvhX SaSuw0CMZxvlqoXFR3QtuZPLcG4I1Oy5HhU59E6KKLBhb3DzMgKElDRODaqq64/ULqpnleGcah/cL 7BEr7zvplZaKt8U4PsTJ/bUffvoDyz97ryei2pWdk7i1utShpVTNXcHLsohiXA8viRaVs1jWn6nte We8N0s3xdwBoRaIX/vz23Q7PUUaXeCH5RqueAq1wPFbyGrIPqBaUNtDdJyCpoQZbOI0B/n8+UlXOF lZJApjnMNSUfvyCLyCr6xg==; Date: Wed, 12 Jun 2024 19:54:05 +0300 Message-Id: <86v82eyudu.fsf@gnu.org> From: Eli Zaretskii To: Spencer Baugh In-Reply-To: (message from Spencer Baugh on Wed, 12 Jun 2024 11:12:30 -0400) Subject: Re: bug#71522: 29.2.50; Allow associating module symbols with defining files References: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71522 Cc: 71522@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Spencer Baugh > Date: Wed, 12 Jun 2024 11:12:30 -0400 > > > It's currently impossible to associate a symbol defined by a module with > the source file which actually defined that symbol. > > 1. Make any native module whatsoever, defining any Lisp symbols at all > 2. emacs -Q -l ./your-native-module.so > 3. (symbol-file your-native-module-symbol) yields "your-native-module.so" > 4. If it's a function: > C-h f your-native-module-symbol RET > 5. Observe that it says "your-native-module.so" defines this function, > and that jumping to the source via the link or "s" drops you in > your-native-module.so. I'm guessing that what Emacs knows is the directory and the file name from which it loaded the module. If we want to be able to find the source file, that information needs to be recorded somewhere inside the module, otherwise there's no way Emacs could reliably find the sources, since the module could be stripped of all the symbolic debug info. Suggestions for how to implement that are welcome. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 21:04:32 2025 Received: (at control) by debbugs.gnu.org; 1 Mar 2025 02:04:33 +0000 Received: from localhost ([127.0.0.1]:55901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toCDQ-0001rx-Fr for submit@debbugs.gnu.org; Fri, 28 Feb 2025 21:04:32 -0500 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:61452) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1toCDO-0001rC-QS for control@debbugs.gnu.org; Fri, 28 Feb 2025 21:04:31 -0500 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5dec817f453so4219257a12.2 for ; Fri, 28 Feb 2025 18:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740794665; x=1741399465; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=8kElj5YH1JlyvzcYkYXrwSw4wQzERmaVBhOja/ln5wQ=; b=mygEpAU/E4SZe3wCvIfWEYJEI1Xll5qplW3eoat1ttxLGEIp6jh1CZnwJvC0+DUU3L I0eBcygA4VfNgW1kcG9KaV9tzW5FS4zc8NqLiRmFziDkZ7ku9W4t38CBrLgNItyWuYOd co70JM6Ifc/iTHzOQfkld90cLkqj/VOapQScW/RJE1rGLUy4TNamoBG2kzWePsUoPaPX 9vrdfZLonluW4a4c/Al3VTGmErMnnhP5r0HCH7wha+qqnnGe/cMPYFsejn6/S/3kJX6W qge6Mhkz28WIhqJQOufQiMZw6kxVNbwPOnz8DG9/RfGpxF3HdJl7G1inE3Au8iDYe50b m1ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740794665; x=1741399465; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8kElj5YH1JlyvzcYkYXrwSw4wQzERmaVBhOja/ln5wQ=; b=A77yWNo8O77wkQcneT+4dvzQZrfcmqW3aE11hC7eMkXUh0wYqMHMmuh29xhYWfVs51 M0z1VPtqyeqrU1rbJXPpgWJqNPRBjImaHxqIui1fysH6TatETwF4ho8FOociihMeM2JS kTvUjXXFd1iOU2KE6Zjxv1A/szFLis/CgPvcnZ7WpercDx6N/NfuOrje5zOf20ED7Sv1 w1YMEfzykIGMo2CYEAkLShRs3LSExnSLzbTqFzsB+RTuAwEEHgs0fOgQKZiO+m01oeRj tL663XLfkEiLMby/G/AFE72vJOlVrKDKkeqnzIYYSDSgkjxkASsS+HCPIdm7QXX36hYX wYmw== X-Gm-Message-State: AOJu0Ywt44bj/h/DvJjEkpXUK+Os5aOmH0uX/67efzkb4V6g+LHTw3Tc xoeNWyhqzyrL7+gwyclOESd3+3ccuWwpMfXFc8Oya0WCEdCLwLf5+aLkDKWM1haR4LBlz6kGzrG ahzbVUxXclOC9C+UJuITwaulXK1CoPn8Kkco= X-Gm-Gg: ASbGncu878GXKkSQNz1Sz/DHPNTgbi+Up2rYQqIqv4ZW6GPXnimLcEeaBVEWAlh+flV 84vBC6XBQmqoMZzzqjBLLNM7FQjYWp0EBE6EbGdwQHx3rl/PY0sIwlA49AOK/+YhqiceqKp350L tKkjVJHutyLmVcHbBshcCqBTWlxN8= X-Google-Smtp-Source: AGHT+IETp5lOwg4gJfn2xZofg20mNdL8+dTDCqV2yHUyORrv3Yio9703O3MRAM8s25IwK7cGZLCkpZNHq+FD+VhAuNY= X-Received: by 2002:a05:6402:43c6:b0:5e0:7ff3:20c with SMTP id 4fb4d7f45d1cf-5e4d6b0cb67mr5088916a12.17.1740794664634; Fri, 28 Feb 2025 18:04:24 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Feb 2025 18:04:24 -0800 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 28 Feb 2025 18:04:24 -0800 X-Gm-Features: AQ5f1Jp7G-MuIOkCVqgwfKXHslW9OR8i_0_WEePesuU4j29bPdmu5wKVsPumxs4 Message-ID: Subject: control message for bug #71522 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 71522 wishlist quit