1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

31 Commits

Author SHA1 Message Date
Stefan Monnier
da8249b4a9 (skeleton-internal-list, skeleton-internal-1):
Don't treat \n specially in sub-skeletons.
2003-01-17 20:35:48 +00:00
Stefan Monnier
25ab24bcb9 (skeleton-transformation): Default to `identity'.
(skeleton-insert): Use `move-after' markers and `insert' rather
than rely on insert-before-markers.
(skeleton-internal-1): Handle `> \n' specially so that the newline
is inserted before the first line is indented.
2002-05-14 14:14:11 +00:00
Pavel Janík
1cd7adc68a Emacs lisp coding convention fixes. 2001-07-14 11:21:08 +00:00
Stefan Monnier
5b83f9c095 (skeleton-internal-list): Fix bogus logic.
(skeleton-pair-insert-maybe): Don't pair after a backslash.
2001-03-23 17:50:41 +00:00
Stefan Monnier
3bb34a0214 Docstring fixes. 2001-02-04 20:57:37 +00:00
Stefan Monnier
02399da7a6 (skeleton-internal-1): Always push the mark for @. 2001-02-04 20:46:51 +00:00
Stefan Monnier
d21584d6d7 (skeleton-internal-1): Really make sure the first line of
the region is also re-indented.
(skeleton-end-newline): New var.
(skeleton-end-hook): Use it.
2000-12-22 22:56:36 +00:00
Stefan Monnier
26736ce36e (skeleton-internal-1): Make sure the first line of
the region is also re-indented.
2000-12-22 19:37:31 +00:00
Karl Heuer
3e9103768f Update comment. 1998-12-14 03:22:44 +00:00
Richard M. Stallman
f8a5751b06 (skeleton-read): Doc fix. 1997-04-24 19:40:23 +00:00
Richard M. Stallman
53d393c96b (define-skeleton): Doc fix. 1997-04-23 17:37:06 +00:00
Richard M. Stallman
5b75ef8b0b (skeleton-read): Fix previous change. 1997-04-20 01:37:09 +00:00
Richard M. Stallman
93c36a6dc7 (skeleton-insert): Rename the function's argument
to `regions', and bind `skeleton-regions' with let.
(skeleton-read): Rename arg STR to PROMPT.
1997-04-16 19:41:21 +00:00
Richard M. Stallman
157b7809ca (skeleton-positions): Renamed from skeleton-marks. 1996-12-28 19:33:20 +00:00
Richard M. Stallman
a6dccb5154 (skeleton-marks): New variable.
(skeleton-insert, skeleton-internal-1): Set skeleton-marks.
1996-12-28 19:31:17 +00:00
Richard M. Stallman
7a8f27dbe6 Comment change. 1996-10-12 02:42:58 +00:00
Richard M. Stallman
28895aea10 (skeleton-proxy-new): New function.
(define-skeleton): Define the skeleton as a defun
using skeleton-proxy-new.
1996-06-28 08:11:18 +00:00
Richard M. Stallman
ff85d4f3be (local-variables-section): Adapted comment to outline minor mode.
(skeleton-pair-insert-maybe): Rewritten to support autowrapping.
(mirror-mode): Fixed change of pair-* to skeleton-pair-*.  Also pairs
8 bit characters.
1996-06-24 22:33:56 +00:00
Richard M. Stallman
017d787ae1 (skeleton-autowrap): New variable.
(skeleton-abbrev-cleanup): Added variable documentation.
(skeleton-proxy): Added optional autowrappping feature.
(skeleton-proxy, skeleton-abbrev-cleanup): Use `post-command-hook'
instead of someday to be obsolete defer.
1996-06-22 17:42:15 +00:00
Richard M. Stallman
a013d266d1 (local-variables-section): Deleted. 1996-06-16 23:30:31 +00:00
Richard M. Stallman
2aea64fbe1 Add provide call. 1996-03-01 15:37:33 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
49168e73e3 (skeleton-insert): Doc fix. 1996-01-04 23:48:47 +00:00
Karl Heuer
da6a884fdd (skeleton-end-hook): Now defvared and responsible for
pushing out anything following skeleton to next line.  Thus this
behaviour can now be controlled by modes.
(skeleton-insert): Parameter `no-newline' removed.
(skeleton-read): Take this into account.
(skeleton-internal-1): Less spurious empty lines when wrapping.
1995-11-03 03:29:04 +00:00
Karl Heuer
4bfd70e96b (skeleton-newline-indent-rigidly): New variable.
(skeleton-internal-1): Use it for indenting after \n because previous
behaviour was only useful for `sh-script.el' and old `ada.el'.  Other
modes now get their own indentation.
(skeleton, skeleton-modified, skeleton-point, skeleton-regions): `New'
variables for passing between the mutually recursive functions of
the skeleton engine.  Introduced to remove compiler warnings.
(skeleton-proxy): New argument `str' to make this settable when calling
a skeleton as a function.
(skeleton-insert): New argument `str' to pass down.  Element `\n'
now usually indents according to mode.  Subskeletons may also have
a list of strings as iterator.  Earlier modification also removed
meaning of `quit' -- I did not put it back in since it's useless.
When quitting out of a subskeleton while still wrapping around text
don't duplicate first line of that text.
(skeleton-end-hook): New hook useful say for modes that leave a `;' on
an empty line to indent right and then want to clean it up when doing
a skeleton there.
1995-08-19 00:30:38 +00:00
Karl Heuer
773500abf6 (skeleton-pair-insert-maybe): Plain insert in Ovwrt mode
(skeleton-insert): If skeleton doesn't fit in window, put beginning
at top before going to _ point.
(skeleton-internal-list): Rewritten so that resume: sections pertain
only to inferior skeletons and make str available there
(skeleton-read): Don't quit and remove partial skeleton when empty
string entered for outer iterator.  Added implicit argument `input'.
(define-skeleton, skeleton-insert, skeleton-internal-list): Use `x
rather than backquote's (` x) or own (list 'x)
1995-08-15 19:49:46 +00:00
Richard M. Stallman
bc35d5b39b (local-variables-section): Delete autoload cookie.
(skeleton-pair-insert-maybe): Renamed from pair-insert-maybe.
(skeleton-pair, skeleton-pair-filter, skeleton-pair-alist)
(skeleton-pair-on-word): Renamed from pair-...
(mirror-mode): Commented out.
1995-07-20 20:28:45 +00:00
Karl Heuer
f3611c7025 partly rewritten and extended.
(skeleton-filter, skeleton-untabify, skeleton-further-elements)
(skeleton-abbrev-cleanup): New variables
(skeleton-proxy, skeleton-abbrev-cleanup): New functions
(skeleton-insert): Sublanguage element < must now be handled via
`skeleton-further-elements' (used only in sh-script and ada).  Lisp
expressions can be quoted to ignore the return value.
(skeleton-read): New name for `skeleton-internal-read' because this may
be useful in skeletons.
(local-variables-section): New skeleton command, might go to simple.el.
1995-07-07 19:21:17 +00:00
Richard M. Stallman
bad5d9129f Comment change. 1994-05-07 05:31:39 +00:00
Richard M. Stallman
c93d212ae5 (mirror-mode): Commented out. 1994-05-07 05:30:31 +00:00
Richard M. Stallman
ac59aed83f entered into RCS 1994-03-22 05:43:25 +00:00