[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add buffer name option for project-compile
From: |
Ivan Sokolov |
Subject: |
Re: [PATCH] Add buffer name option for project-compile |
Date: |
Mon, 12 Apr 2021 10:34:57 +0000 |
On April 12, 2021 8:13:44 AM UTC, Philip Kaludercic <philipk@posteo.net> wrote:
>Ivan Sokolov <ivan-p-sokolov@ya.ru> writes:
>
>> +(defun project--compilation-buffer-name (mode)
>> + (concat "*"
>> + (file-name-nondirectory
>> + (directory-file-name default-directory))
>
>Should this be the default directory or the project root?
project-compile sets the default directory to the project root
>> + "-"
>> + (downcase mode)
>> + "*"))