GNU bug report logs -
#6910
23: hl-line-mode fails to work with emacsclient
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6910 in the body.
You can then email your comments to 6910 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, konrad.podczeck <at> univie.ac.at, bug-gnu-emacs <at> gnu.org
:
bug#6910
; Package
emacs
.
(Wed, 25 Aug 2010 14:01:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
David Reitter <david.reitter <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
konrad.podczeck <at> univie.ac.at, bug-gnu-emacs <at> gnu.org
.
(Wed, 25 Aug 2010 14:01:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
X-debbugs-cc: konrad.podczeck <at> univie.ac.at
The report below points out, in essence, that when we jump to a line with an emacsclient command such as
emacsclient --no-wait +55 "~/foo.tex"
then the line highlighting is not updated in hl-line-mode.
This turns out to be due to server-execute running the post-command-hooks without the right buffers being current, and hl-line-mode defines buffer-local hooks. The patch below addresses that and I'm going to commit it unless somebody objects.
diff --git a/lisp/server.el b/lisp/server.el
index aadaeae..1905f70 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1083,8 +1083,7 @@ The following commands are accepted by the client:
(let* ((buffers
(when files
(run-hooks 'pre-command-hook)
- (prog1 (server-visit-files files proc nowait)
- (run-hooks 'post-command-hook)))))
+ (server-visit-files files proc nowait))))
(mapc 'funcall (nreverse commands))
@@ -1169,7 +1168,8 @@ so don't mark these buffers specially, just visit them normally."
(unless server-buffer-clients
(setq server-existing-buffer t)))
(server-goto-line-column (cdr file))
- (run-hooks 'server-visit-hook))
+ (run-hooks 'server-visit-hook)
+ (run-hooks 'post-command-hook)) ;; hooks may be specific to current buffer
(unless nowait
;; When the buffer is killed, inform the clients.
(add-hook 'kill-buffer-hook 'server-kill-buffer nil t)
Begin forwarded message:
> From: Konrad Podczeck <konrad.podczeck <at> univie.ac.at>
> Date: August 23, 2010 4:22:54 PM EDT
> To: aquamacs-devel <at> aquamacs.org
> Cc: Reitter David <david.reitter <at> gmail.com>
> Subject: Syncing from Skim to Aquamacs and HL-line mode don't work together
>
> Hi David,
>
> I observe the following with the actual Aquamacs (in contrast to the 2.0 distribution):
>
> Turn HL-line mode on. Syncing from Skim (or Xdvi) to Aquamacs makes the cursor going to the appropriate line, however the line does not get highlighted.
>
> Konrad
bug marked as fixed in version 24.1, send any further explanations to David Reitter <david.reitter <at> gmail.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Oct 2010 22:04:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 31 Oct 2010 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 321 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.