Skip to content

Use expand-file-name for tmp file path construction - #52

Merged
abrochard merged 1 commit into
abrochard:masterfrom
ybiquitous:use-expand-file-name-for-tmp-paths
Jun 7, 2026
Merged

Use expand-file-name for tmp file path construction#52
abrochard merged 1 commit into
abrochard:masterfrom
ybiquitous:use-expand-file-name-for-tmp-paths

Conversation

@ybiquitous

Copy link
Copy Markdown
Contributor

This PR replaces concat with expand-file-name to safely join mermaid-tmp-dir and filename, handling missing trailing slashes correctly.

(concat "/tmp" "foo.mmd")             ; => "/tmpfoo.mmd"
(expand-file-name "foo.mmd" "/tmp")   ; => "/tmp/foo.mmd"

Replaces `concat` with `expand-file-name` to safely join `mermaid-tmp-dir`
and filename, handling missing trailing slashes correctly.

```elisp
(concat "/tmp" "foo.mmd")             ; => "/tmpfoo.mmd"
(expand-file-name "foo.mmd" "/tmp")   ; => "/tmp/foo.mmd"
```

@abrochard abrochard left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@abrochard
abrochard merged commit 804dbcb into abrochard:master Jun 7, 2026
@ybiquitous
ybiquitous deleted the use-expand-file-name-for-tmp-paths branch June 7, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants