diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2024-01-25 16:28:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-25 16:51:17 (GMT) |
commit | 91336c74698b09afe272f8dc044b84ecf71d0904 (patch) | |
tree | 4fa32fb49b610a3e0e02fd13417cdfd717c49d28 /Utilities | |
parent | 8533a8505c315f7104a6e0f65eb6c51f07f154d0 (diff) | |
download | CMake-91336c74698b09afe272f8dc044b84ecf71d0904.zip CMake-91336c74698b09afe272f8dc044b84ecf71d0904.tar.gz CMake-91336c74698b09afe272f8dc044b84ecf71d0904.tar.bz2 |
cmake-mode.el: Simplify jumping to begin/end of functions/macros
This change was spawned by the desire to use `narrow-to-defun` in CMake
files. However, there was no "CMake version" of that function, and it
turns out that we don't need one if we make `beginning-of-defun` and
`end-of-defun` work in `cmake-mode`.
In the setup code of `cmake-mode` we now set the local variables
`beginning-of-defun-function` and `end-of-defun-function`. This makes
`beginning-of-defun` and `end-of-defun` work as expected.
Functions that use this facility also work now: `mark-defun` and
`narrow-to-defun` and possibly others.
We remove `cmake-mark-defun` since it's superfluous now.
We remove the defun-related key bindings since the standard functions
that are bound globally work fine with this patch.
Diffstat (limited to 'Utilities')
0 files changed, 0 insertions, 0 deletions