[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/load-relative 1a4da93 6/6: Some small lint-like things.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/load-relative 1a4da93 6/6: Some small lint-like things. |
Date: |
Mon, 30 Nov 2020 18:33:53 -0500 (EST) |
branch: externals/load-relative
commit 1a4da9350ff052adc7e20fd8975e6022ada407bd
Author: rocky <rocky@gnu.org>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Some small lint-like things.
Sync version numbers in confifure.ac and load-relative.el
Try lexical binding (when available).
Thank Stefan.
---
THANKS | 1 +
configure.ac | 8 +++++---
load-relative.el | 14 +++++++-------
3 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/THANKS b/THANKS
index f74a3ef..60303e8 100644
--- a/THANKS
+++ b/THANKS
@@ -1,2 +1,3 @@
Phil Lord - Contribute find-file-noselect-relative, and with-relative-file
Lars Anderson - Melapa packaging, among other things
+Stefan Monnier <monnier@iro.umontreal.ca> - Elisp guidance
diff --git a/configure.ac b/configure.ac
index b37b817..489f120 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,13 +1,15 @@
-AC_INIT(emacs-load-relative, 1.2,)
+AC_INIT(emacs-load-relative, 1.3.1,)
AC_CONFIG_SRCDIR(load-relative.el)
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
AC_PATH_PROG(EMACS, emacs, no)
+AC_ARG_WITH(emacs, AC_HELP_STRING([--with-emacs],
+ [location of emacs program]), EMACS=$withval)
if test x$EMACS != xno ; then
$EMACS -batch -q -no-site-file -eval \
- '(if (<= emacs-major-version 22)
+ '(if (< emacs-major-version 23)
(progn
(error "You need GNU Emacs 23 or better for this package.")
(kill-emacs 1)
diff --git a/load-relative.el b/load-relative.el
index 4397f82..e1a7bfe 100644
--- a/load-relative.el
+++ b/load-relative.el
@@ -1,7 +1,7 @@
-;;; load-relative.el --- relative file load (within a multi-file Emacs package)
+;;; load-relative.el --- Relative file load (within a multi-file Emacs
package) -*- lexical-binding: t -*-
;; Author: Rocky Bernstein <rocky@gnu.org>
-;; Version: 1.3
+;; Version: 1.3.1
;; Keywords: internal
;; URL: http://github.com/rocky/emacs-load-relative
;; Compatibility: GNU Emacs 23.x
@@ -122,9 +122,9 @@ readevalloop of `lread.c' as the car of variable
`current-load-list'.
Failing that, we use `load-file-name' which should work in some
-subset of the same places that the first method works. However
-`load-file-name' will be nil for code that is eval'd. To cover
-those cases, we try `buffer-file-name' which is initially
+subset of the same places that the first method works. However
+`load-file-name' will be nil for code that is eval'd. To cover
+those cases, we try function `buffer-file-name' which is initially
correct, for eval'd code, but will change and may be wrong if the
code sets or switches buffers after the initial execution.
@@ -173,8 +173,8 @@ methods work we will use the file-name value find via
file &optional docstring interactive type
symbol)
;; FIXME: Docstring talks of FUNCTION but argname is `function-or-list'.
- "Autoload an Emacs Lisp file relative to Emacs Lisp code that is in
-the process of being loaded or eval'd.
+ "Autoload an Emacs Lisp file relative to Emacs Lisp code that is in the
process
+of being loaded or eval'd.
Define FUNCTION to autoload from FILE. FUNCTION is a symbol.
- [elpa] branch externals/load-relative created (now 1a4da93), Stefan Monnier, 2020/11/30
- [elpa] externals/load-relative a674f65 3/6: Add how to configure/test from emacs.., Stefan Monnier, 2020/11/30
- [elpa] externals/load-relative a4e90b6 5/6: * load-relative.el (require-relative-list): Don't spuriously require `cl`., Stefan Monnier, 2020/11/30
- [elpa] externals/load-relative 6f9f93e 2/6: * test/subdir/test-require-list-from-subdir.el: Don't byte-compile, Stefan Monnier, 2020/11/30
- [elpa] externals/load-relative 1a4da93 6/6: Some small lint-like things.,
Stefan Monnier <=
- [elpa] externals/load-relative 184df86 4/6: Bump version .., Stefan Monnier, 2020/11/30
- [elpa] externals/load-relative 5bd5632 1/6: * packages/load-relative/load-relative.el (__FILE__): bytecomp-filename problem., Stefan Monnier, 2020/11/30