Only call server-running-p on Emacs 23 or newer
This commit is contained in:
parent
8bf8a36db6
commit
d4aa3ff85a
1 changed files with 2 additions and 1 deletions
3
magit.el
3
magit.el
|
@ -3826,7 +3826,8 @@ With a non numeric prefix ARG, show all entries"
|
|||
"Start a git rebase -i session, old school-style."
|
||||
(interactive)
|
||||
(require 'server)
|
||||
(unless (server-running-p)
|
||||
(if (or (< emacs-major-version 23)
|
||||
(not (server-running-p)))
|
||||
(server-start))
|
||||
(let* ((section (get-text-property (point) 'magit-section))
|
||||
(commit (and (member 'commit (magit-section-context-type section))
|
||||
|
|
Loading…
Add table
Reference in a new issue