Commit graph

335 commits

Author SHA1 Message Date
Henrik Lissner
afa154db27
refactor!(emacs-lisp): flycheck config in non-packages
BREAKING CHANGE: This performs the following backwards-incompatible
changes:

- Replaces `+emacs-lisp-reduce-flycheck-errors-in-emacs-config-h` with a
  `+emacs-lisp-non-package-mode` minor-mode.
- Removed the `+emacs-lisp-disable-flycheck-in-dirs` variable, as this
  mechanism no longer checks a directory list to detect a "non-package".

If you've referenced either of these symbols, you'll need to
update/remove them from your config. No extra config is needed
otherwise.

Why: Doom has always tried to reduce the verbosity of Flycheck when
viewing elisp config files or scripts (i.e. non-packages). These are so
stateful that the byte-compiler, package-lint, and checkdoc inundate
users with false positives that are more overwhelming than helpful.

The heuristic for this has always been a simple "is this file in
$DOOMDIR or $EMACSDIR", but this wasn't robust enough, especially in
cases where symlinking was involved, so I've employed a new, more
general heuristic for detecting non-package files:

- The file isn't a theme in `custom-theme-load-path`,
- The file doesn't have a (provide ...) or (provide-theme ...)
  statement whose first argument matches the file name,
- The file lives in a project with a .doommodule file (doom modules
  never have convention package files in them),
- Or the file is a dotfile (like .dir-locals.el or .doomrc).

I've also tweaked byte-compile-warnings to yield a little more output,
but not by much. Whether this is too permissive or not will require
further testing to determine.

What's more, I've updated this to reflect recent changes to Doom's
startup process (in c05e615).

Ref: c05e61536e
2022-09-12 11:45:56 +02:00
Henrik Lissner
a5c80fcb4b
refactor: deprecate doom-private-dir for doom-user-dir
- Deprecates the doom-private-dir variable in favor of doom-user-dir.
- Renames the pseudo category for the user's module: :private -> :user.
- Renames the doom-private-error error type to doom-user-error.

Emacs uses the term "user" to refer to the "things" in user space (e.g.
user-init-file, user-emacs-directory, user-mail-address, xdg-user-dirs,
package-user-dir, etc), and I'd like to be consistent with that. It also
has the nice side-effect of being slightly shorter. I also hope
'doom-user-error' will be less obtuse to beginners than
'doom-private-error'.
2022-08-14 20:43:35 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
422baedad7
refactor(cli): load cli libs from doom.el
This simplifies the entry point for loading Doom (and/or its CLI
framework).
2022-08-07 19:43:28 +02:00
Henrik Lissner
1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
Henrik Lissner
06db69bf76
fix(emacs-lisp): suppress popup warnings from flycheck
Typically caused by partial syntax errors in Doom Emacs (e.g. while
you're writing code in $EMACSDIR or $DOOMDIR, and haven't typed the
closing parenthesis yet).
2022-08-05 00:49:17 +02:00
Henrik Lissner
1f8bf7accb
merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
Henrik Lissner
7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
Henrik Lissner
1255315bfc
refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
Henrik Lissner
e77a45bc22
docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
Henrik Lissner
b9933e6637
refactor!: restructure Doom core
BREAKING CHANGE: This restructures the project in preparation for Doom
to be split into two repos. Users that have reconfigured Doom's CLI
stand a good chance of seeing breakage, especially if they've referred
to any core-* feature, e.g.

  (after! core-cli-ci ...)

To fix it, simply s/core-/doom-/, i.e.

  (after! doom-cli-ci ...)

