aboutsummaryrefslogtreecommitdiff
path: root/modules/markdown-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-03 19:24:40 -0500
committerCraig Jennings <c@cjennings.net>2026-05-03 19:24:40 -0500
commit62cf1c69f498cae775308f6dbb65aa7746046a13 (patch)
tree22b382b84a34c218fc33200326edb7e6da678e7b /modules/markdown-config.el
parent6145b1c2b4accc8bae4611710a65c72e0bf323f6 (diff)
downloaddotemacs-62cf1c69f498cae775308f6dbb65aa7746046a13.tar.gz
dotemacs-62cf1c69f498cae775308f6dbb65aa7746046a13.zip
fix: use file basename when moving buffer + file
`cj/--move-buffer-and-file` was building the destination as `(concat dir "/" (buffer-name))`. If the buffer had been renamed via `M-x rename-buffer`, or uniquified by Emacs with a `<2>` suffix when a second buffer visited the same filename, the move wrote a file with the wrong name on disk. I derived the destination basename from `buffer-file-name` instead, in both the internal helper and the interactive wrapper. The wrapper's overwrite-prompt now also formats the real target filename rather than the buffer name. I added two regression tests: one for a renamed buffer visiting `original.txt`, and one for a `<2>` uniquified buffer with a trailing-slash target directory.
Diffstat (limited to 'modules/markdown-config.el')
0 files changed, 0 insertions, 0 deletions