help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding major-mode selection to new buffer


From: Jean Louis
Subject: Re: Adding major-mode selection to new buffer
Date: Thu, 30 Jun 2022 16:06:24 +0300
User-agent: Mutt/+ () (2022-05-21)

* carlmarcos--- via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> [2022-06-29 19:58]:
> Jun 29, 2022, 16:05 by help-gnu-emacs@gnu.org:
> 
> Jean, have been trying to include the name in file-name, but I cannot see it 
> being
> introduced.
> 
> (file-name
>              (concat rcd-temp-file-directory
>                      (format-time-string "%Y-%m-%d-T%H:%M:%S--")
>                      rcd-temp-buffer-name "-" name ".txt"))

That variable `name' must have some value to work. You need not have
`rcd-temp-buffer-name', you may construct your own file name as you
wish.

But you have to get value for name.

If you wish to be asked for name, then 

(read-file-name "File name: ")

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]