unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65487: 30.0.50; [PATCH] Fix 'makefile-browser-client' variable initialization
@ 2023-08-23 17:45 Christoph via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-08-24  7:25 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-23 17:45 UTC (permalink / raw)
  To: 65487

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

Hi,

while browsing the sources of `make-mode', I noticed that the variable
initialization of `makefile-browser-client' is wrong. It is
initialized with its documentation string.  This is not a really a
problem, the makefile browser still works, but the documentation
string is lost as soon as the browser is opened once.

-- Christoph

[-- Attachment #2: 0001-Fix-makefile-browser-client-variable-initialization.patch --]
[-- Type: text/x-patch, Size: 948 bytes --]

From 768e48e58a661bd045a25dacbebccdb8cb26dd85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20G=C3=B6ttschkes?= <just.mychris@googlemail.com>
Date: Wed, 23 Aug 2023 19:34:14 +0200
Subject: [PATCH] Fix 'makefile-browser-client' variable initialization

* lisp/progmodes/make-mode.el (makefile-browser-client):
Initialize to nil
---
 lisp/progmodes/make-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index 017a551bc05..ff2aa137813 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -695,7 +695,7 @@ makefile-macro-table
   "Table of all macro names known for this buffer.")
 (put 'makefile-macro-table 'risky-local-variable t)
 
-(defvar makefile-browser-client
+(defvar makefile-browser-client nil
   "A buffer in Makefile mode that is currently using the browser.")
 
 (defvar makefile-browser-selection-vector nil)
-- 
2.42.0


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

end of thread, other threads:[~2023-08-24 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-23 17:45 bug#65487: 30.0.50; [PATCH] Fix 'makefile-browser-client' variable initialization Christoph via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-24  7:25 ` Eli Zaretskii
2023-08-24 21:01   ` Stefan Kangas

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