1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Use lexical-binding in netrc.el and add tests

* lisp/net/netrc.el: Use lexical-binding.
(netrc-file): Remove redundant :group arg.
* test/lisp/net/netrc-resources/authinfo:
* test/lisp/net/netrc-resources/services:
* test/lisp/net/netrc-tests.el: New files.
This commit is contained in:
Stefan Kangas 2020-10-28 03:22:12 +01:00
parent 01d67bc845
commit 039ffaf69f
4 changed files with 64 additions and 3 deletions

View file

@ -1,4 +1,5 @@
;;; netrc.el --- .netrc parsing functionality
;;; netrc.el --- .netrc parsing functionality -*- lexical-binding: t -*-
;; Copyright (C) 1996-2020 Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
@ -40,8 +41,7 @@
(defcustom netrc-file "~/.authinfo"
"File where user credentials are stored."
:version "24.1"
:type 'file
:group 'netrc)
:type 'file)
(defvar netrc-services-file "/etc/services"
"The name of the services file.")