Permalink
Browse files

Don't use beginning-of-buffer in elisp code.

  • Loading branch information...
1 parent fe4053f commit 7d892a5bcad2cd10983925fb9816f3ef54d71785 @nelhage committed Jan 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ddx.el
View
@@ -127,7 +127,7 @@
(defun ddx-highlight-label (label)
(interactive)
(save-excursion
- (beginning-of-buffer)
+ (goto-char (point-min))
(while (re-search-forward (concat "\\<" label "\\>") nil t)
(let ((start (match-beginning 0))
(end (match-end 0)))

0 comments on commit 7d892a5

Please sign in to comment.