Merge topic 'emacs-mode-help-off-by-one'
9dc384f6
cmake-mode.el: Fix help completion item lists with CMake >= 3.0 (#16019)
This commit is contained in:
commit
f6d66b04a3
|
@ -304,7 +304,8 @@ and store the result as a list in LISTVAR."
|
|||
(save-window-excursion
|
||||
(cmake-command-run (concat "--help-" listname "-list") nil temp-buffer-name)
|
||||
(with-current-buffer temp-buffer-name
|
||||
(set listvar (cdr (split-string (buffer-substring-no-properties (point-min) (point-max)) "\n" t))))))
|
||||
; FIXME: Ignore first line if it is "cmake version ..." from CMake < 3.0.
|
||||
(set listvar (split-string (buffer-substring-no-properties (point-min) (point-max)) "\n" t)))))
|
||||
(symbol-value listvar)
|
||||
))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue