From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Newsgroups: gmane.emacs.bugs Subject: bug#68088: [PATCH] Fix incorrect docstring link in default-directory Date: Thu, 28 Dec 2023 17:58:53 +0100 Message-ID: <18cb15d56a4.11388c6eb77569.4265473526881657065@excalamus.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_252937_199708647.1703782733476" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Zoho Mail To: 68088@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 28 19:26:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rIv5P-0003jc-2q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Dec 2023 19:26:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIv54-0004Uz-KE; Thu, 28 Dec 2023 13:26:06 -0500 Original-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 1rIv51-0004Uk-Nf for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 13:26:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIv50-0007FF-OJ for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIv50-00025R-3r for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2023 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68088 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: "bug-gnu-emacs" Original-Received: via spool by submit@debbugs.gnu.org id=B.17037879317977 (code B ref -1); Thu, 28 Dec 2023 18:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Dec 2023 18:25:31 +0000 Original-Received: from localhost ([127.0.0.1]:40330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIv4U-00024a-3w for submit@debbugs.gnu.org; Thu, 28 Dec 2023 13:25:31 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:55916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rItis-0000vO-N4 for submit@debbugs.gnu.org; Thu, 28 Dec 2023 11:59:09 -0500 Original-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 1rItin-0006W5-Jo for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 11:59:01 -0500 Original-Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rItil-0002wL-Gn for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 11:59:01 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1703782735; cv=none; d=zohomail.com; s=zohoarc; b=Mk3KdXa1FBxJExB/XnU1O1x4QyTqDSLSXO/rKCLkr5rEmQmpGSRk8FwRahVguk4L/2NAtexKazCBPuEsehyxeNTSO3t1SJoSlAXFZBuhCnLSZoSSPxGb71wc+eKbOVQFRRMKAY6IzPQdT48fu7UZURiTCV9R8X1U2J0kkuzLCNc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703782735; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=GH/MpwcyWZ+DrCrrJLjWHfbkmFtzCTa2O9QmEIhtuQw=; b=JEAxxkeNRiERlwDS3B4J/FT+kMRtZo4eLqOT/xaP12txyPMIEClCpzCMyNNNW3MUV9U7zAycSQadscL2w4RW3Yqi/x+8zuO36f30bkTEO90XyHNzJHL+Vm9+En0s/X4t9iSPsek3ozU5FL1F6pCLW9sntzAMtJXJuzMCbO/rRUI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1703782735; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Message-Id:Message-Id:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Reply-To:Cc; bh=GH/MpwcyWZ+DrCrrJLjWHfbkmFtzCTa2O9QmEIhtuQw=; b=fsadsjFg01tM8vyokheGs87VPdx3wOvdF80xoivHCqL7lb8l+KAuRv4EhjBDSWIy enyuX8RURo9gt0txCtLDggtvLlrAv9gg878Bz1W094OcFqVY8u3R9TbWaVTuJT7dSwj fodh4LCstUgn3rWfzf/zeyfHWhkWumnTbqJipl4k= Original-Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1703782733556947.6875171859982; Thu, 28 Dec 2023 08:58:53 -0800 (PST) Importance: Medium X-Mailer: Zoho Mail X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-1.1.0/203.696.75 Received-SPF: pass client-ip=136.143.188.15; envelope-from=matt@excalamus.com; helo=sender4-op-o15.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 28 Dec 2023 13:25:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276991 Archived-At: ------=_Part_252937_199708647.1703782733476 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C2=A0https://liberapay.com/org-mode ------=_Part_252937_199708647.1703782733476 Content-Type: application/octet-stream; name=0001-fix-incorrect-docstring-link.patch Content-Transfer-Encoding: 7bit X-ZM_AttachId: 139230755334770100 Content-Disposition: attachment; filename=0001-fix-incorrect-docstring-link.patch diff --git a/src/buffer.c b/src/buffer.c index ea0c23192b7..0696524a0fd 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5359,7 +5359,7 @@ visual lines rather than logical lines. See the documentation of Qstringp, doc: /* Name of default directory of current buffer. It should be an absolute directory name; on GNU and Unix systems, -these names start with `/' or `~' and end with `/'. +these names start with '/' or '~' and end with '/'. To interactively change the default directory, use command `cd'. */); DEFVAR_PER_BUFFER ("auto-fill-function", &BVAR (current_buffer, auto_fill_function), ------=_Part_252937_199708647.1703782733476--