[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8579025 04/11: Remove delay-mode-hooks from ggtags-fontify
From: |
Leo Liu |
Subject: |
[elpa] master 8579025 04/11: Remove delay-mode-hooks from ggtags-fontify-code |
Date: |
Wed, 25 Jul 2018 12:34:46 -0400 (EDT) |
branch: master
commit 8579025b9b89c53221c6c608b92a85734ffb0116
Author: Leo Liu <address@hidden>
Commit: Leo Liu <address@hidden>
Remove delay-mode-hooks from ggtags-fontify-code
which may interact badly with jit-lock-after-change causing eldoc to
throw errors such as: eldoc error: (args-out-of-range 1 36).
---
ggtags.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index c9e79e7..b3ab1f6 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -1,6 +1,6 @@
;;; ggtags.el --- emacs frontend to GNU Global source code tagging system -*-
lexical-binding: t; -*-
-;; Copyright (C) 2013-2016 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2017 Free Software Foundation, Inc.
;; Author: Leo Liu <address@hidden>
;; Version: 0.8.13
@@ -2053,17 +2053,17 @@ When finished invoke CALLBACK in BUFFER with process
exit status."
(string (cl-labels ((prepare-buffer ()
(with-current-buffer
(get-buffer-create " *Code-Fontify*")
- (delay-mode-hooks (funcall mode))
+ (let ((inhibit-read-only t))
+ (erase-buffer))
+ (funcall mode)
(setq font-lock-mode t)
(funcall font-lock-function font-lock-mode)
(setq jit-lock-mode nil)
(current-buffer))))
(with-current-buffer (prepare-buffer)
(let ((inhibit-read-only t))
- (erase-buffer)
(insert code)
- (font-lock-default-fontify-region
- (point-min) (point-max) nil))
+ (font-lock-default-fontify-region (point-min) (point-max)
nil))
(buffer-string))))))
(defun ggtags-get-definition-default (defs)
- [elpa] master updated (61bad71 -> 543fa78), Leo Liu, 2018/07/25
- [elpa] master 2149f3a 01/11: Ignore errors in ggtags-find-project even if debug-on-error, Leo Liu, 2018/07/25
- [elpa] master c794894 03/11: Merge pull request #146 from garyo/master, Leo Liu, 2018/07/25
- [elpa] master e043ddd 02/11: Strip CR as well as newline from subprocess output, Leo Liu, 2018/07/25
- [elpa] master 8579025 04/11: Remove delay-mode-hooks from ggtags-fontify-code,
Leo Liu <=
- [elpa] master 9d1ecf9 05/11: Consider `ggtags-sort-by-nearness` in `ggtags-show-definition`, Leo Liu, 2018/07/25
- [elpa] master 6293c43 06/11: Fix #156: handle tag names starting with `-', Leo Liu, 2018/07/25
- [elpa] master 25946d3 07/11: Implement #162: New variable ggtags-extra-args, Leo Liu, 2018/07/25
- [elpa] master eec392d 08/11: Fix #163: Incorrect use of --nearness option, Leo Liu, 2018/07/25
- [elpa] master bf263af 09/11: Use buffer-no-properties where applicable, Leo Liu, 2018/07/25
- [elpa] master 543fa78 11/11: Merge branch 'master' of github.com:leoliu/ggtags, Leo Liu, 2018/07/25
- [elpa] master 17a121a 10/11: Version 0.8.13, Leo Liu, 2018/07/25