From: Stephen Berman Date: Mon, 18 Jan 2021 16:29:41 +0000 (+0100) Subject: Fix problem with `epa-list-keys' bugging out X-Git-Tag: emacs-28.0.90~4235^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=455f08c095c5c1606142144508fc91eab0860a6a;p=emacs.git Fix problem with `epa-list-keys' bugging out * lisp/epa.el (epa--list-keys): Partially revert 517285f7cae which removed the wrong property (bug#44134). --- diff --git a/lisp/epa.el b/lisp/epa.el index db2b1271473..e909b1d8698 100644 --- a/lisp/epa.el +++ b/lisp/epa.el @@ -359,8 +359,8 @@ DOC is documentation text to insert at the start." ;; Find the end of the documentation text at the start. ;; Set POINT to where it ends, or nil if ends at eob. - (unless (get-text-property point 'epa-list-keys) - (setq point (next-single-property-change point 'epa-list-keys))) + (unless (get-text-property point 'epa-key) + (setq point (next-single-property-change point 'epa-key))) ;; If caller specified documentation text for that, replace the old ;; documentation text (if any) with what was specified. @@ -374,7 +374,7 @@ DOC is documentation text to insert at the start." ;; Now delete the key description text, if any. (when point (delete-region point - (or (next-single-property-change point 'epa-list-keys) + (or (next-single-property-change point 'epa-key) (point-max))) (goto-char point))