🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99906

Some tiny enhancements for Emacs version 19

#99906
From: Eric Hanchrow
Date: Fri, 30 Mar 1990 17:59
53 lines
2702 bytes
Emacs kindly points out when I've typed mismatched or unmatched
parentheses.  It does this by printing a little message in the echo
area.  But since I'm not too perceptive, I usually don't notice the
little message, so I juggled the function `blink-matching-open' to
ring the bell as well:
	*** simple.el	Fri Mar 30 09:53:50 1990
	--- simple.el~	Fri Mar 30 09:53:25 1990
	***************
	*** 1277,1287 ****
						(end-of-line)
						(point)))))))
		     (cond (mismatch
	! 		    (message "Mismatched parentheses")
	! 		    (ding))
			   ((not blink-matching-paren-distance)
	! 		    (message "Unmatched parenthesis")
	! 		    (ding))))))))

	  ;Turned off because it makes dbx bomb out.
	  (setq blink-paren-hook 'blink-matching-open)
	--- 1277,1285 ----
						(end-of-line)
						(point)))))))
		     (cond (mismatch
	! 		    (message "Mismatched parentheses"))
			   ((not blink-matching-paren-distance)
	! 		    (message "Unmatched parenthesis"))))))))

	  ;Turned off because it makes dbx bomb out.
	  (setq blink-paren-hook 'blink-matching-open)

This is the same as in the 18.55 distribution of `compile.el', except
I've added a `(widen)' right after the offending file is visited.  I
tend to narrow the buffers with my source in them.

	*** /usr/local/emacs18.55/lisp/compile.el	Thu Dec 29 11:25:03 1988
	--- compile.el	Fri Mar 30 09:58:09 1990
	***************
	*** 279,284 ****
	--- 279,285 ----
		      ;; Go to that buffer and find the erring line.
		      (save-excursion
			(set-buffer text-buffer)
	+ 		(widen)
			(if (zerop last-linenum)
			    (progn
			      (goto-char 1)
       ------------------------------------------------------------------------
       |Eric Hanchrow		yamada-sun!eric@nosun.west.sun.com	      |
       |Phase III Logic, Inc.	...!{tektronix, sun}!nosun!yamada-sun!eric    |
       |1600 N.W. 167th Place		Beaverton, OR 97006		      |
       |Voice: (503)-645-0313		Fax: (503)-645-0207    as of 13-Dec-89|
       ------------------------------------------------------------------------
Technical Details
Message-ID: <9003301759.AA01494@yamada-sun.UUCP>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!nosun.west.sun.com!yamada-sun!eric_murphy

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,66ffde6ec5d8634b,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-03-30 09:59:34 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!nosun.west.sun.com!yamada-sun!eric_murphy
From: yamada-sun!eric@nosun.west.sun.com (Eric Hanchrow)
Newsgroups: gnu.emacs.bug
Subject: Some tiny enhancements for Emacs version 19
Message-ID: <9003301759.AA01494@yamada-sun.UUCP>
Date: 30 Mar 90 17:59:34 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 53
Posted: Fri Mar 30 18:59:34 1990