[all-commits] [llvm/llvm-project] d2bfc2: [emacs] Fix autoloading for llvm-mir-mode (#98984)

Lin Jian via All-commits all-commits at lists.llvm.org
Wed Jul 17 04:20:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2bfc2b52bfc1c17248b897ae8618865d4d9a3af
      https://github.com/llvm/llvm-project/commit/d2bfc2b52bfc1c17248b897ae8618865d4d9a3af
  Author: Lin Jian <me at linj.tech>
  Date:   2024-07-17 (Wed, 17 Jul 2024)

  Changed paths:
    M llvm/utils/emacs/llvm-mir-mode.el

  Log Message:
  -----------
  [emacs] Fix autoloading for llvm-mir-mode (#98984)

Without this patch, the autoloading of the major mode `llvm-mir-mode` is
not generated, which breaks its autoloading functionality.

To test this patch, use the following command to generate an autoload
file:

```console
cd llvm/utils/emacs
emacs --quick --batch --load=package --eval='(package-generate-autoloads "llvm-mir-mode" ".")'
```

Diff of generated autoload files is as follows:

```diff
> (autoload 'llvm-mir-mode "llvm-mir-mode" "\
> A major mode for editing LLVM MIR files.
> 
> (fn)" t)
```

CC @bogner for review



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list