Thread overview
D version of MicroEmacs
Aug 19, 2012
Walter Bright
Aug 19, 2012
Bernard Helyer
Aug 19, 2012
Walter Bright
Aug 19, 2012
MattCoder
Aug 19, 2012
Walter Bright
Aug 20, 2012
MattCoder
August 19, 2012
https://github.com/DigitalMars/med

It's a fairly rote translation from C, not taking advantage of D. I'd like to upgrade it to using ranges, etc. It would make a nice base for someone who feels like creating their own IDE.


The C version is here:

https://github.com/DigitalMars/me

Yes, I use this editor every day, as it works identically on Windows, Linux, OSX, FreeBSD, DOS (!), etc., and is easy to port.
August 19, 2012
The windows version has always flickered something fierce for me, no idea why.

How well does it handle large files? (Like, several gigabytes large).

August 19, 2012
On 8/19/2012 3:07 PM, Bernard Helyer wrote:
> The windows version has always flickered something fierce for me, no idea why.

Hmm. Never happens to me.


> How well does it handle large files? (Like, several gigabytes large).

Badly. For one thing, it's a 32 bit program and tries to do everything in memory.


August 19, 2012
I'm trying to build this on Windows, but:

[ With dmd version 2.057 ]

C:\med>make -fwin32.mak DMD=dmd
dmd -c -g display
display.d(860): Error: function display.vtputs called with argument types:
        ((string,int))
matches both:
        display.vtputs(const(char[]) s, int startcol)
and:
        display.vtputs(const(dchar[]) s, int startcol)
display.d(866): Error: function display.vtputs called with argument types:
        ((string,int))
matches both:
        display.vtputs(const(char[]) s, int startcol)
and:
        display.vtputs(const(dchar[]) s, int startcol)

--- errorlevel 1


[ With dmd version 2.060 ]

C:\med2>make -fwin32.mak DMD=dmd
dmd -c -g ed

dmd -c -g basic
C:\D\dmd2\windows\bin\..\..\src\phobos\std\file.d(530): Error: undefined identifier WIN32_FILE_ATTRIBUTE_DATA

--- errorlevel 1


Any clues?
August 19, 2012
On 8/19/2012 3:58 PM, MattCoder wrote:
> I'm trying to build this on Windows, but:
>
> [ With dmd version 2.057 ]

Use 2.060.


> [ With dmd version 2.060 ]
>
> C:\med2>make -fwin32.mak DMD=dmd
> dmd -c -g ed
>
> dmd -c -g basic
> C:\D\dmd2\windows\bin\..\..\src\phobos\std\file.d(530): Error: undefined
> identifier WIN32_FILE_ATTRIBUTE_DATA
>
> --- errorlevel 1
>
>
> Any clues?

WIN32_FILE_ATTRIBUTE_DATA is defined in

druntime\import\core\sys\windows\windows.d
August 20, 2012
On Sunday, 19 August 2012 at 23:45:12 UTC, Walter Bright wrote:
>
> WIN32_FILE_ATTRIBUTE_DATA is defined in
>
> druntime\import\core\sys\windows\windows.d


It worked! Thanks.