* Re: [nongnu] elpa/undo-fu-session a6c4f73bc2: Cleanup: define functions side-effect-free
[not found] ` <20230704020025.7B95AC11DCA@vcs2.savannah.gnu.org>
@ 2023-07-04 3:13 ` Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2023-07-04 3:13 UTC (permalink / raw)
To: emacs-devel; +Cc: Campbell Barton
> (defun undo-fu-session--ensure-trailing-slash (dir)
> "Return DIR with exactly one trailing slash."
> + (declare (side-effect-free error-free))
> ;; Both "/tmp" and "/tmp//" result in "/tmp/"
> (file-name-as-directory (directory-file-name dir)))
Hmm... haven't checked the other ones, but this one is obviously a lie,
since it will signal an error if you pass it, say, an integer.
Stefan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-04 3:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <168843602520.15656.10263776016888491607@vcs2.savannah.gnu.org>
[not found] ` <20230704020025.7B95AC11DCA@vcs2.savannah.gnu.org>
2023-07-04 3:13 ` [nongnu] elpa/undo-fu-session a6c4f73bc2: Cleanup: define functions side-effect-free Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).