[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa-admin ab46aeb 014/357: Relative loads for Emacs Lisp files.
From: |
Stefan Monnier |
Subject: |
[elpa] elpa-admin ab46aeb 014/357: Relative loads for Emacs Lisp files. Adds functions __FILE__ and |
Date: |
Thu, 10 Dec 2020 18:06:05 -0500 (EST) |
branch: elpa-admin
commit ab46aeb4bbdf75a5180dec9111583cecf24a41d5
Author: rocky <rocky@gnu.org>
Commit: rocky <rocky@gnu.org>
Relative loads for Emacs Lisp files. Adds functions __FILE__ and
load-relative.
---
README | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/README b/README
new file mode 100644
index 0000000..3ddcec8
--- /dev/null
+++ b/README
@@ -0,0 +1,19 @@
+Here we add two functions load-relative and __FILE__
+
+load-relative(symbol) loads an Emacs Lisp file relative to another
+(presumably currently running) Emacs Lisp file.
+
+Example:
+
+(provide 'foo-bar)
+(load-relative "baz" 'foo-bar)
+
+__FILE__(symbol) returns the file that symbol was defined it, however
+if you are currently running load, that file name is given instead.
+If symbol is not defined and you are not loading a file, then nil is
+returned.
+
+The symbol parameter is an artifact in both load-relative and __FILE__
+that I would like to remove. Right now I don't see how to.
+
+
- [elpa] elpa-admin 99b8d94 054/357: admin/archive-contents.el (batch-make-archive, archive--process-simple-package): Use write-region, (continued)
- [elpa] elpa-admin 99b8d94 054/357: admin/archive-contents.el (batch-make-archive, archive--process-simple-package): Use write-region, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 782beee 061/357: Merge branch 'action-autoselect', Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 4eaf276 078/357: * admin/archive-contents.el (batch-make-archive): Don't demote errors., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 26ce878 006/357: # Updated for SourceForge, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 938c532 010/357: add README file., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 3f66070 019/357: Turn README back into text. Add special redcloth version., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 6de6395 017/357: See if changing the name from README to README.markup gives github a clue, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 1329950 024/357: Administrivia. Add COPYING, update README and .gitignore, bump version number., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 03e28d1 028/357: README: Document usage of this repository in detail., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 5bbab91 030/357: * packages/all-1.0.el: Change version. Address byte-compiler warnings., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin ab46aeb 014/357: Relative loads for Emacs Lisp files. Adds functions __FILE__ and,
Stefan Monnier <=
- [elpa] elpa-admin d656221 020/357: Track original positions in the face of possible edits. Intended use in debugging where one might edit the file but continue editing., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 015e981 004/357: # Added comment about loading supplied classes separately., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 5bb5972 016/357: load-relative.el: Add provide-me and make GPL v3., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 8b07a20 027/357: * README: Explain how to run the repo build script., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 07ef2ff 033/357: Add README file, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 7b9d56b 038/357: README: Move copyright and license text to the end, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 50b05c8 074/357: Add SML-mode., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 4866cb7 057/357: admin/archive-contents.el (archive--delete-elc-files): Delete backup files too., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 842d54c 056/357: * admin/archive-contents.el (batch-make-site-dir, archive--write-pkg-file): New functions., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin becd7be 063/357: * archive-contents.el (archive--make-changelog): New fun., Stefan Monnier, 2020/12/10