.emacs buffer, and I'm trying to highlight a single line in another buffer that I have opened in a different window.
I have code like this that should change the single line's background to green:
(let* ((dir "/home/kuba/projects/jcubic/terminal/repo") (buffer (get-file-buffer (concat dir "/js/jquery.terminal-src.js"))) (start '((line . 3156) (column . 0))) (end '((line . 3156) (column . 18)))) (with-current-buffer buffer (let* ((start-line-pos (line-beginning-position (cdr (assoc 'line start)))) (start-pos (+ start-line-pos (cdr (assoc 'column start)))) (end-line-pos (line-beginning-position (cdr (assoc 'line end)))) (end-pos (+ end-line-pos (cdr (assoc 'column end))))) (hlt-highlight-region start-pos end-pos '((t (:background "green")))))))
But the code is returning
nil and nothing happens. What's wrong with this code?