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

Merged with 79039

Full log


View this message in rfc822 format

From: James Youngman <james <at> youngman.org>
To: 79038 <at> debbugs.gnu.org
Cc: James Youngman <james <at> youngman.org>, James Youngman <youngman <at> google.com>
Subject: bug#79038: [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 20 days ago.

Previous Next


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