Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting nameless-current-name disables directory-local nameless-aliases #32

Open
contrapunctus-1 opened this issue Nov 27, 2021 · 0 comments

Comments

@contrapunctus-1
Copy link

contrapunctus-1 commented Nov 27, 2021

I have nameless from MELPA (Package-Version: 20190429.1202 Version: 1.0.2) on GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian

I use it in my project Chronometrist, which is an Org literate program containing Emacs Lisp source blocks. I have a .dir-locals.el in the project root containing the following -

((nil . ((nameless-aliases . (("cb" . "chronometrist-backend")
                              ("cc" . "chronometrist-common")
                              ("cd" . "chronometrist-details")
                              ("ck" . "chronometrist-key-values")
                              ("cm" . "chronometrist-migrate")
                              ("cp" . "chronometrist-plist-pp")
                              ("cr" . "chronometrist-report")
                              ("cs" . "chronometrist-statistics")))))
 ...)

If I enable nameless-mode in chronometrist.org and run M-x nameless-insert-name, I get user-error: No name for current buffer, see ‘nameless-current-name’. (Interestingly, nameless-insert-name works after evaluating (setq nameless-current-name "chronometrist") in the buffer, without the problem I describe next.)

If I type M-x add-file-local-variable RET nameless-current-name RET "chronometrist" RET, save, and revert, the directory-local variables cease to take effect (e.g. what was cd:intervals becomes c:details-intervals), but nameless-insert-name now works.

tarsius pushed a commit to emacsmirror/chronometrist that referenced this issue Nov 30, 2021
(To get aliases to work again, at the cost of nameless-insert-name
breaking. Opened an issue in the nameless repository -
Malabarba/Nameless#32 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant