% emacs --version
GNU Emacs 28.1
Copyright (C) 2022 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
% git log -1 --oneline
5cbdbf0 (HEAD -> master, origin/master, origin/HEAD) Handle errors during evaluation properly
% HOME=$PWD emacs -L .
When I do M-x test-a, the text return expression; is generated with point just before expression, but typing does not replace that placeholder text.
When I do M-x test-b, the same text is generated with point in the same place, but (as expected) typing replaces the placeholder expression.
The first snippet is produced by lsp-mode for completing code snippets in c-mode. When I filed https://github.com/emacs-lsp/lsp-mode/issues/3665 they suggested that I should file an issue in this project, because they expect that placeholders work for $0.
I evaluated the following elisp:
When I do
M-x test-a
, the textreturn expression;
is generated with point just beforeexpression
, but typing does not replace that placeholder text.When I do
M-x test-b
, the same text is generated with point in the same place, but (as expected) typing replaces the placeholderexpression
.The first snippet is produced by
lsp-mode
for completing code snippets inc-mode
. When I filed https://github.com/emacs-lsp/lsp-mode/issues/3665 they suggested that I should file an issue in this project, because they expect that placeholders work for $0.