[racket] What controls when the DrRacket file extension popup dialog comes up?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Jun 20 18:48:21 EDT 2014

TL;DR: I think that you can create the file with the filename you want and
then open the file in DrRacket instead of using the save menu item to
create the file.

DrRacket is making this call to put-file:

#lang racket/gui
 "Select a file" #f #f #f
 '(("Racket Sources" "*.rkt;*.scrbl;*.rktl;*.rktd;*.ss;*.scm") ("Any"

and my read of the docs suggests that this call should allow .pmd, as long
as .pmd is an "extension that is recognized by the system".

In any case, as far as I can tell, you cannot work around this and still
use save to create the file, I'm sorry to say; it seems to require a change
either in the Racket source or possibly in Mac OS X itself.


On Tue, Jun 17, 2014 at 1:41 PM, Alec Ramsay <a73cram5ay at gmail.com> wrote:

> Hello,
> I'm using DrRacket on Mac OS X to work through the Pollen Quick tour
> <http://mbutterick.github.io/pollen/doc/quick-tour.html>.
> When saving files with .pp and .pm file extension, I get the popup below
> as expected and desired (and DrRacket creates files with .pp and .pm file
> extensions, respectively, no .rkt extension).
> However, when I make the file name have a .pmd file extension and
> save--see Section 2.7 - Markdown Mode--this popup does not appear, and
> DrRacket simply automatically appends the .rkt extension (which I don't
> want) and saves. There doesn't seem to be a way to save a file with just a
> .pmd extension from DrRacket. (Again, you can for .pp and .pm).
> What controls when this popup appears and/or how do I get it to appear, so
> I can create .pmd files from w/in DrRacket?
> Thanks in advance for any tips or suggestions!
> Alec
> [image: Inline image 1]
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140620/9a6f243c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 23215 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20140620/9a6f243c/attachment-0001.png>

Posted on the users mailing list.