Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mode inheritence, cloning, hooks & OOP [was: Re: how to use cl-indent for CL and indent for EL files?]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Stallman  
View profile  
 More options Jan 16 1995, 12:09 am
Newsgroups: comp.emacs.xemacs
From: r...@gnu.ai.mit.edu (Richard Stallman)
Date: Mon, 16 Jan 1995 00:09:48 -0500
Local: Mon, Jan 16 1995 12:09 am
Subject: Re: mode inheritence, cloning, hooks & OOP [was: Re: how to use cl-indent for CL and indent for EL files?]
    The problem with defining a new major mode is that your new major mode
    will in many cases not be recognized as a generalization of the mode
    its based on because, e.g, many packages do tests like
    (eq major-mode 'lisp-mode).

I prefer a different solution--avoid testing for specific major modes.
Instead, use local variables set by the major mode.  This makes
inheritance possible between major modes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Stallman  
View profile  
 More options Jan 16 1995, 12:25 am
Newsgroups: comp.emacs.xemacs
From: r...@gnu.ai.mit.edu (Richard Stallman)
Date: Mon, 16 Jan 1995 00:25:44 -0500
Local: Mon, Jan 16 1995 12:25 am
Subject: Re: mode inheritence, cloning, hooks & OOP [was: Re: how to use cl-indent for CL and indent for EL files?]
    While this provides a useful feature for major-mode inheritance, one
    cannot help but question the design decision to extend the elisp
    language using ad-hoc inheritance solutions when there are much better

I suspect the people who "cannot help but question" this are a fairly
small.  There is no factual basis to claim that people in general, or
even programmers in general, will have this experience.

I installed derived.el because it does the job that actually needs
doing, and was a small amount of work.

Emacs Lisp is powerful enough.  Adding OOP to Emacs is not clearly an
improvement; I used OOP when working on the Lisp Machine window
systems, and I disagree with the usual view that it is a superior way
to program.  But even supposing that OOP would make Emacs better, it
is lower priority than many other changes (mostly in editing rather
than in Lisp).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marty Hall  
View profile  
 More options Jan 18 1995, 8:53 am
Newsgroups: comp.emacs.xemacs
From: h...@aplcenmp.apl.jhu.edu (Marty Hall)
Date: Wed, 18 Jan 1995 13:53:31 GMT
Local: Wed, Jan 18 1995 8:53 am
Subject: Re: mode inheritence, cloning, hooks & OOP [was: Re: how to use cl-indent for CL and indent for EL files?]

>>>>>> "WGD" == William G Dubuque <w...@martigny.ai.mit.edu> writes:

>    WGD> Unfortunately RMS is of the opinion that OOP support is not
>    WGD> needed in elisp. [...]

Where did you get this info? I'm not contesting it, just curious.
I was under the impression that RMS was moving toward a Scheme-based
extension language (GUILE), and that this would eventually be used in
emacs as well as in other GNU SW. In such a case, there are good OO
Scheme packages already existing that could be dropped in.

                                                - Marty
(proclaim '(inline skates))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Limes  
View profile  
 More options Jan 20 1995, 1:34 pm
Newsgroups: comp.emacs.xemacs
From: li...@freeside.3do.com (Greg Limes)
Date: 20 Jan 1995 18:34:29 GMT
Local: Fri, Jan 20 1995 1:34 pm
Subject: Re: mode inheritence, cloning, hooks & OOP [was: Re: how to use cl-indent for CL and indent for EL files?]
In article <3fj9o9$...@news.CNRI.Reston.Va.US> bwar...@cnri.reston.va.us (Barry A. Warsaw) writes:

One possible solution, then, is to have simple variables
"c-mode-likep", "c++-mode-likep" and "objc-mode-likep" which not only
would eval to t for their specific major modes, but also eval to t for
any newer major modes that descended from them.

Don't forget to do sane things when more than one of them is "t" ... ;-)
--
-- Greg Limes           li...@3do.com, li...@netcom.com
   Not speaking for my employer, of course
   PGP key available on request


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »