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

123 Commits

Author SHA1 Message Date
Leo Liu
3bb213b9fc * skeleton.el (skeleton-untabify): Change to nil.
Fixes: debbugs:12223
2012-08-27 19:02:23 +08:00
Stefan Monnier
b581bb5c8a * lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties to
their respective macro declarations.
* lisp/skeleton.el (define-skeleton):
* lisp/progmodes/compile.el (define-compilation-mode):
* lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op)
(define-ibuffer-filter):
* lisp/emacs-lisp/generic.el (define-generic-mode):
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
(define-globalized-minor-mode):
* lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype):
* lisp/emacs-lisp/byte-run.el (defsubst):
* lisp/custom.el (deftheme): Add doc-string metadata.
2012-05-17 21:46:20 -04:00
Chong Yidong
fb7ada5f94 Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
Chong Yidong
b4d3bc10dc Remove defining user variables via * in docstring.
* lisp/apropos.el (apropos-variable):
* lisp/files-x.el (read-file-local-variable):
* lisp/simple.el (set-variable):
* lisp/woman.el (woman-mini-help):
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Callers changed.

* lisp/custom.el (custom-variable-p): Return nil for non-symbol
arguments instead of signaling an error.
(user-variable-p): Obsolete alias for custom-variable-p.

* lisp/erc/erc.el (erc-cmd-SET): Call custom-variable-p instead of
user-variable-p.

* src/callint.c (Finteractive, Fcall_interactively):
* src/minibuf.c (Fread_variable): Callers changed.

* src/eval.c (Fuser_variable_p, user_variable_p_eh)
(lisp_indirect_variable): Functions deleted.
(Fdefvar): Caller changed.

* doc/lispref/commands.texi (Interactive Codes):
* doc/lispref/help.texi (Accessing Documentation):
* doc/lispref/minibuf.texi (High-Level Completion): Callers changed.

