🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99537

lisp-complete-symbol bug

#99537
From: Scott D Kalter
Date: Tue, 14 Aug 1990 00:48
51 lines
2085 bytes
GNU Emacs 18.55.0 on ata (berkeley-unix)
Sun OS 4.1
Sun4c

The problem is that the lisp-complete-symbol function uses the current
buffer's syntax table rather than the lisp-mode-syntax-table.  I
noticed this when I started defining elisp functions with a colon (:)
in the name and could not do symbol completion in the minibuffer on
that symbol.

Included are some context diffs for a proposed solution.

Scott D. Kalter  <sdk@twinsun.com>
Chris D. Houser  <chris@twinsun.com>

----------------

*** /usr/tmp/aaaa03778	Mon Aug 13 17:37:57 1990
--- lisp.el	Mon Aug 13 17:37:51 1990
***************
*** 197,207 ****
  or properties are considered."
    (interactive)
    (let* ((end (point))
! 	 (beg (save-excursion
! 		(backward-sexp 1)
! 		(while (= (char-syntax (following-char)) ?\')
! 		  (forward-char 1))
! 		(point)))
  	 (pattern (buffer-substring beg end))
  	 (predicate
  	  (if (eq (char-after (1- beg)) ?\()
--- 197,211 ----
  or properties are considered."
    (interactive)
    (let* ((end (point))
! 	 (beg
! 	  (save-excursion             
! 	    (let ((old-syntax-table (syntax-table)))
! 	      (set-syntax-table lisp-mode-syntax-table)
! 	      (backward-sexp 1)
! 	      (while (= (char-syntax (following-char)) ?\')
! 		(forward-char 1))
! 	      (set-syntax-table old-syntax-table)
! 	      (point))))
  	 (pattern (buffer-substring beg end))
  	 (predicate
  	  (if (eq (char-after (1- beg)) ?\()

----------------
Technical Details
Message-ID: <9008140048.AA03782@ata.twinsun.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!twinsun.com!sdk

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,b2fa987b1b8bef2f,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-08-14 12:10:42 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!twinsun.com!sdk
From: sdk@twinsun.com (Scott D Kalter)
Newsgroups: gnu.emacs.bug
Subject: lisp-complete-symbol bug
Message-ID: <9008140048.AA03782@ata.twinsun.com>
Date: 14 Aug 90 00:48:44 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 51
Posted: Tue Aug 14 01:48:44 1990