Skip to content

Commit

Permalink
Merge branch 'ecl/fix-rtags-compile-file' from eclig
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Jun 15, 2018
2 parents d797c06 + 95622b0 commit f22de98
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/rtags.el
Original file line number Diff line number Diff line change
Expand Up @@ -4483,9 +4483,8 @@ definition."
(let* ((commands (mapcar (lambda (build)
(let ((lines (split-string build "\n" t)))
(cons (combine-and-quote-strings (cdr lines))
(substring (car lines) 5))))
(split-string (buffer-string) "(\n)?pwd: " t)))
(old-compile-command compile-command)
(car lines))))
(split-string (buffer-string) "\\(?:\n\\)?pwd: " t)))
(command (car commands)))
(when (cond ((> (length commands) 1)
(let ((answer (completing-read "Choose build: " commands)))
Expand All @@ -4494,8 +4493,8 @@ definition."
((null commands) (message "RTags doesn't know how to compile this file") nil)
(t))
(cd (cdr command))
(compile (car command))
(setq compile-command old-compile-command)))))))
(let (compile-command)
(compile (car command)))))))))

;;;###autoload
(defun rtags-recompile-file ()
Expand Down

0 comments on commit f22de98

Please sign in to comment.