* doc/lispref/customize.texi (Variable Definitions): Remove user-variable-p.
2012-04-09 20:36:01 +08:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
e9bffc61f2 Refill some copyright headers. 2011-01-15 18:21:30 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Stefan Monnier
4490f87580 * lisp/skeleton.el (skeleton-newline): New function.
(skeleton-internal-1): Use it.
(skeleton-read): Don't use `newline' since it may strip trailing space.
2010-11-12 08:33:44 -05:00
Glenn Morris
b565f5a1b9 Silence skeleton.el compilation.
* lisp/skeleton.el (skeleton-internal-list, skeleton-internal-1):
Prefix dynamic local variable `skeleton'.
2010-11-09 20:30:21 -08:00
Glenn Morris
5ed619e0a3 Use line-end-position rather than end-of-line, etc.
* textmodes/texnfo-upd.el (texinfo-start-menu-description)
(texinfo-update-menu-region-beginning, texinfo-menu-first-node)
(texinfo-delete-existing-pointers, texinfo-find-pointer)
(texinfo-clean-up-node-line, texinfo-insert-node-lines)
(texinfo-multiple-files-update):
* textmodes/table.el (table--probe-cell-left-up)
(table--probe-cell-right-bottom):
* textmodes/picture.el (picture-tab-search):
* textmodes/page-ext.el (pages-copy-header-and-position)
(pages-directory-for-addresses):
* progmodes/vera-mode.el (vera-get-offset):
* progmodes/simula.el (simula-calculate-indent):
* progmodes/python.el (python-pdbtrack-overlay-arrow):
* progmodes/prolog.el (end-of-prolog-clause):
* progmodes/perl-mode.el (perl-calculate-indent, perl-indent-exp):
* progmodes/icon.el (indent-icon-exp):
* progmodes/etags.el (tag-re-match-p):
* progmodes/ebrowse.el (ebrowse-show-file-name-at-point):
* progmodes/ebnf2ps.el (ebnf-begin-file):
* progmodes/dcl-mode.el (dcl-back-to-indentation-1)
(dcl-save-local-variable):
* play/life.el (life-setup):
* play/gametree.el (gametree-looking-at-ply):
* nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* mail/sendmail.el (mail-mode-auto-fill):
* emacs-lisp/lisp-mode.el (calculate-lisp-indent):
* emacs-lisp/edebug.el (edebug-overlay-arrow):
* emacs-lisp/checkdoc.el (checkdoc-this-string-valid):
* woman.el (woman-parse-numeric-value, woman2-TH, woman2-SH)
(woman-tab-to-tab-stop, WoMan-warn-ignored):
* type-break.el (type-break-file-keystroke-count):
* term.el (term-replace-by-expanded-history-before-point)
(term-skip-prompt, term-extract-string):
* speedbar.el (speedbar-edit-line, speedbar-expand-line)
(speedbar-contract-line, speedbar-toggle-line-expansion)
(speedbar-parse-c-or-c++tag, speedbar-parse-tex-string)
(speedbar-buffer-revert-buffer, speedbar-highlight-one-tag-line):
* sort.el (sort-skip-fields):
* skeleton.el (skeleton-internal-list):
* simple.el (line-move-finish, line-move-to-column):
* shell.el (shell-forward-command):
* misc.el (copy-from-above-command):
* makesum.el (double-column):
* ebuff-menu.el (electric-buffer-update-highlight):
* dired.el (dired-move-to-end-of-filename):
* dframe.el (dframe-popup-kludge):
* bookmark.el (bookmark-kill-line, bookmark-bmenu-show-filenames):
* arc-mode.el (archive-get-lineno):
Use line-end-position and line-beginning-position.

* net/ange-ftp.el, progmodes/hideif.el, reposition.el:
Same, but only in comments.
2010-11-06 13:23:42 -07:00
Stefan Monnier
d355a0b791 Replace Lisp calls to delete-backward-char by delete-char.
* bs.el, expand.el, ido.el, image-dired.el, lpr.el, pcomplete.el,
skeleton.el, term.el, time.el, wid-edit.el, woman.el,
calc/calc-graph.el, calc/calc-help.el, calc/calc-incom.el,
calc/calc.el, emacs-cl-extra.el, emacs-cl-loaddefs.el,
emulation/cua-rect.el, emulation/viper-ex.el, eshell/esh-test.el,
eshell/eshell.el, gnus/gnus-uu.el, gnus/nndoc.el, gnus/nnrss.el,
gnus/rfc2047.el, gnus/utf7.el, international/utf-7.el,
language/ethio-util.el, mh-e/mh-alias.el, mh-e/mh-search.el,
net/imap.el, net/rcirc.el, obsolete/complete.el, play/decipher.el,
progmodes/ada-mode.el, progmodes/cc-awk.el, progmodes/dcl-mode.el,
progmodes/ps-mode.el, progmodes/verilog-mode.el,
progmodes/vhdl-mode.el, textmodes/bibtex.el, textmodes/fill.el,
textmodes/reftex-auc.el, textmodes/rst.el, textmodes/sgml-mode.el,
textmodes/table.el, textmodes/texinfmt.el: Replace Lisp calls to
delete-backward-char by calls to delete-char.
2010-05-24 22:11:08 -04:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Glenn Morris
8989a9203f Replace last-command-char with last-command-event. 2009-01-09 04:44:15 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
1a5ed76f16 Set coding-tag. 2008-04-17 19:54:57 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Kenichi Handa
db08e41d23 (skeleton-internal-1): Use integerp and stringp
instead of char-or-string-p to catch -1.
2007-09-07 02:14:55 +00:00
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771 Update copyright years. 2006-12-05 07:06:08 +00:00
Roland Winkler
5c741ceba1 (skeleton-transformation, skeleton-filter, skeleton-pair-filter):
Make these the aliases for the following variables.
(skeleton-transformation-function, skeleton-filter-function)
(skeleton-pair-filter-function): Make these the real names.
2006-05-21 22:01:50 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
afdff50e24 (skeleton-proxy-new): Doc fix. 2005-07-20 22:37:49 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juanma Barranquero
fb607ff181 (skeleton-autowrap): Fix spellings in docstrings. 2005-06-10 14:06:22 +00:00
Lute Kamstra
1c4c2dac52 Use run-mode-hooks in example. 2005-05-26 13:13:36 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
b532266db6 (skeleton-proxy-new): Consume the mark-active state. 2003-06-08 00:54:06 +00:00
Stefan Monnier
7076c5cd53 (skeleton-edebug-spec): First cut of an edebug spec.
(define-skeleton): Use it.
2003-05-28 18:41:41 +00:00
Stefan Monnier
c93992b383 (skeleton-internal-1): Don't loop if interactor of subskeleton is nil.
(skeleton-pair-default-alist): New var.
(skeleton-pair-insert-maybe): Use it.
2003-05-26 01:02:31 +00:00
Juanma Barranquero
c6160f09be (skeleton-pair-insert-maybe): Remove leftover reference to
skeleton-abbrev-cleanup.
2003-05-25 01:31:48 +00:00
Stefan Monnier
aeeace45c8 (skeleton-abbrev-cleanup, skeleton-proxy): Remove obsolete code. 2003-05-25 00:36:59 +00:00
Stefan Monnier
8fb7ff735c (define-skeleton): Use the `no-self-insert' property.
(skeleton-proxy-new): Fix docstring.  Remove broken interactive spec.
Rely on use `no-self-insert' rather than `skeleton-abbrev-cleanup'.
(skeleton-internal-1): Add a `recursive' argument.
(skeleton-internal-list): Use it to propagate `recursive'.
2003-05-23 00:59:12 +00:00
Juanma Barranquero
b7d0594977 (skeleton-internal-1): Allow - as alternate interesting point marker and revert
@ to just setting skeleton-positions.
2003-05-18 23:58:08 +00:00
Juanma Barranquero
4ba4c353a7 (skeleton-autowrap, skeleton-untabify, skeleton-newline-indent-rigidly)
(skeleton-insert, skeleton-read): Don't quote nil and t in docstrings.
2003-05-06 17:51:08 +00:00
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