branch: externals/consult commit 07ea5421fbcb65b2207a43a0941124a95a47abc7 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Revert "Protect against invalid registers (Fix #1095)" This reverts commit 8f228cc1d48af9158c9ba71d2f20a9aaaf4daf7e. --- consult-register.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/consult-register.el b/consult-register.el index 159207939e..ec01cae043 100644 --- a/consult-register.el +++ b/consult-register.el @@ -175,7 +175,6 @@ Raise an error if the list is empty and NOERROR is nil." ;; invalid markers. Such registers don't do anything, and ;; can be ignored. if (and (cdr reg) - (not (equal (cadr reg) "Unprintable entity")) (or (not (markerp (cdr reg))) (marker-buffer (cdr reg))) (or (not filter) (funcall filter reg))) collect reg) @@ -230,8 +229,6 @@ for the meaning of prefix ARG." (and (consult-register--alist) (register-read-with-preview "Load register: ")) current-prefix-arg)) - (unless (assoc reg (consult-register--alist)) - (user-error "Register not valid")) (condition-case err (jump-to-register reg arg) (user-error