1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

Minor ewoc fix for bug#3261.

* lisp/emacs-lisp/ewoc.el (ewoc-goto-next): Give a more explicit error
if there is no node.
This commit is contained in:
Bob Rogers 2011-03-03 21:16:56 -08:00 committed by Glenn Morris
parent 35fee6ce58
commit a918ed9b8e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-03-04 Bob Rogers <rogers@rgrjr.dyndns.org>
* emacs-lisp/ewoc.el (ewoc-goto-next): Give a more explicit error
if there is no node. (Bug#3261)
2011-03-04 Leo <sdl.web@gmail.com>
* time.el (display-time-world-list): Fix typo. (Bug#7571)

View File

@ -495,6 +495,8 @@ Return the node (or nil if we just passed the last node)."
;; Never step below the first element.
;; (unless (ewoc--filter-hf-nodes ewoc node)
;; (setq node (ewoc--node-nth dll -2)))
(unless node
(error "No next"))
(ewoc-goto-node ewoc node)))
(defun ewoc-goto-node (ewoc node)