* 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.