Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation-buffer-name-function is being overwritten #1841

Open
gopar opened this issue Apr 29, 2023 · 0 comments
Open

compilation-buffer-name-function is being overwritten #1841

gopar opened this issue Apr 29, 2023 · 0 comments

Comments

@gopar
Copy link

gopar commented Apr 29, 2023

I have a compilation-buffer-name-function defined to a function I like:

(defun gopar/compilation-buffer-name-function (arg)
    "Rename buffer to whatever command was used.
eg. *python main.py*"
    (concat "*" compile-command "*"))

(setq compilation-buffer-name-function 'gopar/compilation-buffer-name-function)

This is overwritten my projectile whenever I run the compile command
Relevant line: Let expression sets it to nil

Expected behavior

Expect projectile to not overwrite/honor the function

Actual behavior

Projectile wipes out any custom functions

Steps to reproduce the problem

Set compilation-buffer-name-function to any function, it will get overwritten

Environment & Version information

Projectile version information

Projectile 20230317.1101

Emacs version

GNU Emacs 29.0.90 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.1 (Build 21G217)) of 2023-04-11

Operating system

Mac 13.2.1

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

No branches or pull requests

1 participant