Authentication-Results: mail-b.sr.ht; dkim=pass header.d=kyleam.com header.i=@kyleam.com Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by mail-b.sr.ht (Postfix) with ESMTPS id BFC6611EF54 for <~protesilaos/denote@lists.sr.ht>; Sat, 23 Jul 2022 19:35:35 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1658604934; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=U9t2mSMUN991ibYGYvKFFuVwBs1/ID9SJZGDCjF65bc=; b=M6KXrAr2WZUnpxd2AN8aA5VG0I74XhBmbhIxcutZg8YZlhcxuNp3tukAoYiKiD3A/AWc/d UUHN6LI3vrDUQ12DA0rvFfwOXw9LmRbedjYPYzOcLoP9+B8iskLZk5fwgDHioFSfOnsbiI QgC2v7O+zqGYGnHhNwS/+l8fTm48Gk3O0Njz6DO19WoG9ULWXvIMYpds0ZuV0PduHlx9T3 Y7WOCJ9+gvFzhqqqRBYoI2038Yv8gd8QhOtOuRE7XkabdB0X/Ga+gtooKzQD8cuTAHqdUk Sw3fIAyFSCTakBb4gq1cC3aR4IL+nDBt0UJU2y7NIeMQnL9N3DFN7HEj996inQ== From: Kyle Meyer To: ~protesilaos/denote@lists.sr.ht Subject: [PATCH] Fix quote protection in doc strings Date: Sat, 23 Jul 2022 15:35:28 -0400 Message-Id: <20220723193528.13297-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyleam.com A few doc strings put \\ in front of a single quote, but that doesn't protect the quote from being processed according to text-quoting-style. Use \\= instead to ensure that the apostrophe is rendered as is. --- denote.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/denote.el b/denote.el index f757d05..b7533a1 100644 --- a/denote.el +++ b/denote.el @@ -809,7 +809,7 @@ (defun denote-type () "Create note while prompting for a file type. This is the equivalent to calling `denote' when `denote-prompts' -is set to \\'(file-type title keywords)." +is set to \\='(file-type title keywords)." (declare (interactive-only t)) (interactive) (let ((denote-prompts '(file-type title keywords))) @@ -891,7 +891,7 @@ (defun denote-date () that plus the time: 2022-06-16 14:30 This is the equivalent to calling `denote' when `denote-prompts' -is set to \\'(date title keywords)." +is set to \\='(date title keywords)." (declare (interactive-only t)) (interactive) (let ((denote-prompts '(date title keywords))) @@ -941,7 +941,7 @@ (defun denote-subdirectory () `denote-directory' and any subdirectory thereof. This is equivalent to calling `denote' when `denote-prompts' is set to -\\'(subdirectory title keywords)." +\\='(subdirectory title keywords)." (declare (interactive-only t)) (interactive) (let ((denote-prompts '(subdirectory title keywords))) base-commit: 8f3b20471c6f2f95f7aadcbea54896285912635d -- 2.37.0