Re: using MISC (post 1987 Forth hardware) opcodes
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: using MISC (post 1987 Forth hardware) opcodes         


Author: jmdrake_98
Date: Jul 11, 2006 08:06

Bernd Paysan wrote:
> jmdrake_98@yahoo.com wrote:
>
>> (version 2)
>> : digit -10 + -if -7 + then 65 + ;
>>
>> (Again, thanks CF mailing list).
>
> Good example, but slightly missing the point. If you have a destructive -IF,
> you would write that
>
> : digit -10 + dup -if -7 + then 65 + ;
>
> and the dup won't destroy anything (since the -10 consumes the same stack
> element as the dup after the +). Yes, that's more work to do, but what you
> waste here you might gain elsewhere, so it's all about trade-offs, anyway.
> And there's no space in the instruction set for both destructive and
> non-destructive branches ;-).
>
> -- ...
Show full article (1.74Kb)
34 Comments
Re: How big are your customisations?         


Author: David Kastrup
Date: Jul 26, 2006 03:02

"Davin Pearson" gmail.com> writes:
> Here is a quote from wikipedia (http://en.wikipedia.org/wiki/Emacs)
>
>> Many advanced users have .emacs files hundreds of lines long, with
>> idiosyncratic customizations that cause Emacs to diverge wildly
>> from the default behavior.
>
> My own customisations total 15,343 (that's 15 thousand) lines.
>
> I have split my .emacs file into 85 files to simplify things.
>
> My code includes all of my font preferences,
> an automated backup system, a C++
> class browser and many more features.
>
> I was wondering how many lines of Lisp code
> other people out there use. How many lines
> do people like Eli Zaretskii, Richard Stallman
> or Donald Knuth use...
Show full article (0.85Kb)
no comments
Re: How big are your customisations?         


Author: Tassilo Horn
Date: Jul 26, 2006 05:01

"Davin Pearson" gmail.com> writes:

Hi Davin,
> My own customisations total 15,343 (that's 15 thousand) lines.

Wow, you could have written you own emacs clone with less LOC. ;-)

,----[ wc -l .emacs .gnus.el .ercrc.el programs/emacs/th-common.el ]
| 703 /home/heimdall/.emacs
| 469 /home/heimdall/.gnus.el
| 121 /home/heimdall/.ercrc.el
| 66 /home/heimdall/programs/emacs/th-common.el
| 1359 insgesamt
`----

But I have to admit that more than a half of those lines are comments,
so here's a cleaned up version:

,----[ grep -E '^[:space:]*[^;]+$' .emacs .gnus.el .ercrc.el \ ]
| [ programs/emacs/th-common.el | wc -l ]
| 582
`----
Show full article (0.90Kb)
no comments
Re: How big are your customisations?         


Author: Mathias Dahl
Date: Jul 26, 2006 05:20

"Davin Pearson" gmail.com> writes:
> My own customisations total 15,343 (that's 15 thousand) lines.
>
> I have split my .emacs file into 85 files to simplify things.

That's crazy! :) Really. Wow...

Mine is ~2400 lines. But I have put some stuff I use in other files,
which I then `require', so in a way it is not a valid answer.
no comments
Re: How big are your customisations?         


Author: Eli Zaretskii
Date: Jul 26, 2006 11:52

> From: "Davin Pearson" gmail.com>
> Date: 26 Jul 2006 02:45:42 -0700
>
> My own customisations total 15,343 (that's 15 thousand) lines.

This is -- how should I put it -- not normal ;-)
> I was wondering how many lines of Lisp code
> other people out there use. How many lines
> do people like Eli Zaretskii, Richard Stallman
> or Donald Knuth use...

I'm hardly a customization junkie: my .emacs has only 727 lines, many
of which target various platforms on which I work, and some even old
versions of Emacs, if I ever need to use them again.
no comments
Re: How big are your customisations?         


Author: Edward O'Connor
Date: Jul 27, 2006 11:38

Davin Pearson wrote:
> I was wondering how many lines of Lisp code other people out there
> use.

,----[ wc -l .emacs .ercrc.el .gnus .viper elisp/color-theme-hober2.el ]
| 2531 .emacs
| 148 .ercrc.el
| 349 .gnus
| 131 .viper
| 751 elisp/color-theme-hober2.el
| 3910 total
`----

--
Edward O'Connor
hober0@gmail.com

Ense petit placidam sub libertate quietem.
no comments
Formatting output [was: How big are your customisations?]         


Author: Dieter Wilhelm
Date: Jul 27, 2006 12:48

Edward O'Connor gmail.com> writes:
> Davin Pearson wrote:
>
>> I was wondering how many lines of Lisp code other people out there
>> use.
>
> ,----[ wc -l .emacs .ercrc.el .gnus .viper elisp/color-theme-hober2.el ]
> | 2531 .emacs
> | 148 .ercrc.el
> | 349 .gnus
> | 131 .viper
> | 751 elisp/color-theme-hober2.el
> | 3910 total
> `----

How do you manage to get this nice "bracket" around your command line
and the results? There must be an automated way, I've seen it so
often with info help nodes.

--
Best wishes
Show full article (0.59Kb)
1 Comment
Re: How big are your customisations?         


Author: Dieter Wilhelm
Date: Jul 27, 2006 05:12

"Davin Pearson" gmail.com> writes:
>
> I was wondering how many lines of Lisp code
> other people out there use. How many lines
> do people like Eli Zaretskii, Richard Stallman
> or Donald Knuth

or ... many, many dots ... or Dieter's .emacs has 287 active code
lines (575 lines overall, of which the really interesting ones are
from a suggestion of Kevin Rogers).

--
Best wishes

H. Dieter Wilhelm
Darmstadt, Germany
1 Comment
Re: How big are your customisations?         


Author: Davin Pearson
Date: Jul 28, 2006 02:56

Eli Zaretskii wrote:
> I'm hardly a customization junkie: my .emacs has only 727 lines, many
> of which target various platforms on which I work, and some even old
> versions of Emacs, if I ever need to use them again.

My first customisation was to set tab-width to 4.

The online help for Emacs is excellent
and I became somewhat addicted to
the process of customisation... learning
more and changing more and so on...

Then I redefined C-x f to C-f (in all modes)
to save my left hand from too much
stretching. I still can't believe that most
people don't do this.

Then I changed the command M-c to behave
like so aaa_bbb_ccc -> Aaa_Bbb_Ccc
for more readable C++ code.

Then I (re)defined all of the function
keys to perform common operations
like f8 to undo and f9 to compile.
Show full article (1.51Kb)
no comments
Checking for Emacs flavors, OS, graphics, ... (was: How big are your customisations?)         


Date: Jul 28, 2006 05:03

On Fri, Jul 28 2006, Davin Pearson wrote:
> emacs-dialect--dosemacs-p

(memq system-type '(ms-dos))
> emacs-dialect--xemacs-p

(featurep 'xemacs)
> emacs-dialect--gnuemacs-p

(not (featurep 'xemacs))
> os-type--microsoft-p

(memq system-type '(ms-dos windows-nt cygwin))
> os-type--linux-p

(memq system-type '(gnu/linux))
> os-type--mswindows-p

(memq system-type '(windows-nt))
> os-type--msdos-p

(memq system-type '(ms-dos))
> os-type--graphical-p

(display-graphic-p)
> os-type--text-p

(display-graphic-p)
Show full article (0.94Kb)
no comments
1 2 3 4