From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#4737: 23.1.50; C-j in *scratch* after a hash table constant errors with void-function Date: Sat, 17 Oct 2009 23:43:46 -0400 Message-ID: <87y6n98iz1.fsf@stupidchicken.com> Reply-To: Chong Yidong , 4737@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255838857 20948 80.91.229.12 (18 Oct 2009 04:07:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 04:07:37 +0000 (UTC) Cc: 4737@emacsbugs.donarmstrong.com To: Aidan Kehoe Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 18 06:07:29 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzN3H-0007mT-21 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 06:07:27 +0200 Original-Received: from localhost ([127.0.0.1]:47557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzN3G-0008MV-IP for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 00:07:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzN3B-0008M1-Fl for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 00:07:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzN36-0008LE-NP for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 00:07:21 -0400 Original-Received: from [199.232.76.173] (port=42173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzN36-0008L1-Jo for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 00:07:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41593) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzN35-0005zr-Vi for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 00:07:16 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9I47BWG010162; Sat, 17 Oct 2009 21:07:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9I3o5Z5006622; Sat, 17 Oct 2009 20:50:05 -0700 Resent-Date: Sat, 17 Oct 2009 20:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 18 Oct 2009 03:50:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4737 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4737-submit@emacsbugs.donarmstrong.com id=B4737.12558374355662 (code B ref 4737); Sun, 18 Oct 2009 03:50:05 +0000 Original-Received: (at 4737) by emacsbugs.donarmstrong.com; 18 Oct 2009 03:43:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pantheon-po39.its.yale.edu (pantheon-po39.its.yale.edu [130.132.50.100]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9I3hsZB005655 for <4737@emacsbugs.donarmstrong.com>; Sat, 17 Oct 2009 20:43:55 -0700 Original-Received: from furry (adsl-99-69-50-113.dsl.wlfrct.sbcglobal.net [99.69.50.113]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n9I3hllg014144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2009 23:43:47 -0400 Original-Received: by furry (Postfix, from userid 1000) id E64C4C070; Sat, 17 Oct 2009 23:43:46 -0400 (EDT) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 18 Oct 2009 00:07:21 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32050 Archived-At: > In *scratch*: > > (progn > (setq print-length nil) > (make-hash-table)) > => #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ()) > > #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data > ()) > => > Debugger entered--Lisp error: (void-function hash-table) > (hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data nil) > eval((hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data nil)) > eval-last-sexp-1(t) > eval-last-sexp(t) > eval-print-last-sexp() > call-interactively(eval-print-last-sexp nil nil) > However, this succeeds: > (car (list > #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ()))) > => #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ()) > XEmacs handles the problem in #'forward-sexp I think it's safer to handle it in preceding-sexp. Could you test the patch below? *** emacs/lisp/emacs-lisp/lisp-mode.el.~1.247.~ 2009-09-27 18:51:01.000000000 -0400 --- emacs/lisp/emacs-lisp/lisp-mode.el 2009-10-17 23:41:53.000000000 -0400 *************** *** 673,678 **** --- 673,682 ---- (when (eq (preceding-char) ??) (forward-char -1))) + ;; Skip over hash table read syntax + (when (looking-back "#s") + (forward-char -2)) + ;; Skip over `#N='s. (when (eq (preceding-char) ?=) (let (labeled-p)