fix(emacs/lean-server): Emacs 24 compatibility
This commit is contained in:
parent
a8ba78e20a
commit
1f07319bc7
1 changed files with 2 additions and 2 deletions
|
|
@ -339,7 +339,7 @@
|
|||
|
||||
(defun lean-server-compute-roi (sess)
|
||||
(pcase lean-server-check-mode
|
||||
('visible-lines
|
||||
(`visible-lines
|
||||
(-mapcat (lambda (buf)
|
||||
(with-current-buffer buf
|
||||
(when (and (get-buffer-window) (eq lean-server-session sess))
|
||||
|
|
@ -349,7 +349,7 @@
|
|||
,(max 1 (- (line-number-at-pos min-pt) 5)) .
|
||||
,(+ (line-number-at-pos max-pt) 5)))))))
|
||||
(buffer-list)))
|
||||
('visible-files
|
||||
(`visible-files
|
||||
(--mapcat (with-current-buffer it
|
||||
(when (and (get-buffer-window) (eq lean-server-session sess))
|
||||
`((,(buffer-file-name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue