unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: James Thomas <jimjoe@gmx.net>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How to convert an arbitrary string into a filename
Date: Sat, 29 Apr 2023 11:50:18 +0530	[thread overview]
Message-ID: <87h6sz1a71.fsf@gmx.net> (raw)
In-Reply-To: <87wn1z8fgo.fsf@mbork.pl> (Marcin Borkowski's message of "Wed, 26 Apr 2023 05:55:35 +0200")

Marcin Borkowski wrote:

> Is there a function for that in Emacs already

I don't think so, because the denote package for eg., uses a custom
function called denote-sluggify:

https://git.sr.ht/~protesilaos/denote/tree/main/item/denote.el

There's also something similar in the function `make-backup-file-name-1`
in files.el, for paths.


--



      parent reply	other threads:[~2023-04-29  6:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-26  3:55 How to convert an arbitrary string into a filename Marcin Borkowski
2023-04-26  4:03 ` Platon Pronko
2023-04-26  4:42   ` Marcin Borkowski
2023-04-26  5:39     ` Platon Pronko
2023-04-26 18:32       ` Marcin Borkowski
2023-04-26  5:42 ` Yuri Khan
2023-04-26 18:32   ` Marcin Borkowski
2023-04-26 10:08 ` Jean Louis
2023-04-26 12:30   ` Jean Louis
2023-04-26 13:07   ` Eli Zaretskii
2023-04-27  4:52     ` Jean Louis
2023-04-27  5:53       ` Eli Zaretskii
2023-04-27  8:06         ` Platon Pronko
2023-04-26 18:30   ` Marcin Borkowski
2023-04-26 21:29 ` Emanuel Berg
2023-04-27  6:51   ` Marcin Borkowski
2023-04-26 21:32 ` Emanuel Berg
2023-04-27  6:49   ` Marcin Borkowski
2023-04-29  6:20 ` James Thomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6sz1a71.fsf@gmx.net \
    --to=jimjoe@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).