Skip to content

Commit

Permalink
Fix compilation warnings
Browse files Browse the repository at this point in the history
Emacs complains when byte-compiling this file
```
elpy-django.el:126:37:Warning: ‘beginning-of-buffer’ is for interactive use
    only; use ‘(goto-char (point-min))’ instead.
elpy-django.el:117:87:Warning: ‘beginning-of-buffer’ is for interactive use
    only; use ‘(goto-char (point-min))’ instead.
```
This PR should fix it.
  • Loading branch information
AdamNiederer committed Dec 27, 2016
1 parent 7899993 commit af8f151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elpy-django.el
Expand Up @@ -113,10 +113,10 @@ require arguments in order for it to work."
(with-temp-buffer
(progn
(insert help-output)
(beginning-of-buffer)
(goto-char (point-min))
(delete-region (point) (search-forward "Available subcommands:" nil nil nil))
;; cleanup [auth] and stuff
(beginning-of-buffer)
(goto-char (point-min))
(save-excursion
(replace-regexp "\\[.*\\]" ""))
(buffer-string))))
Expand Down

0 comments on commit af8f151

Please sign in to comment.