From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nicolas Richard via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#20780: 25.0.50; explain where to find skeletons in autotype info manual Date: Thu, 10 Oct 2019 00:07:10 +0200 Message-ID: <97726d28-3219-2598-c5a1-6c70bfdd974e@yahoo.fr> References: <86eglkvlc8.fsf@members.fsf.org> <878spuvawa.fsf@gnus.org> <83a7a9vo77.fsf@gnu.org> <875zkx95lk.fsf@gnus.org> <834l0hvlpn.fsf@gnu.org> <87k19d7pwr.fsf@gnus.org> Reply-To: Nicolas Richard Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198701"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Icedove/52.9.1 Cc: 20780@debbugs.gnu.org, youngfrog@members.fsf.org To: Lars Ingebrigtsen , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 10 00:08:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIK7y-000pU1-0l for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 00:08:14 +0200 Original-Received: from localhost ([::1]:60432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIK7w-0004CI-Nj for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2019 18:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56030) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIK7o-0004Bx-S6 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 18:08:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIK7m-0005cs-3a for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 18:08:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45524) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIK7l-0005cm-W4 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 18:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iIK7l-0003ie-PT for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 18:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2019 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 20780-submit@debbugs.gnu.org id=B20780.157065884414243 (code B ref 20780); Wed, 09 Oct 2019 22:08:01 +0000 Original-Received: (at 20780) by debbugs.gnu.org; 9 Oct 2019 22:07:24 +0000 Original-Received: from localhost ([127.0.0.1]:54345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIK79-0003hf-Qc for submit@debbugs.gnu.org; Wed, 09 Oct 2019 18:07:24 -0400 Original-Received: from sonic305-21.consmr.mail.ir2.yahoo.com ([77.238.177.83]:41447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIK77-0003hR-Db for 20780@debbugs.gnu.org; Wed, 09 Oct 2019 18:07:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1570658835; bh=AHp0BTZ5FEnDUMeXQSDUQbMIhxZY5eKEor/kMVeuJqg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=UI+73dYb6LcvmelXVy7FYUUIYXfkROdVkguA2+TrOsPDLy/lgjpusjbZhTsExH7ewD/UXVpqd6+MAuWpD6Fg6m0MDR2at5VSBKShl2h65wNcRASbgv7RZ/uxEzHhenA3WZpn7/wdzl38UgwqNowXUARJ4XHVLIb4EqvTXoKXjEmiPbIpHIHalYbh8SMNxejpv2xsKaBeoD9EErPYaTcCi5uPkwY+O+0+ezVW1o997iWPdOek1gzhOpOn7hA8XsKAak+WhIbOKUV3AU8106xdKI48anUvGQZ37Zh7Xi/u+hOqLIzCIzxYXCq+k6DI/9Ic53yFTLedJteYheKcr0nYsg== X-YMail-OSG: iJRNos0VM1k29AwYlLsTrntNECwKwKoe5ClGvryVuHuiZwLVwOZunhEnliagmKE raFnT49xBjonQkL..cc0UdUeX72PiimErWvuXRSM0iZByfaK3L915d8cZgndRN7UudrgeB_5M1gD 1nWb5OfTnWySCJDCIqxwhEQaCmHDHTGmXfu_uJxOVOKHn2AKmJte4rMOLb1SL2TqyofufhAPxk7d bzrRu0V9Buo0osiAogQJm6UZW7MxzWEQ9SN5FDwCzikdRU4VlcmoGdo5s_FRDiKF5xIZVhGUucuT k8841IpzndpQtOzAZ3pKBnh64mA5zPgioId9j_c_5kaPangIgUk3o1t1CkU.BXTl7ojWlcjrDYAZ 9S0nWzXZPvY1SOy3ZNrQE1_LNJl6cVS2mK4F8gekFSjOKMlWZHQ6PZuRvQezMgAoq6IBh12Fy3MQ KYP1QDwX455TcyeIem3ni95Z3NVJuIlkNJksH7OQymsf5N34Yrpf4R9XT_.mDY5L0GkzqJL0Had6 .myR8rAtDZISDwqm1rbgEjncpWuRdjI9S_cGOELbe8fyNU2Ig8z5YUf94oVW.6kmOdXwGndDm3F5 cnJnM7cxyB7_K0BTexSeeCOfkKxtS7eWRCNoNxosf.EPFyrlLDxWp9HKdnDfEmEhYgfdq05d9xGz 2v2hB05ge5fTMkyf51uF4FZJiKObfD3jJ2Ejrmv7gD6epoyKznjejRMXAX7c8AhHVD91GuhXy1Qd r4JEHPHmV19kymza70IGZDj7s2VvQ7eJbK1A3lTHlUjEVg0wdMcghKGCrGqimgsNLzQnxIRk94H3 PVlLYnLB6CeXipfVsjDLis3lqMq2E_H23cssHpC_T9 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Wed, 9 Oct 2019 22:07:15 +0000 Original-Received: by smtp405.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID d50ccae8965e717ce1ea71ccfedbc9ce; Wed, 09 Oct 2019 22:07:11 +0000 (UTC) In-Reply-To: <87k19d7pwr.fsf@gnus.org> Content-Language: en-GB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:168810 Archived-At: On 09/10/19 20:08, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > >> Fine with me, thanks. > > OK; done, and I'm closing this bug report. Thanks for taking care of this bug report. FWIW I had not looked any further into skeletons since I wrote the bug report, and I still have no clue on how to use them. I thought I'd give it another try just now: at (info "(autotype) Skeletons as Abbrevs") I found: > Say you want ???ifst??? to be an abbreviation for the C language if > statement. You will tell Emacs that ???ifst??? expands to the empty string > and then calls the skeleton command. In Emacs Lisp you can say > something like ???(define-abbrev c-mode-abbrev-table "ifst" "" 'c-if)???. I tried to run that piece of lisp, then typed ifst in a test.c file, and all I got was an error (void-function c-if) I do understand that c-if is not defined as a function, but is it expected that *I* write it ? I was hoping it would just work out of the box. I still think we should mention some workings examples in the manual, near the beginning of it. Now I'm grepping for '(define-skeleton' in the git repo. It returns results in sh-script.el, modula2.el, python.el and a few others. Could any of those be mentionned in section 1 ? e.g. in shell-script-mode, C-c C-c runs sh-case, which is a skeleton. I think it's a great example of all the things mentionned in section 1. thanks, -- Nicolas.