Skip to content

Remove the dependency on "f"#358

Open
Stebalien wants to merge 1 commit into
Wilfred:masterfrom
Stebalien:steb/remove-f
Open

Remove the dependency on "f"#358
Stebalien wants to merge 1 commit into
Wilfred:masterfrom
Stebalien:steb/remove-f

Conversation

@Stebalien

Copy link
Copy Markdown

I have no strong opinions here so feel free to simply close this, but I'm trying to slim down my package list. There were only 7 uses and 4 were aliases or thin wrappers around built-in functions.

Comment thread helpful.el
(setq library-name
(f-expand library-name
(f-parent find-function-C-source-directory))))
(expand-file-name library-name

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is slightly different in that it uses file-name handlers, but I'm pretty sure that's what we want (e.g., if the source directory is on a remote machine, in a docker container, etc.).

Comment thread helpful.el
Comment on lines +1338 to +1339
(file-name-directory
(directory-file-name find-function-C-source-directory)))))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is a bit unfortunate. Emacs 29 has file-name-parent-directory but that's rather new.

There were only 7 uses and 4 were aliases or thin wrappers around
built-in functions.
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.

1 participant