Comments (9)
What happens if you (require 'subr)
?
from denote.
(require 'subr)
enters debugger:
Debugger entered--Lisp error: (error "Loading file /usr/share/emacs/28.1/lisp/subr.elc f...")
require(subr)
(progn (require 'subr))
eval((progn (require 'subr)) t)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
Messages
buffers says:
progn: Loading file /usr/share/emacs/28.1/lisp/subr.elc failed to provide feature ‘subr’
from denote.
Okay, the problem is that on Emacs 28 this was (require 'subr-x)
.
EDIT: I thus plan to make this change, if you confirm it works:
denote.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index 2152c69..00e264b 100644
--- a/denote.el
+++ b/denote.el
@@ -96,7 +96,9 @@ ;;; Commentary:
;;; Code:
(require 'seq)
-(eval-when-compile (require 'cl-lib))
+(eval-when-compile
+ (require 'cl-lib)
+ (require 'subr-x))
(defgroup denote ()
"Simple notes with an efficient file-naming scheme."
from denote.
Hmm, still the exact same error...
What I've done:
- I've modified
denote.el
according to your diff above - I've deleted the compiled version, i.e.
denote.elc
from my filesystem - I've restarted emacs
from denote.
I found it by testing these two on emacs -Q
with Emacs 28:
;; this has an error
(when-let* ((name (buffer-name)))
(message "%s" name))
;; this works
(when-let ((name (buffer-name)))
(message "%s" name))
The when-let*
is legacy code anyway, as we only have one form and don't need the asterisk.
Pushed the change in commit 61e672f
from denote.
Great, it now works!
Thank you, Prot!
from denote.
Note:
There seem to be a couple of other when-let*
in other files.
They should also be changed, shouldn't they?
from denote.
Great, it now works!
Very well!
Thank you, Prot!
You are welcome!
There seem to be a couple of other when-let* in other files. They should also be changed, shouldn't they?
I checked them. The asterisk they have is correctly used in those cases. I will still need to require subr-x
the way I mentioned before.
from denote.
Closing this as it is continued in issue 74.
from denote.
Related Issues (20)
- is it possible to create single tag with multiple words seperated by delimter? HOT 3
- Backlink buffer aware of org heading HOT 2
- Can't add link to file from within org-capture: "The current file type is not recognized by Denote" HOT 8
- Problem due to overloading `no-confirm` for "save" HOT 7
- How can I figure out which version of denote is currently used? HOT 4
- Templates are not working in denote-org-capture-with-prompts HOT 5
- Cannot add a denote link in `org-add-log-note` HOT 2
- update the link description if the target title is changed HOT 7
- Announcement: Some upcoming features available in my fork HOT 15
- Add support for adding keywords and/or removing keywords when using `denote-dired-rename-marked-files`
- org-display-inline-images doesn't work for denote: links HOT 2
- Allow listing backlinks for denote files that are not notes HOT 3
- denote-org-extras-convert-links-to-file-type ignores value of org-link-file-path-type HOT 5
- Cusomizing the used token character for the title field separator HOT 3
- Is there an equivalent `denote-org-extras-convert-links-to-file-type ` for markdown files? HOT 4
- Sluggify accented titles HOT 4
- What should be the delimiter of identifiers in file names? HOT 5
- The “denote” links in markdown exported files do not work HOT 2
- Denote file duplication HOT 5
- Using groups for matching regex and other hacks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denote.