Merge pull request #825 from pronobis/ad-handle-definition

Fixed the problem with ido/untabify defadvice triggering got redefined error
This commit is contained in:
Bozhidar Batsov 2015-04-17 00:04:40 +03:00
commit 30fea6d9d6
2 changed files with 2 additions and 0 deletions

View file

@ -285,6 +285,7 @@ there's a region, all lines that region covers will be duplicated."
(interactive)
(byte-recompile-directory prelude-dir 0))
(require 'ido)
(defun prelude-sudo-edit (&optional arg)
"Edit currently visited file as root.

View file

@ -298,6 +298,7 @@ The body of the advice is in BODY."
(interactive
(list (not (region-active-p)))))
(require 'tabify)
(defmacro with-region-or-buffer (func)
"When called with no active region, call FUNC on current buffer."
`(defadvice ,func (before with-region-or-buffer activate compile)