From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: Using skeletons: how to avoid adding newline?
Date: Sun, 13 Apr 2003 11:18:29 +0200 [thread overview]
Message-ID: <u1y06u55m.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: shfzomnbic.fsf@tux.gnu.franken.de
Karl Eichwalder <keichwa@gmx.net> writes:
> I'm trying to accomplish something very basic: "link" should become
> [[link]]; this code snippet works but I'd like to avoid the newline
> after "]]":
>
> (define-skeleton ke-wp-make-link
> "Create [[wikipedia link]]."
> nil
> "[[" _ "]]")
Looking at the code of skeleton.el ... this happens because
`skeleton-end-hook' is run after the insertion.
,----[ C-h v skeleton-end-hook RET ]
| [...]
|
| Hook called at end of skeleton but before going to point of interest.
| By default this moves out anything following to next line,
| unless `skeleton-end-newline' is set to nil.
| The variables `v1' and `v2' are still set when calling this.
|
| Defined in `skeleton'.
|
| [back]
`----
Setting `skeleton-end-newline' to nil, does help indeed. But I have
no idea whether this causes trouble elsewhere. Perhaps it is best to
set it buffer locally?
Oliver
--
24 Germinal an 211 de la Révolution
Liberté, Egalité, Fraternité!
next prev parent reply other threads:[~2003-04-13 9:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-13 6:43 Using skeletons: how to avoid adding newline? Karl Eichwalder
2003-04-13 9:18 ` Oliver Scholz [this message]
2003-04-13 15:15 ` Karl Eichwalder
2003-04-13 17:04 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u1y06u55m.fsf@ID-87814.user.dfncis.de \
--to=alkibiades@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.