[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 1826307 27/50: Resolve bug#43644 where final
From: |
Stefan Monnier |
Subject: |
[elpa] externals/hyperbole 1826307 27/50: Resolve bug#43644 where final double quote was trimmed from strings. |
Date: |
Wed, 17 Mar 2021 18:44:18 -0400 (EDT) |
branch: externals/hyperbole
commit 18263078babd16220ed7a5441cb3740a36290c47
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>
Resolve bug#43644 where final double quote was trimmed from strings.
---
Changes | 3 +++
hpath.el | 7 ++++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/Changes b/Changes
index 5aa21dc..312f75f 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
2020-11-22 Bob Weiner <rsw@gnu.org>
+* hpath.el (hpath:trim): Fix to not trim trailing quoted double quote,
+ resolving bug#43644.
+
* hibtypes.el (mail-address): If mail-address-mode-list is set to nil,
activate this ibtype in any major mode.
diff --git a/hpath.el b/hpath.el
index 348b3f7..781f34a 100644
--- a/hpath.el
+++ b/hpath.el
@@ -1439,7 +1439,12 @@ Returns LINKNAME unchanged if it is not a symbolic link
but is a pathname."
(defun hpath:trim (path)
"Return PATH with any [\" \t\n\r] characters trimmed from its start and end."
- (string-trim path "[\" \t\n\r]+" "[\" \t\n\r]+"))
+ ;; Trim only matching starting and ending quoted double quotes (must
+ ;; be a single line string).
+ (setq path (string-trim path))
+ (when (string-match "\\`\".*\"\\'" path)
+ (setq path (string-trim path "\"" "\"")))
+ path)
(defun hpath:normalize (filename)
"Normalize and return PATH if PATH is a valid, readable path, else signal
error."
- [elpa] externals/hyperbole cfc61a3 22/50: Eliminate a number of order-based byte-compilation warnings, (continued)
- [elpa] externals/hyperbole cfc61a3 22/50: Eliminate a number of order-based byte-compilation warnings, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole e3544c8 23/50: Revert improper application of "Use \\0 for matched Nth substitution", Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole f1b2cba 24/50: Add dependency on hvar to resolve use of var:remove-all (#43), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 312c858 25/50: kexport.el - use lowercase HTML tags; mail-address ibtype allow trigger in any major mode, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole a3b9d6d 26/50: Merge branch 'master' of github.com:rswgnu/hyperbole, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 398f8e4 32/50: Add hypb:def-to-buffer to hypb.el for fast def copying, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole a831ef9 36/50: Fix bug #46606 by replacing hkey-define-key with hkey-global-set-key, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 8969fe9 43/50: Merge branch 'master' of hyperbole, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole c8947dd 47/50: Merge branch 'master' of hyperbole, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole db73cf7 19/50: Use \0 for matched Nth substitution (see also commit #c0e48fb3), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 1826307 27/50: Resolve bug#43644 where final double quote was trimmed from strings.,
Stefan Monnier <=
- [elpa] externals/hyperbole f38a8dd 28/50: Fix Hyrolo logicial searches; bug fixes; handle file:// URLs better, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 3469ea3 29/50: Release defil and defal simpler implicit button type create macros, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 6a8154a 33/50: Add first unit tests (#46), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole a44b392 34/50: Add UNIX shell error implicit button support, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole aa6f2f6 38/50: Verify error message from hpath:find is correct (#50), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole aad4494 40/50: Add smart-magit-tab: Do what TAB or RET does, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole d1dcd54 41/50: * Disable magit-auto-revert-mode-enable-in-buffers in hyrolo buffer, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole c7d62e1 46/50: Make defil handle action type symbols and strings, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 6b2c073 49/50: Correct test cases failing on mac (#55), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 4eef4e9 50/50: Install with-simulated-input if not available (#54), Stefan Monnier, 2021/03/17