GNU bug report logs - #79038
[PATCH] Add support for Vi/Vim modelines.

Previous Next

Package: emacs;

Reported by: James Youngman <james <at> youngman.org>

Date: Thu, 17 Jul 2025 11:06:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 79038 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79038; Package emacs. (Thu, 17 Jul 2025 11:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to James Youngman <james <at> youngman.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 17 Jul 2025 11:06:03 GMT) Full text and rfc822 format available.

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

From: James Youngman <james <at> youngman.org>
To: bug-gnu-emacs <at> gnu.org
Cc: James Youngman <james <at> youngman.org>, James Youngman <youngman <at> google.com>
Subject: [PATCH] Add support for Vi/Vim modelines.
Date: Thu, 17 Jul 2025 08:44:27 +0100
[Message part 1 (text/plain, inline)]
I'd like to contribute support for Vi/Vim modelines.  These are
somewhat similar to Emacs' local variables.  The basic idea is that
this makes it easier to collaborate with a software author who uses Vi
modelines to correctly set up their editor, and expects others to use
consistent settings.

This change should be covered by the copyright assignment my employer
(Google) already made for GNU Emacs.

This is my first Emacs patch, so I apologise for any misunderstandings
or omissions.  The patch itself is attached, but here is the ChangeLog
entry:

    Add support for Vi/Vim modelines.

    * lisp/emulation/vimvars.el: New file, implementing support for Vi
      modelines.
    * test/lisp/emulation/vimvars-tests.el: New file; tests for this
      feature.
    * doc/emacs/custom.texi(Vimvars): Describe this feature.
    * doc/misc/viper.texi(Modeline): Mention this feature.
    * etc/NEWS: Mention this change.
[0001-Add-support-for-Vi-Vim-modelines.patch (text/x-patch, attachment)]

This bug report was last modified today.

Previous Next


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