Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!mordor!lll-tis!ptsfa!ihnp4!cbosgd!osu-eddie!bob%tut.cis.ohio-state.edu From: bob%tut.cis.ohio-state.edu@osu-eddie.UUCP (Bob Sutterfield) Newsgroups: comp.emacs Subject: Re: Pascal mode for GNU Emacs Message-ID: <3739@osu-eddie.UUCP> Date: Wed, 1-Jul-87 17:01:07 EDT Article-I.D.: osu-eddi.3739 Posted: Wed Jul 1 17:01:07 1987 Date-Received: Sat, 4-Jul-87 10:09:03 EDT Sender: news@osu-eddie.UUCP Reply-To: bob@osu-eddie.UUCP (Bob Sutterfield) Followup-To: <807@watcgl.UUCP> <27@gt-eedsp.UUCP> Organization: The Ohio State University Dept of Computer & Information Science Lines: 48 Keywords: pascal-mode pc case-sensitivity Summary: need lower case keywords for Berkeley pc default In article <807@watcgl.UUCP> pjmbaker@watcgl.UUCP (Peter J M Baker) writes: >Here is a pascal mode that was sent to me awhile back after I made >the same request. > ... >I believe the GNU people are including something derived from this in >their current (or next?) release of GNU emacs. > ... >Peter Baker, Computer Science Dept., University of Waterloo Thanks, Peter, for posting that, and to the other authors for their work on Pascal-mode. It is about to be very useful to some of our students. I wonder why it hasn't made it into a GNU distribution yet, as a standard major mode? >; Pascal editing support package >; Author Mick Jordan for Modula-2 >; amended Peter Robinson >; ported to GNU Michael Schmidt >; Modified by Tom Perrine (TEP) >; analogue for pascal by Vincent Broman > ... >(defun pascal-begin () > "Insert a BEGIN-END pair and indent for the line between." > (interactive) > (insert "BEGIN") > (pascal-newline) > (pascal-newline) > (insert "END;") > (let ((comment (read-string "comment about block: "))) > (cond ((not (string-equal comment "")) (insert " {" comment "}")))) > (end-of-line 0)) I would suggest that you change all the keywords to lower case. pc has a -L switch that "Maps upper case letters in keywords and identifiers to lower case", but it would be more convenient for many users to have the keywords in lower case already. Perhaps this should be controlled by a variable, something like `pascal-keywords-upper-case', so that it would be more individually controllable. The default should be to put the keywords in lower case, since pc by default expects them that way. When users want more readable code, they can both turn on the variable, and start using the -L switch. -=- Bob Sutterfield, Department of Computer and Information Science The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277 bob@ohio-state.{arpa,csnet} or ...!cbosgd!osu-eddie!bob soon: bob@aargh.cis.ohio-state.edu