GNU bug report logs - #20780
25.0.50; explain where to find skeletons in autotype info manual

Previous Next

Package: emacs;

Reported by: Nicolas Richard <youngfrog <at> members.fsf.org>

Date: Tue, 9 Jun 2015 17:33:03 UTC

Severity: wishlist

Tags: fixed

Found in version 25.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 20780 <at> debbugs.gnu.org, youngfrog <at> members.fsf.org
Subject: bug#20780: 25.0.50; explain where to find skeletons in autotype info manual
Date: Thu, 10 Oct 2019 00:07:10 +0200
On 09/10/19 20:08, Lars Ingebrigtsen wrote:
> Eli Zaretskii <eliz <at> gnu.org> 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.




This bug report was last modified 5 years and 230 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.