Browse Source

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

Fixed the problem with ido/untabify defadvice triggering got redefined error
custom
Bozhidar Batsov 11 years ago
parent
commit
30fea6d9d6
  1. 1
      core/prelude-core.el
  2. 1
      core/prelude-editor.el

1
core/prelude-core.el

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

1
core/prelude-editor.el

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

Loading…
Cancel
Save