From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#16160: [PATCH] define-derived-mode clobbers syntax tables Date: Fri, 20 Dec 2013 13:45:43 -0800 Message-ID: <52B4BA87.8070200@dancol.org> References: <52AEE02B.8060309@dancol.org> <52AFB453.5000300@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1387575973 13599 80.91.229.3 (20 Dec 2013 21:46:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Dec 2013 21:46:13 +0000 (UTC) Cc: 16160@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 20 22:46:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vu7ti-0004ev-K8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 22:46:18 +0100 Original-Received: from localhost ([::1]:52000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu7ti-00084j-8F for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 16:46:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu7tY-00084c-Rg for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 16:46:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vu7tS-0004Nj-Gd for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 16:46:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu7tS-0004NA-0l for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 16:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vu7tR-00013D-Jp for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 16:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2013 21:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16160 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 16160-submit@debbugs.gnu.org id=B16160.13875759504015 (code B ref 16160); Fri, 20 Dec 2013 21:46:01 +0000 Original-Received: (at 16160) by debbugs.gnu.org; 20 Dec 2013 21:45:50 +0000 Original-Received: from localhost ([127.0.0.1]:60514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu7tG-00012h-CZ for submit@debbugs.gnu.org; Fri, 20 Dec 2013 16:45:50 -0500 Original-Received: from dancol.org ([96.126.100.184]:57625) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu7tD-00012Y-IY for 16160@debbugs.gnu.org; Fri, 20 Dec 2013 16:45:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=k51jlMrGnca+gRUe0eVpu6gsVFeLmzci4s/lG3EfixE=; b=NGpLFoFNSUgpsMd/8cyCNIj/yZ+YLfLmUR5hQMcw8nKEDy9+oNXLhObcaAEXCMWizr6hrdTj/iqVVIk2FB/30msJMbaaCUh53Nn24Douya1xY300T7mpWOPySBQDp8UarOA9qApyEclP6EcMVcCNLFweKZFjNfJS+NtxhbzLaqbzH1h+SzHeN1cTbpufJ2F9BaLys1qsH6vosHgxnMfbTdILs6nYWRPLr8GqT5bPKT1lZPPIH1sKSZgq+OG1vZzLbpEUCPB6fi7bxUKs2xuFTBYzmjJs0HgMXh9aJQo/v41v/67AHRo4DTGUwQjDkq4ht6jQb13FOA78l0oCL6KsqQ==; Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[192.168.1.100]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Vu7tB-0006pY-RT; Fri, 20 Dec 2013 13:45:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52AFB453.5000300@dancol.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82302 Archived-At: Actually... On 12/16/2013 06:17 PM, Daniel Colascione wrote: > On 12/16/2013 11:17 AM, Stefan Monnier wrote: >>> 1) Visit shell script with comments. See comments fontified properly. >>> 2) M-x find-library sh-script RET >>> 3) M-x eval-buffer >>> 4) Return to shell script buffer >>> 5) C-x C-v RET >>> 6) Observe that comments are no longer fontified as comments. The repro steps are incorrect. Try these: 1) emacs -Q 2) visit a shell script 3) M-x find-library sh-script RET 4) C-s define-derived-mode RET 5) C-M-x 6) switch to your shell script buffer 7) C-x C-v 8) Observe that the shell script is fontified incorrectly; the syntax table is now clobbered.