branch: externals/ellama commit ea63023cc4f46522c3438ecf819d4ef4a50f7ed1 Author: Sergey Kostyaev <sskosty...@gmail.com> Commit: Sergey Kostyaev <sskosty...@gmail.com>
Remove `ellama-long-lines-length` customization and related usage Removed the custom variable ellama-long-lines-length and its references in the code. This change simplifies the configuration and improves user experience by avoiding potential issues with unexpected behavior. --- README.org | 3 --- ellama.el | 13 ++----------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/README.org b/README.org index 1ee2cf5792..456e09202b 100644 --- a/README.org +++ b/README.org @@ -404,9 +404,6 @@ argument generated text string. - ~ellama-sessions-directory~: Directory for saved ellama sessions. - ~ellama-major-mode~: Major mode for ellama commands. Org mode by default. -- ~ellama-long-lines-length~: Long lines length for fill paragraph - call. Too low value can break generated code by splitting long - comment lines. Default value 100. - ~ellama-session-auto-save~: Automatically save ellama sessions if set. Enabled by default. - ~ellama-naming-scheme~: How to name new sessions. diff --git a/ellama.el b/ellama.el index 1413134270..4b5dedd5eb 100644 --- a/ellama.el +++ b/ellama.el @@ -456,12 +456,6 @@ It should be a function with single argument generated text string." :group 'ellama :type 'symbol) -(defcustom ellama-long-lines-length 100 - "Long lines length for fill paragraph call. -Too low value can break generated code by splitting long comment lines." - :group 'ellama - :type 'integer) - (defcustom ellama-translate-italic t "Translate italic during markdown to org transformations." :group 'ellama @@ -530,8 +524,7 @@ Too low value can break generated code by splitting long comment lines." (if ellama-fill-paragraphs (with-temp-buffer (insert (propertize text 'hard t)) - (let ((fill-column ellama-long-lines-length) - (use-hard-newlines t)) + (let ((use-hard-newlines t)) (fill-region (point-min) (point-max) nil t t)) (buffer-substring-no-properties (point-min) (point-max))) text)) @@ -595,8 +588,7 @@ Too low value can break generated code by splitting long comment lines." ;; filling long lines (goto-char beg) (when ellama-fill-paragraphs - (let ((fill-column ellama-long-lines-length) - (use-hard-newlines t)) + (let ((use-hard-newlines t)) (fill-region beg end nil t t)))) (defun ellama--replace-outside-of-code-blocks (text) @@ -1505,7 +1497,6 @@ If EPHEMERAL non nil new session will not be associated with any file." (with-temp-buffer (insert (propertize content 'hard t)) (let ((fill-prefix "> ") - (fill-column ellama-long-lines-length) (use-hard-newlines t) (comment-start ">") (comment-empty-lines t))