From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Darren Hoo Newsgroups: gmane.emacs.help Subject: Re: Problem with msf-abbrev under Emacs 23 Date: Tue, 5 Oct 2010 11:21:59 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1286248953 30544 80.91.229.12 (5 Oct 2010 03:22:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Oct 2010 03:22:33 +0000 (UTC) Cc: help-gnu-emacs To: Seweryn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 05 05:22:29 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P2y6m-0002NX-Pq for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Oct 2010 05:22:29 +0200 Original-Received: from localhost ([127.0.0.1]:50103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2y6l-00064T-Vn for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Oct 2010 23:22:27 -0400 Original-Received: from [140.186.70.92] (port=52654 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2y6L-00062R-U7 for help-gnu-emacs@gnu.org; Mon, 04 Oct 2010 23:22:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2y6K-0008M7-Nb for help-gnu-emacs@gnu.org; Mon, 04 Oct 2010 23:22:01 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:39038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2y6K-0008Ly-LB for help-gnu-emacs@gnu.org; Mon, 04 Oct 2010 23:22:00 -0400 Original-Received: by qyk33 with SMTP id 33so5354qyk.0 for ; Mon, 04 Oct 2010 20:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=awOBl7gtPwVoLpCkPmBog1PEicb2W+QAiJrmoCa1eLg=; b=rtlseOx16GvLewwFoKIyiHHirBr5+bHmLXtDS7q78XWffMjgUDGgTsGnOXQ7Nxq0o1 zUikvjKD+EpHPHL4QYJ61gpNyYPvDKLlt7Fon9dsluInLcffxVKUVy36BvkyLM3JGRcz OjA+TJ3DPduXo4C7S71fUHJlJwXTgrZO4jZSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rsuO+8s/Y6JUDr6iDzvCgEa5UsJ908ptS6DyC0pfGimJRO3XnxFX8WahoEyZ4USkcK K0f5k1SpqZ9q3rBIEIaePqavzTr8jSAg9sc5N5egYhCCXaHVuquEM8Aw4UBjjKgj8XN4 JCJyxN5Zpk2hWo41RhyJkZ1Zw9tLwPqfGQG44= Original-Received: by 10.229.189.83 with SMTP id dd19mr7812822qcb.92.1286248919407; Mon, 04 Oct 2010 20:21:59 -0700 (PDT) Original-Received: by 10.220.175.130 with HTTP; Mon, 4 Oct 2010 20:21:59 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75067 Archived-At: Hi On Mon, Oct 4, 2010 at 5:22 PM, Seweryn wrote: > Hello, > > I'm using the msf-abbrev [1] library > ( http://www.emacswiki.org/emacs/MsfAbbrev ). > However starting from Emacs 23 the template does not work because it > doesn't give any choice when expanding an abbrev while other templates like > field, query work properly. > I tested it and I can use template, hit enter on the choice , a buffer pops which I can choose from , I use emacs23 and msf-abbrev 1.0beta3. Though in c-mode, msf-abbrev work strangely, so I have to tweak c-mode-common-hook a little bit like: (make-local-variable 'text-property-default-nonsticky) (assq-delete-all 'category text-property-default-nonsticky) since emacs23 category is added to text-property-default-nonsticky which stops msf-abbrev from working correctly in c-mode, but in other modes like python-mode ,it works ok ,that includes template methoned above. --- Darren