What this commit specifically changes is:
- Renames all core features from core-* to doom-*
- Moves core/core-* -> lisp/doom-*
- Moves core/autoloads/* -> lisp/lib/*
- Moves core/templates -> templates/

Ref: #4273
2022-07-30 22:41:13 +02:00
Henrik Lissner
a4aab45656
fix(emacs-lisp): flycheck false positives in Doom configs 2022-06-22 23:04:00 +02:00
Henrik Lissner
170dadca5a
feat(emacs-lisp): register doomscript as elisp interpreter 2022-06-21 23:42:16 +02:00
Henrik Lissner
d014a7ae8b
docs(emacs-lisp): add fn!/lambda! to ToC & tweak header-args 2022-06-21 23:32:02 +02:00
Henrik Lissner
00c75eddf8
docs(emacs-lisp): add fn! & lambda! demos 2022-06-21 21:29:08 +02:00
Henrik Lissner
6c0b7e1530
refactor!(cli): rewrite CLI framework libraries
BREAKING CHANGE: this changes Doom's CLI framework in subtle ways, which
is listed in greater detail below. If you've never extended Doom's CLI,
then this won't affect you, but otherwise it'd be recommended you read
on below.

This commit focuses on the CLI framework itself and backports some
foundational changes to its DSL and how it resolves command line
arguments to CLIs, validates input, displays documentation, and persists
state across sessions -- and more. This is done in preparation for the
final stretch towarding completing the CLI rewrite (see #4273).

This is also an effort to generalize Doom's CLI (both its framework and
bin/doom), to increase it versatility and make it a viable dev tool for
other Doom projects (on our Github org) and beyond.

However, there is a *lot* to cover so I'll try to be brief:

- Refactor: generalize Doom's CLI framework by moving all bin/doom
  specific configuration/commands out of core-cli into bin/doom. This
  makes it easier to use bin/doom as a project-agnostic development
  tool (or for users to write their own).
- Refactor: change the namespace for CLI variables/functions from
  doom-cli-X to doom-X.
- Fix: subcommands being mistaken as arguments. "doom make index" will
  resolve to (defcli! (doom make index)) if it exists,
  otherwise (defcli! (doom make)) with "index" as an argument. Before
  this, it would resolve to the latter no matter what. &rest can
  override this; with (defcli! (doom make) (&rest args)), (defcli! (doom
  make index)) will never be invoked.
- Refactor!: redesign our output library (was core/autoload/output.el,
  is now core/autoload/print.el), and how our CLI framework buffers and
  logs output, and now merges logs across (exit! ...) restarts.
- Feat: add support for :before and :after pseudo commands. E.g.

    (defcli! (:before doom help) () ...)
    (defcli! (:after doom sync) () ...)

  Caveat: unlike advice, only one of each can be defined per-command.
- Feat: option arguments now have rudimentary type validation (see
  `doom-cli-option-arg-types`). E.g.

    (defcli! (doom foo) ((foo ("--foo" num))) ...)

  If NUM is not a numeric, it will throw a validation error.

  Any type that isn't in `doom-cli-option-arg-types` will be treated as a
  wildcard string type. `num` can also be replaced with a specification,
  e.g. "HOST[:PORT]", and can be formatted by using symbol quotes:
  "`HOST'[:`PORT']".
- Feat: it is no longer required that options *immediately* follow the command
  that defines them (but it must be somewhere after it, not before). E.g.
    With:
      (defcli! (:before doom foo) ((foo ("--foo"))) ...)
      (defcli! (doom foo baz) () ...)
    Before:
      FAIL: doom --foo foo baz
      GOOD: doom foo --foo baz
      FAIL: doom foo baz --foo
    After:
      FAIL: doom --foo foo baz
      GOOD: doom foo --foo baz
      GOOD: doom foo baz --foo
- Refactor: CLI session state is now kept in a doom-cli-context struct (which
  can be bound to a CLI-local variable with &context in the arglist):

    (defcli! (doom sync) (&context context)
      (print! "Command: " (doom-cli-context-command context)))

  These contexts are persisted across sessions (when restarted). This is
  necessary to support seamless script restarting (i.e. execve
  emulation) in post-3.0.
- Feat: Doom's CLI framework now understands "--". Everything after it will be
  treated as regular arguments, instead of sub-commands or options.
- Refactor!: the semantics of &rest for CLIs has changed. It used to be "all
  extra literal, non-option arguments". It now means *all* unprocessed
  arguments, and its use will suppress "unrecognized option" errors, and
  tells the framework not to process any further subcommands. Use &args
  if you just want "all literal arguments following this command".
- Feat: add new auxiliary keywords for CLI arglists: &context, &multiple,
  &flags, &args, &stdin, &whole, and &cli.
  - &context SYM: binds the currently running context to SYM (a
    `doom-cli-context` struct). Helpful for introspection or passing
    along state when calling subcommands by hand (with `call!`).
  - &stdin SYM: SYM will be bound to a string containing any input piped
    into the running script, or nil if none. Use
    `doom-cli-context-pipe-p` to detect whether the script has been
    piped into or out of.
  - &multiple OPTIONS...: allows all following OPTIONS to be repeated. E.g. "foo
    -x a -x b -x c" will pass (list ("-x" . "a") ("-x" . "b") ("-x" .
    "c")) as -x's value.
  - &flags OPTIONS...: All options after "&flags" get an implicit --no-* switch
    and cannot accept arguments. Will be set to :yes or :no depending on which flag is
    provided, and nil if the flag isn't provided. Otherwise, a default
    value can be specified in that options' arglist. E.g.

      (defcli! (doom foo) (&flags (foo ("--foo" :no))) ...)

    When called, this command sets FOO to :yes if --foo, :no if --no-foo, and
    defaults to :no otherwise.
  - &args SYM: this replaces what &rest used to be; it binds to SYM a
    list of all unprocessed (non-option) arguments.
  - &rest SYM: now binds SYM to a list of all unprocessed arguments, including
    options. This also suppresses "unrecognized option" errors, but will render
    any sub-commands inaccessible. E.g.

      (defcli! (doom make) (&rest rest) ...)
      ;; These are now inaccessible!
      (defcli! (doom make foo) (&rest rest) ...)
      (defcli! (doom make bar) (&rest rest) ...)
  - &cli SYM: binds SYM to the currently running `doom-cli` struct. Can also be
    obtained via `(doom-cli-get (doom-cli-context-command context))`. Possibly
    useful for introspection.
- feat: add defobsolete! macro for quickly defining obsolete commands.
- feat: add defalias! macro for quickly defining alias commands.
- feat: add defautoload! macro for defining an autoloaded command (won't
  be loaded until it is called for).
- refactor!: rename defcligroup! to defgroup! for consistency.
- fix: CLIs will now recursively inherit plist properties from parent
  defcli-group!'s (but will stack :prefix).
- refactor!: remove obsolete 'doom update':
- refactor!: further generalize 'doom ci'
  - In an effort to generalize 'doom ci' (so other Doom--or
    non-doom--projects can use it), all its subcommands have been
    changed to operate on the current working directory's repo instead
    of $EMACSDIR.
  - Doom-specific CI configuration was moved to .github/ci.el.
  - All 'doom ci' commands will now preload one of \$CURRENT_REPO_ROOT/ci.el or
    \$DOOMDIR/ci.el before executing.
- refactor!: changed 'doom env'
  - 'doom env {-c,--clear}' is now 'doom env {clear,c}'
  - -r/--reject and -a/--allow may now be specified multiple times
- refactor!: rewrote CLI help framework and error handling to be more
  sophisticated and detailed.
- feat: can now initiate $PAGER on output with (exit! :pager) (or use
  :pager? to only invoke pager is output is longer than the terminal is
  tall).
- refactor!: changed semantics+conventions for global bin/doom options
  - Single-character global options are now uppercased, to distinguish them from
    local options:
    - -d (for debug mode) is now -D
    - -y (to suppress prompts) is now -!
    - -l (to load elisp) is now -L
    - -h (short for --help) is now -?
  - Replace --yes/-y switches with --force/-!
  - -L/--load FILE: now silently ignores file errors.
  - Add --strict-load FILE: does the same as -L/--load, but throws an error if
    FILE does not exist/is unreadable.
  - Add -E/--eval FORM: evaluates arbitrary lisp before commands are processed.
  - -L/--load, --strict-load, and -E/--eval can now be used multiple times in
    one command.
  - Add --pager COMMAND to specify an explicit pager. Will also obey
    $DOOMPAGER envvar. Does not obey $PAGER.
- Fix #3746: which was likely caused by the generated post-script overwriting
  the old mid-execution. By salting the postscript filenames (with both an
  overarching session ID and a step counter).
- Docs: document websites, environment variables, and exit codes in
  'doom --help'
- Feat: add imenu support for def{cli,alias,obsolete}!

Ref: #4273
Fix: #3746
Fix: #3844
2022-06-18 23:53:12 +02:00
Henrik Lissner
6c5537b487
fix(emacs-lisp): eval forms from within the current buffer
This fix ensures that functions/macros that are evaluated with +eval/*
et co will remember where they were defined (if possible), so you don't
have to see this in their documentation again:

  FUNCTION is a function without a source file.

Ref: https://github.com/doomemacs/doomemacs/pull/6444#issuecomment-1159457888
2022-06-18 18:19:39 +02:00
Henrik Lissner
9fde385cdc
fix(emacs-lisp): void-function lisp--local-defform-body-p
I was too hasty adding this function in 15432cf. This function wasn't
introduced until Emacs 29.

Amend: 15432cf9d2
2022-06-18 16:57:17 +02:00
Henrik Lissner
15432cf9d2
fix(emacs-lisp): update custom lisp-indent-function
To reflect Emacs 28+ changes to the function it is
replacing (lisp-indent-function).
2022-06-17 21:58:05 +02:00
Henrik Lissner
52d0c92fea
bump: :lang emacs-lisp
jorgenschaefer/emacs-buttercup@f5cbf97e10 -> jorgenschaefer/emacs-buttercup@ceedad5efa
purcell/flycheck-package@ecd03f8379 -> purcell/flycheck-package@615c1ed8c6
xuchunyang/elisp-demos@924b07d28e -> xuchunyang/elisp-demos@01c301b516
2022-06-17 21:53:21 +02:00
tecosaur
f0f414ac67
fix(eval): type error in +emacs-lisp-eval
When evaluating from a buffer not visiting any file, file-truename would
error out since the argument it was fed is nil.

Fix: #6181
Close: #6404
Ref: 7290f85cfd
Co-authored-by: Yoav Marco <ymarco@users.noreply.github.com>
2022-06-17 18:36:10 +02:00
Henrik Lissner
d67dcf1940
docs(emacs-lisp): insert :added: properties in demos
To help identify when they (and future functions/macros) were added.
2022-06-17 18:21:23 +02:00
Henrik Lissner
e8c22c770b
docs(emacs-lisp): remove sharp-quoted example for add-hook!
add-hook! is advertised to be able to add multiple hooks using a
function-quoted list of functions, but add-hook! never actually
supported this. Rather than correct the implementation, I'm correcting
the documentation instead, because sharp-quoting lists betrays the
semantics of the sharp-quote. Quoted lists should still work fine
though (as documented in add-hook!'s docstring).

Close: #5843
2022-04-03 14:58:35 +02:00
Henrik Lissner
c05822ab39
bump: :lang
Emacs-Kotlin-Mode-Maintainers/kotlin-mode@876cc27dc1 -> Emacs-Kotlin-Mode-Maintainers/kotlin-mode@3e0c34087b
FStarLang/fstar-mode.el@3afbf04e4e -> FStarLang/fstar-mode.el@c95c2a61a6
Fanael/edit-indirect@7fffd87ac3 -> Fanael/edit-indirect@e3d86416bc
Fuco1/sphinx-mode@b5ac514e21 -> Fuco1/sphinx-mode@9d4075c106
Groovy-Emacs-Modes/groovy-emacs-modes@84f89b68ec -> Groovy-Emacs-Modes/groovy-emacs-modes@bf732d367b
NixOS/nix-mode@8e20de5ba7 -> NixOS/nix-mode@20ee8d8890
OCamlPro/ocp-indent@9e26c0a269 -> OCamlPro/ocp-indent@7c4d434132
ProofGeneral/PG@df19c7ba0e -> ProofGeneral/PG@e1e29acb04
Raku/raku-mode@eaac071f17 -> Raku/raku-mode@977b14a7c1
Sarcasm/irony-mode@5063d6b16d -> Sarcasm/irony-mode@870d1576fb
agda/agda@2816605bfd -> agda/agda@2816605bfd
amake/flutter.el@81c524a43c -> amake/flutter.el@08138f8c95
ananthakumaran/exunit.el@5bb115f327 -> ananthakumaran/exunit.el@0715c2dc2d
ananthakumaran/tide@28137ed904 -> ananthakumaran/tide@b93e555858
asok/projectile-rails@30828afbfa -> asok/projectile-rails@772f4766b5
asok/rake@9c204334b0 -> asok/rake@452ea0caca
brotzeit/rustic@f4b5c288af -> brotzeit/rustic@6eec971387
cdominik/cdlatex@f215b70c5c -> cdominik/cdlatex@8e963c6853
clojure-emacs/cider@36277802a4 -> clojure-emacs/cider@86dd3fee9d
codesuki/add-node-modules-path@7d9be65b3b -> codesuki/add-node-modules-path@63f047fd84
crystal-lang-tools/emacs-crystal-mode@15998140b0 -> crystal-lang-tools/emacs-crystal-mode@96a8058205
cython/cython@5b325c9860 -> cython/cython@fdea2d6bed
diml/utop@c87b8b2817 -> diml/utop@5d72a0ab34
dominikh/go-mode.el@32cbd78c0a -> dominikh/go-mode.el@3273fcece5
elixir-editors/emacs-elixir@6bbc1e5ac4 -> elixir-editors/emacs-elixir@e0d0466d83
emacs-csharp/csharp-mode@9917e1b97d -> emacs-csharp/csharp-mode@856ecbc0a7
emacs-ess/ESS@a7ce81bb76 -> emacs-ess/ESS@39eba28300
emacs-geiser/geiser@c1cc4da1ed -> emacs-geiser/geiser@9507e81a07
emacs-geiser/guile@cfd9116dcb -> emacs-geiser/guile@c641fcc50b
emacs-lsp/lsp-dart@813d3c92db -> emacs-lsp/lsp-dart@fda433671f
emacs-lsp/lsp-haskell@4e62cf897d -> emacs-lsp/lsp-haskell@7cf64944ab
emacs-lsp/lsp-java@ce03cb6574 -> emacs-lsp/lsp-java@0968038b9a
emacs-lsp/lsp-metals@695291761b -> emacs-lsp/lsp-metals@b7f77de694
emacs-lsp/lsp-pyright@d428dbcf18 -> emacs-lsp/lsp-pyright@3598bc7c47
emacs-php/php-mode@535aec8173 -> emacs-php/php-mode@5f26bec865
emacs-php/phpactor.el@272217fbb6 -> emacs-php/phpactor.el@34195f1533
emacs-straight/auctex@3b0a080ae5 -> emacs-straight/auctex@830e40a063
emacs-straight/csv-mode@8da54e8b4e -> emacs-straight/csv-mode@43f6106f0d
emacs-typescript/typescript.el@e824162051 -> emacs-typescript/typescript.el@88f317f0b6
erlang/otp@c1ab4b5424 -> erlang/otp@9ba9f6e60d
ethereum/emacs-solidity@6f7bd1641e -> ethereum/emacs-solidity@20fb77e089
factor/factor@7b451bb813 -> factor/factor@1aeafdb87b
fsharp/emacs-fsharp-mode@c90d762c06 -> fsharp/emacs-fsharp-mode@b3aa4c53fc
fxbois/web-mode@61f057a6ba -> fxbois/web-mode@efa853e5cf
godotengine/emacs-gdscript-mode@b7bfa6a3b2 -> godotengine/emacs-gdscript-mode@4badcf6a0c
greghendershott/racket-mode@a879a8d67b -> greghendershott/racket-mode@af9b760e7b
hakimel/reveal.js@918ee5610a -> hakimel/reveal.js@e281b3234e
haskell/haskell-mode@8402caa341 -> haskell/haskell-mode@cb573c8db5
hhvm/hack-mode@4c1c2b0939 -> hhvm/hack-mode@a522f61c08
technomancy/fennel-mode@47152970a9 -> https://git.sr.ht/~technomancy/fennel-mode@50ef3c6246f3
hvesalai/emacs-sbt-mode@e29464a82b -> hvesalai/emacs-sbt-mode@9fe1e8807c
hylang/hy-mode@5253533ddb -> hylang/hy-mode@df814865a1
idris-hackers/idris-mode@3cc9361b4c -> idris-hackers/idris-mode@65d6db1b75
iyefrat/evil-tex@aa0ddf8e76 -> iyefrat/evil-tex@0fa85c3fc8
jcollard/elm-mode@f2e2d0053f -> jcollard/elm-mode@d4e434fa18
joaotavora/sly@2e00c3bd4b -> joaotavora/sly@4513c382f0
jorgenschaefer/emacs-buttercup@1de6be465c -> jorgenschaefer/emacs-buttercup@f5cbf97e10
joshwnj/json-mode@0e819e519a -> joshwnj/json-mode@eedb456003
jrblevin/markdown-mode@541bd7b48a -> jrblevin/markdown-mode@521658eb32
jschaf/powershell.el@d1b3f95669 -> jschaf/powershell.el@ce1f0ae0b2
jwiegley/emacs-async@5d365ffc6a -> jwiegley/emacs-async@c78bab7506
leanprover/lean-mode@bf32bb9793 -> leanprover/lean-mode@c1c68cc946
ledger/ledger-mode@19b84dc766 -> ledger/ledger-mode@b55384d9cd
necaris/conda.el@7a34e06931 -> necaris/conda.el@9c28d7a853
nonsequitur/inf-ruby@03dd9c9d4e -> nonsequitur/inf-ruby@dbf4386bac
ocaml-ppx/ocamlformat@22a3707da3 -> ocaml-ppx/ocamlformat@9324ea439a
ocaml/dune@4d0a47edd5 -> ocaml/dune@4bc7629a5e
ocaml/merlin@e4791e2298 -> ocaml/merlin@5d59c70659
ocaml/tuareg@00faf47a7c -> ocaml/tuareg@04f5ab6be9
osv/company-web@f0cc9187c9 -> osv/company-web@863fb84b81
pashky/restclient.el@176d9cb655 -> pashky/restclient.el@9e2cfa8652
pezra/rspec-mode@92ef785010 -> pezra/rspec-mode@4215ff1f2d
polymode/polymode@54888d6c15 -> polymode/polymode@2094c92403
seagle0128/grip-mode@9220a560b4 -> seagle0128/grip-mode@6b427143a8
sebasmonia/sharper@08277b6c30 -> sebasmonia/sharper@96edd4a1db
stan-dev/stan-mode@9bb858b9f1 -> stan-dev/stan-mode@150bbbe5fd
swift-emacs/swift-mode@800efe2910 -> swift-emacs/swift-mode@0d1ef0ef18
tpapp/julia-repl@e90b1ed2cc -> tpapp/julia-repl@6c1d63511f
wbolster/emacs-python-pytest@b603c5c7f2 -> wbolster/emacs-python-pytest@ea53891a21
yoshiki/yaml-mode@63b637f846 -> yoshiki/yaml-mode@535273d5a1
ziglang/zig-mode@aba01b6199 -> ziglang/zig-mode@aa20d630b8

- Refactors the :lang rust module to reflect changes upstream, in
  rustic (thanks to #6154).

Close: #6154
Fix: #6070
2022-03-31 21:09:38 +02:00
Henrik Lissner
97155412a9
fix(emacs-lisp): missing package cookies in imenu 2022-03-21 03:57:03 +01:00
Daanturo
f63aad2ff6 tweak(emacs-lisp): local leader for lisp-interaction-mode 2022-02-23 17:47:39 +01:00
Henrik Lissner
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
Henrik Lissner
7290f85cfd feat(eval): set load-true-file-name & buffer-file-truename
So they are available in evaluated contexts.
2022-01-27 03:50:52 +01:00
Henrik Lissner
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
Henrik Lissner
20cac97c08 docs(:lang): update READMEs to new format 2021-11-21 20:04:28 +01:00
Henrik Lissner
0aad1399cc refactor(file-templates): doom readme templates
Including readme template for categories.
2021-11-21 20:04:28 +01:00
Henrik Lissner
7034378968 nit: s/#+BEGIN_SRC/#+begin_src, s/elisp/emacs-lisp/
From now on Doom will enforce two conventions for its org files for
consistency's sake:

- Lower-case meta-lines in org files, like #+begin_src, #+name, or
  #+end_quote (only exception are the top-level ones, like #+TITLE and
  #+STARTUP).
- Use 'emacs-lisp' as the lang specifier for elisp blocks rather than
  'elisp'. Emacs doesn't natively recognize the latter.

This will be reflected in our rewritten docs/*.org and module
README.org's.
2021-10-18 12:09:42 +02:00
Henrik Lissner
704957437c revert: Ignore unsafe local variables, but log them
This behavior was too non-standard and invited more confusion than it
helped.

Ref #4070
Revert 5e7864838a
2021-10-06 01:30:45 +02:00
Colin Woodbury
c3d237c3f5 fix(emacs-lisp): quiet doc lints in org src blocks
Opening an Org src block with `SPC m '` creates a minibuffer with no
associated file name, hence the check for `buffer-file-name`.
2021-09-23 11:37:18 +02:00
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Henrik Lissner
3bedae38dd dev: transition to 12c long hashes
In bumps, in :pin's, and in our git conventions. We have no rules for
the commit linter for it yet, though.
2021-08-02 22:07:13 -04:00
Henrik Lissner
54a556c2fa lang/emacs-lisp: add flycheck-package 2021-07-25 16:37:28 -04:00
Henrik Lissner
243cb43fec Fix #5187: syntax highlighting in ielm REPL 2021-07-10 16:32:53 -04:00
Henrik Lissner
3ba364ae10 Minor refactoring across the board 2021-05-23 22:09:07 -04:00
Wetlize
0a2ed4d346
lang/emacs-lisp: Replace sym with var in +emacs-lisp-log-unsafe-local-variables-a
Otherwise it will make Emacs to error with (void-variable sym) error when
checking the variable.
2021-05-06 13:04:15 +03:00
Henrik Lissner
b63441387b lang/emacs-lisp: don't use risky-local-variable-p
It's hardcoded to return t for symbols that end in any of '-command',
'-frame-alist', '-function', '-functions', '-hook', '-hooks', '-form',
'-forms', '-map', '-map-alist', '-mode-alist', '-program', or
'-predicate' -- which I think is excessive next to a safety check.

I'll trust that: if the user marks X as safe, and it isn't *explicitly*
marked risky, and it destroys the universe, then it's their fault, not
mine, not Emacs'.
2021-05-06 04:27:33 -04:00
Henrik Lissner
4ad1c6a494
Merge pull request #4926 from Janfel/fix-emacs-lisp-module-at-point
Reimplement +emacs-lisp--module-at-point to fix #4896
2021-05-01 01:42:38 -04:00
Henrik Lissner
ccf6f0b53d Log unsafe eval forms in file/dir local variables 2021-04-29 13:25:48 -04:00
Jan Felix Langenbach
acb0399424 Reimplement +emacs-lisp--module-at-point 2021-04-26 00:39:55 +02:00
Henrik Lissner
af90333bcd Bump *
Alexander-Miller/treemacs@6857816 -> Alexander-Miller/treemacs@9eaef27
DarwinAwardWinner/amx@b991497 -> DarwinAwardWinner/amx@37f9c7a
Dewdrops/evil-exchange@3030e21 -> Dewdrops/evil-exchange@ac50f21
JuliaEditorSupport/julia-emacs@8ea90c7 -> JuliaEditorSupport/julia-emacs@fe6f6f7
OmniSharp/omnisharp-emacs@8ec5929 -> OmniSharp/omnisharp-emacs@5fad683
ProofGeneral/PG@bdb6782 -> ProofGeneral/PG@f0f0476
Sarcasm/irony-mode@76fd37f -> Sarcasm/irony-mode@ec6dce7
Silex/docker.el@0ca910b -> Silex/docker.el@ed0cdf0
Wilfred/helpful@584ecc8 -> Wilfred/helpful@7e4b1f0
abo-abo/swiper@1deef76 -> abo-abo/swiper@bb7965a
agda/agda@9d08edb -> agda/agda@ecb9323
akermu/emacs-libvterm@a3fadd2 -> akermu/emacs-libvterm@1bc4516
akreisher/eshell-syntax-highlighting@172c9fb -> akreisher/eshell-syntax-highlighting@eeace52
alexmurray/flycheck-posframe@24fd9b3 -> alexmurray/flycheck-posframe@8f60c9b
amake/flutter.el@696228a -> amake/flutter.el@960b635
ananthakumaran/tide@7f7334b -> ananthakumaran/tide@ad6fa78
asok/projectile-rails@8d6b373 -> asok/projectile-rails@f1fe6e8
bastibe/org-journal@f4b1549 -> bastibe/org-journal@043bb9e
bbatsov/projectile@fd59947 -> bbatsov/projectile@1528ed4
bradyt/dart-mode@04fcd64 -> bradyt/dart-mode@43975c9
brotzeit/rustic@61d600e -> brotzeit/rustic@d97ec86
charignon/github-review@d0c8234 -> charignon/github-review@341b7a1
clojure-emacs/cider@815204f -> clojure-emacs/cider@4278d7c
clojure-emacs/clj-refactor.el@b24ce76 -> clojure-emacs/clj-refactor.el@9f3e735
clojure-emacs/clojure-mode@f26379b -> clojure-emacs/clojure-mode@a14671e
codesuki/add-node-modules-path@f31e69c -> codesuki/add-node-modules-path@7d9be65
company-mode/company-mode@88001d7 -> company-mode/company-mode@7207cb1
cpitclaudel/company-coq@4da7b41 -> cpitclaudel/company-coq@7423ee2
cython/cython@9a761a6 -> cython/cython@9decfca
dgutov/diff-hl@4c46b3b -> dgutov/diff-hl@1af31fe
dgutov/robe@3ef165c -> dgutov/robe@126650a
domtronn/all-the-icons.el@2f5ea72 -> domtronn/all-the-icons.el@a8c8417
editorconfig/editorconfig-emacs@048c553 -> editorconfig/editorconfig-emacs@9da2dab
elixir-editors/emacs-elixir@9de08c1 -> elixir-editors/emacs-elixir@0212b06
ema2159/centaur-tabs@50fd573 -> ema2159/centaur-tabs@df97209
emacs-csharp/csharp-mode@09b4d57 -> emacs-csharp/csharp-mode@f977800
emacs-ess/ESS@5169b0d -> emacs-ess/ESS@126d344
emacs-evil/evil-collection@334670e -> emacs-evil/evil-collection@b45ec5b
emacs-evil/evil@cc9d688 -> emacs-evil/evil@7eace67
emacs-helm/helm-org@b7a18df -> emacs-helm/helm-org@d67186d
emacs-helm/helm@dbdec63 -> emacs-helm/helm@98af298
emacs-jp/migemo@f42832c -> emacs-jp/migemo@f756cba
emacs-lsp/dap-mode@aa15b9c -> emacs-lsp/dap-mode@ae395aa
emacs-lsp/helm-lsp@e934fea -> emacs-lsp/helm-lsp@74a02f8
emacs-lsp/lsp-dart@71902ca -> emacs-lsp/lsp-dart@f3b70ec
emacs-lsp/lsp-ivy@c70ee8b -> emacs-lsp/lsp-ivy@515e597
emacs-lsp/lsp-java@5f6d357 -> emacs-lsp/lsp-java@542aaf1
emacs-lsp/lsp-metals@c76eeb6 -> emacs-lsp/lsp-metals@51a89c1
emacs-lsp/lsp-mode@c3cbadc -> emacs-lsp/lsp-mode@eda51c2
emacs-lsp/lsp-ui@0ac3e12 -> emacs-lsp/lsp-ui@1dbea9f
emacs-php/php-mode@8cdc727 -> emacs-php/php-mode@a2bca9b
emacs-php/phpactor.el@62d2372 -> emacs-php/phpactor.el@80788a8
emacs-straight/auctex@384c4b9 -> emacs-straight/auctex@0f3639a
emacs-straight/dired-git-info@b47f2b0 -> emacs-straight/dired-git-info@9461476
emacs-straight/org-mode@0b117f7 -> emacs-straight/org-mode@7a62a4d
emacs-straight/project@2e7afbe -> emacs-straight/project@388ffdf
emacs-straight/xclip@2951c6b -> emacs-straight/xclip@ef2ad92
emacsattic/nose@f852829 -> emacsattic/nose@f852829
emacsorphanage/quickrun@8008780 -> emacsorphanage/quickrun@57db985
erlang/otp@af06b43 -> erlang/otp@94c9738
factor/factor@1928e60 -> factor/factor@5bfeab6
flycheck/flycheck@01396a5 -> flycheck/flycheck@f8c679f
greghendershott/racket-mode@75ea8f6 -> greghendershott/racket-mode@5115c47
hakimel/reveal.js@0582f57 -> hakimel/reveal.js@cf8e64b
haskell/haskell-mode@3a019e6 -> haskell/haskell-mode@1baa12a
hlissner/doom-snippets@aa5587b -> hlissner/doom-snippets@afe549b
hlissner/emacs-counsel-css@6427dfc -> hlissner/emacs-counsel-css@f7647b4
hlissner/emacs-doom-themes@55f01ed -> hlissner/emacs-doom-themes@4199e74
hlissner/emacs-solaire-mode@a8fe09d -> hlissner/emacs-solaire-mode@9d143db
hvesalai/emacs-sbt-mode@7b121fc -> hvesalai/emacs-sbt-mode@0bdc36b
hvesalai/emacs-scala-mode@402d6df -> hvesalai/emacs-scala-mode@1ab5f64
ideasman42/emacs-spell-fu@a7db587 -> ideasman42/emacs-spell-fu@30c5eea
iqbalansari/emacs-emojify@cfa0086 -> iqbalansari/emacs-emojify@1b72641
jacktasia/dumb-jump@f6a1165 -> jacktasia/dumb-jump@8bc1950
jaor/geiser@26dd2f4 -> jaor/geiser@8e61c27
jcollard/elm-mode@188b9c7 -> jcollard/elm-mode@e9fcf9c
jkitchin/ox-clip@38b83ac -> jkitchin/ox-clip@2095537
joaotavora/eglot@a2d1fc9 -> joaotavora/eglot@2fbcab2
joaotavora/sly@fb84318 -> joaotavora/sly@5966d68
jorgenschaefer/circe@265f36c -> jorgenschaefer/circe@e67e2d1
js-emacs/js2-refactor.el@d4c40b5 -> js-emacs/js2-refactor.el@a0977c4
js-emacs/xref-js2@6f1ed5d -> js-emacs/xref-js2@fd6b723
jscheid/dtrt-indent@4a30d8e -> jscheid/dtrt-indent@37529fc
justbur/emacs-which-key@c0608e8 -> justbur/emacs-which-key@c632dbf
justinbarclay/parinfer-rust-mode@c825606 -> justinbarclay/parinfer-rust-mode@f130fa0
jyp/dante@7b1ab64 -> jyp/dante@8741419
kaushalmodi/ox-hugo@a05667e -> kaushalmodi/ox-hugo@02140a2
kidd/org-gcal.el@0a6f9a7 -> kidd/org-gcal.el@d38acda
leanprover/lean-mode@15bee87 -> leanprover/lean-mode@5c50338
ledger/ledger-mode@3495d12 -> ledger/ledger-mode@32fef09
magit/forge@8382fd3 -> magit/forge@f4c95dd
magit/magit@4735b92 -> magit/magit@577f16d
magit/orgit@ac9b1a4 -> magit/orgit@609fd0c
magnars/expand-region.el@ea6b4cb -> magnars/expand-region.el@4b83227
magnars/multiple-cursors.el@a9d7764 -> magnars/multiple-cursors.el@7b13b03
mhayashi1120/Emacs-wgrep@f0ef9bf -> mhayashi1120/Emacs-wgrep@f9687c2
millejoh/emacs-ipython-notebook@4ff76e5 -> millejoh/emacs-ipython-notebook@142ff50
non-Jedi/lsp-julia@c523c25 -> non-Jedi/lsp-julia@c487ed7
nonsequitur/inf-ruby@1fc972e -> nonsequitur/inf-ruby@c6990a6
ocaml-ppx/ocamlformat@7db8d13 -> ocaml-ppx/ocamlformat@448ac7c
ocaml/dune@f839fc1 -> ocaml/dune@a88ce5b
ocaml/merlin@36d0aef -> ocaml/merlin@cc17ed6
ocaml/tuareg@ccde45b -> ocaml/tuareg@37a6730
org-roam/org-roam@b0fd126 -> org-roam/org-roam@8ad57b1
purcell/diredfl@cd052df -> purcell/diredfl@4ca3265
purcell/envrc@a7c6ca8 -> purcell/envrc@110a221
purescript-emacs/purescript-mode@8410baf -> purescript-emacs/purescript-mode@0acd1af
racer-rust/emacs-racer@f17f9d7 -> racer-rust/emacs-racer@1e63e98
raxod502/prescient.el@9631db7 -> raxod502/prescient.el@8573df9
redguardtoo/evil-nerd-commenter@2730820 -> redguardtoo/evil-nerd-commenter@b8ac35f
rolandwalker/flyspell-lazy@d57382c -> rolandwalker/flyspell-lazy@0fc5996
rubocop/rubocop-emacs@1372ee3 -> rubocop/rubocop-emacs@f5fd18a
seagle0128/doom-modeline@5fe7fd6 -> seagle0128/doom-modeline@00bc89b
seagle0128/grip-mode@1aebf9c -> seagle0128/grip-mode@98d566d
skeeto/elfeed@362bbe5 -> skeeto/elfeed@e29c8b9
skk-dev/ddskk@275a831 -> skk-dev/ddskk@cec9936
snosov1/toc-org@aef220c -> snosov1/toc-org@c4c61c5
spotify/dockerfile-mode@ed1d04c -> spotify/dockerfile-mode@3b13745
takaxp/org-tree-slide@c9487e5 -> takaxp/org-tree-slide@9d2ba1d
technomancy/fennel-mode@bebc9dd -> technomancy/fennel-mode@ba14a7d
travisbhartwell/nix-emacs@977b9a5 -> travisbhartwell/nix-emacs@053a2d5
tumashu/posframe@3454a4c -> tumashu/posframe@fff21cc
tumashu/pyim@e54153f -> tumashu/pyim@f48c3ed
widefox/flycheck-raku@046f35a -> widefox/flycheck-raku@b1acccd
wyuenho/all-the-icons-dired@fc2dfa1 -> wyuenho/all-the-icons-dired@f401fe2
xuchunyang/elisp-demos@ed9578d -> xuchunyang/elisp-demos@924b07d
xuchunyang/osx-dictionary.el@1b79ff6 -> xuchunyang/osx-dictionary.el@4d4cc19
yqrashawn/fd-dired@9fb966d -> yqrashawn/fd-dired@7d18938
yyoncho/helm-icons@5a668ef -> yyoncho/helm-icons@e4a2cd1

Closes #4786
Closes #4801
Closes #4803

Skipped bumping straight.el because of raxod502/straight.el#714. Will
adapt soon.
2021-03-27 18:27:02 -04:00
Henrik Lissner
5e7864838a Ignore unsafe local variables, but log them
This suppresses the annoying "do you want to apply these unsafe file/dir
local variables" prompt by ignoring them (but stills them so at least
users are told).

Fixes issue mentioned in #4335
2021-03-21 00:42:49 -04:00
Henrik Lissner
7e1f5da169 lang/emacs-lisp: respect lexical-binding in eval handler 2021-03-08 10:25:09 -05:00
Nikita Bloshchanevich
169d0b2ed5 Emacs lisp: fix variable value display in eldoc
`fboundp' does not check if a variable is bound, but rather a function.
Use `boundp'.
2021-03-06 16:29:07 +01:00
Henrik Lissner
bd62f06002
Merge pull request #4436 from nbfalcon/resolve-fixme-#4415 2021-02-26 16:50:02 -05:00
Nikita Bloshchanevich
e05d804f1f Restore the old buffer when using `ivy-call'
Without `deferred', the file selected in the `counsel-find-file' will
only remain the current buffer afterwards when pressing RET on an item,
not just `ivy-call'.
2021-02-26 22:06:41 +01:00