GNU bug report logs -
#75799
30.0.93: make-nearby-temp-file works like make-temp-file on my system
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75799 in the body.
You can then email your comments to 75799 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75799
; Package
emacs
.
(Fri, 24 Jan 2025 07:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gerard Vermeulen <gerard.vermeulen <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 24 Jan 2025 07:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I am using
GNU Emacs 30.0.93 (build 8, x86_64-apple-darwin20.6.0, NS appkit-2202.70
Version 11.7.1 (Build 20G918)) of 2025-01-23
and I get
(make-nearby-temp-file "gofmt" nil ".go")
"/var/folders/5v/lnm0b8z940327w8v82hxsn6c0000gn/T/gofmt9rXqIN.go"
where I expect a file in my default directory.
Here, make-nearby-temp-file works almost like make-temp-file.
(discovered when "stealing" the gofmt function from
https://github.com/dominikh/go-mode.el)
Is this also a bug on other systems than mine?
Best regards -- Gerard
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75799
; Package
emacs
.
(Fri, 24 Jan 2025 08:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 75799 <at> debbugs.gnu.org (full text, mbox):
tags 75799 notabug
thanks
> Date: Fri, 24 Jan 2025 07:25:37 +0000
> From: Gerard Vermeulen <gerard.vermeulen <at> posteo.net>
>
> I am using
> GNU Emacs 30.0.93 (build 8, x86_64-apple-darwin20.6.0, NS appkit-2202.70
> Version 11.7.1 (Build 20G918)) of 2025-01-23
> and I get
>
> (make-nearby-temp-file "gofmt" nil ".go")
> "/var/folders/5v/lnm0b8z940327w8v82hxsn6c0000gn/T/gofmt9rXqIN.go"
>
> where I expect a file in my default directory.
> Here, make-nearby-temp-file works almost like make-temp-file.
> (discovered when "stealing" the gofmt function from
> https://github.com/dominikh/go-mode.el)
>
> Is this also a bug on other systems than mine?
This is not a bug: for files on local (i.e. not remote) filesystems,
make-nearby-temp-file is the same as make-temp-file. This is
described in its doc string.
If you want to create a local temporary file in default-directory,
call make-temp-file with its first argument PREFIX an absolute file
name in default-directory:
(make-temp-file (expand-file-name default-directory) ... )
Added tag(s) notabug.
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 24 Jan 2025 08:37:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 08 Feb 2025 09:22:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Gerard Vermeulen <gerard.vermeulen <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 08 Feb 2025 09:22:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 75799-done <at> debbugs.gnu.org (full text, mbox):
> Cc: 75799 <at> debbugs.gnu.org
> Date: Fri, 24 Jan 2025 10:36:19 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> tags 75799 notabug
> thanks
>
> > Date: Fri, 24 Jan 2025 07:25:37 +0000
> > From: Gerard Vermeulen <gerard.vermeulen <at> posteo.net>
> >
> > I am using
> > GNU Emacs 30.0.93 (build 8, x86_64-apple-darwin20.6.0, NS appkit-2202.70
> > Version 11.7.1 (Build 20G918)) of 2025-01-23
> > and I get
> >
> > (make-nearby-temp-file "gofmt" nil ".go")
> > "/var/folders/5v/lnm0b8z940327w8v82hxsn6c0000gn/T/gofmt9rXqIN.go"
> >
> > where I expect a file in my default directory.
> > Here, make-nearby-temp-file works almost like make-temp-file.
> > (discovered when "stealing" the gofmt function from
> > https://github.com/dominikh/go-mode.el)
> >
> > Is this also a bug on other systems than mine?
>
> This is not a bug: for files on local (i.e. not remote) filesystems,
> make-nearby-temp-file is the same as make-temp-file. This is
> described in its doc string.
>
> If you want to create a local temporary file in default-directory,
> call make-temp-file with its first argument PREFIX an absolute file
> name in default-directory:
>
> (make-temp-file (expand-file-name default-directory) ... )
No further comments, so I'm now closing this non-bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 08 Mar 2025 12:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.