From: Lämppi Lütti Date: Sat, 22 Oct 2022 04:58:46 +0000 (+0300) Subject: Fix detection of vtable start and end X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55c2180d2c34007182edc06b159ca19bd1b584bf;p=emacs.git Fix detection of vtable start and end * lisp/emacs-lisp/vtable.el (vtable-beginning-of-table) (vtable-end-of-table): Fix detection of vtable limits. (Bug#58712) Copyright-paperwork-exempt: yes --- diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 0551053df8e..61670ea69ca 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -240,13 +240,14 @@ See info node `(vtable)Top' for vtable documentation." (defun vtable-beginning-of-table () "Go to the start of the current table." - (if (text-property-search-backward 'vtable (vtable-current-table)) + (if (or (text-property-search-backward 'vtable (vtable-current-table) #'eq) + (get-text-property (point) 'vtable)) (point) (goto-char (point-min)))) (defun vtable-end-of-table () "Go to the end of the current table." - (if (text-property-search-forward 'vtable (vtable-current-table)) + (if (text-property-search-forward 'vtable (vtable-current-table) #'eq) (point) (goto-char (point-max))))