GNU bug report logs - #68088
[PATCH] Fix incorrect docstring link in default-directory

Previous Next

Package: emacs;

Reported by: Matt <matt <at> excalamus.com>

Date: Thu, 28 Dec 2023 18:26:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68088 in the body.
You can then email your comments to 68088 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#68088; Package emacs. (Thu, 28 Dec 2023 18:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matt <matt <at> excalamus.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 28 Dec 2023 18:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matt <matt <at> excalamus.com>
To: "bug-gnu-emacs" <bug-gnu-emacs <at> gnu.org>
Subject: [PATCH] Fix incorrect docstring link in default-directory
Date: Thu, 28 Dec 2023 17:58:53 +0100
[Message part 1 (text/plain, inline)]
Hi,

Slashes in the docstring for `default-directory' incorrectly link to
`/', the divide function.

"...these names start with `/' or `~' and end with `/'."

Obviously, slashes in this context refer to the character, not the
operator.

Checking the sources, the error is still present on master.

See:
https://git.savannah.gnu.org/cgit/emacs.git/tree/src/buffer.c#n5343

The attached patch changes the leading grave on each slash and the
tilde to a single quote mark.

I was unable to test the patch directly.  However, such changes to an
Elisp defun docstring removes the links and preserves the quoting
(albeit a different kind of quote).

--
Matt Trzcinski
Emacs Org contributor (ob-shell)
Learn more about Org mode at https://orgmode.org
Support Org development at https://liberapay.com/org-mode
[0001-fix-incorrect-docstring-link.patch (application/octet-stream, attachment)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 28 Dec 2023 19:49:02 GMT) Full text and rfc822 format available.

Notification sent to Matt <matt <at> excalamus.com>:
bug acknowledged by developer. (Thu, 28 Dec 2023 19:49:02 GMT) Full text and rfc822 format available.

Message #10 received at 68088-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Matt <matt <at> excalamus.com>
Cc: 68088-done <at> debbugs.gnu.org
Subject: Re: bug#68088: [PATCH] Fix incorrect docstring link in
 default-directory
Date: Thu, 28 Dec 2023 21:48:33 +0200
> Date: Thu, 28 Dec 2023 17:58:53 +0100
> From: Matt <matt <at> excalamus.com>
> 
> Slashes in the docstring for `default-directory' incorrectly link to
> `/', the divide function.
> 
> "...these names start with `/' or `~' and end with `/'."
> 
> Obviously, slashes in this context refer to the character, not the
> operator.
> 
> Checking the sources, the error is still present on master.
> 
> See:
> https://git.savannah.gnu.org/cgit/emacs.git/tree/src/buffer.c#n5343
> 
> The attached patch changes the leading grave on each slash and the
> tilde to a single quote mark.

Thanks, I fixed that by using double-quotes instead of single quotes.

Closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Jan 2024 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.