GNU bug report logs - #70331
[PATCH] Call custom folding functions with consistent point

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Thu, 11 Apr 2024 05:49:03 UTC

Severity: normal

Tags: patch

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 70331 <at> debbugs.gnu.org (full text, mbox):

From: Paul Nelson <ultrono <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: 70331 <at> debbugs.gnu.org
Subject: Re: bug#70331: [PATCH] Call custom folding functions with consistent
 point
Date: Sun, 14 Apr 2024 17:32:08 +0200
[Message part 1 (text/plain, inline)]
Hi Arash,

OK, I see.  The commit that you shared improves the situation for
vc.el, except that I think 64 should be 66 (= 74 - 8).  I attach what
I'm using, which also tells magit how long the summary should be.
Unfortunately, I don't see a way to set the fill-column in magit via
directory local variables (without eval).  I've added the following
hack to my config:

(defvar git-fill-column-alist '(("auctex" . 66)))

(defun set-git-commit-fill-column ()
  (when-let ((project (project-current))
             (root (project-root project))
             (name (file-name-nondirectory (directory-file-name root)))
             (assn (assoc name git-fill-column-alist)))
    (setq fill-column (cdr assn))))

(add-hook 'git-commit-mode-hook 'set-git-commit-fill-column)


Paul
[0001-Tweak-.dir-locals.el.patch (application/x-patch, attachment)]

This bug report was last modified 1 year and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.