newly added font-lock-fontify-region function in recent update #607
Closed
seunghoonha
started this conversation in
General
Replies: 1 comment
-
Ah, it was a bug! Thanks for reporting it. It should be fixed now, please update and test.
As for why it was added, please read the corresponding commit message, it is explained in detail.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package gptel is installed.
Requires: emacs-27.1, transient-0.7.4, compat-29.1.4.1
Website: https://github.com/karthink/gptel
Keywords: convenience
Author: Karthik Chikmagalur karthik.chikmagalur@gmail.com
Other versions: 20250201.2119 (melpa), 0.9.7 (nongnu).
I have installed 20250201 version, and I noticed that the cursor was automatically moving after LLM finishes responding, which was not the case before. So I investigated the issue and it was because of ;; (when (derived-mode-p 'org-mode) ;; Work around bug in `org-fontify-extend-region'.
;; (add-hook 'gptel-post-response-functions #'font-lock-fontify-region nil t)), in gptel-mode function. So I had to comment it out to restore no automatic cursor movement after responses. So the line of code says checking if the current buffer is in Org mode. If it is, it adds the =font-lock-fontify-region= function to the =gptel-post-response-functions= hook. It would be appreciated why it was added and why it was moving the cursor automatically
Beta Was this translation helpful? Give feedback.
All reactions