1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

24097 commits

Author SHA1 Message Date
Stefan Monnier
dd310c45a0 (bibtex-member-of-regexp, bibtex-assoc-of-regexp, bibtex-format-entry)
(bibtex-find-entry, bibtex-autokey-demangle-name, bibtex-string-files-init)
(bibtex-mode): Fix up regexp usage and use match-string.
2003-06-02 22:41:50 +00:00
Stefan Monnier
7fbf4804e6 Long overdue merge.
Don't require `compile' since it seems unnecessary.
For all internal variables and functions the docstring comments have
been converted into proper docstrings
(bibtex-maintainer-address, bibtex-maintainer-salutation)
(bibtex-version): Remove support for bug reporting.
(bibtex-field-delimiters, bibtex-entry-delimiters)
(bibtex-sort-ignore-string-entries, bibtex-maintain-sorted-entries)
Replace make-variable-buffer-local by make-local-variable for
(bibtex-entry-format): New tag `required-fields'.
(bibtex-maintain-sorted-entries): New var.
(bibtex-sort-entry-class, bibtex-sort-entry-class-alist): New vars.
(bibtex-predefined-month-strings, bibtex-predefined-strings):
Make into alists with pairs (abbreviation expansion).
(bibtex-autokey-titleword-change-strings)
(bibtex-autokey-transcriptions): Make into alists.
Add new replacement pairs.
(bibtex-autokey-use-crossref): New var.
Replace bibtex-autokey-year-use-crossref-entry because updated code
for autokey generation handles crossrefs independently of
particular fields.
(bibtex-reference-key, bibtex-mode-syntax-table):
Remove = because it can't be part of a string's key.
(bibtex-complete-key-cleanup): New var.
(bibtex-complete): Merge bibtex-complete-string and bibtex-complete-key
into it (and bind to M-tab).
(bibtex-valid-entry-re, bibtex-any-valid-entry-re)
(bibtex-valid-entry-whitespace-re, bibtex-empty-field-re)
(bibtex-quoted-string-re): New vars.
(bibtex-field-name-for-parsing): Don't make-variable-buffer-local.
(zmacs-regions): Declare to quieten the byte-compiler.
(bibtex-comment-start): Don't include the space.
(bibtex-font-lock-syntactic-keywords): New var.
(bibtex-font-lock-keywords): Remove the entry for @Comment.
(bibtex-parse-field-string): Merge the functionality of
bibtex-parse-field-string-braced, bibtex-parse-quoted-string and
bibtex-parse-field-string-quoted.
(bibtex-search-forward-field-string): Remove.
(bibtex-parse-association): Use when.
(bibtex-parse-field-name): Use when.
(bibtex-parse-field-text): Use when and cond.
(bibtex-parse-field): Use let.
(bibtex-search-forward-field, bibtex-search-backward-field):
Make bound optional, use let, setq, and cddr.
(bibtex-start-of-field, bibtex-start-of-name-in-field)
(bibtex-end-of-name-in-field): Use nth.
(bibtex-name-in-field, bibtex-text-in-field-bounds)
(bibtex-text-in-field, bibtex-type-in-head, bibtex-key-in-head)
(bibtex-text-in-string): New functions.
(bibtex-reference-key-in-string): New fun.  Merge of
bibtex-start-of-reference-key-in-string and
bibtex-end-of-reference-key-in-string.
(bibtex-parse-string-prefix): Use let and when.
(bibtex-parse-string-postfix): Use when.
(bibtex-search-forward-string, bibtex-search-backward-string):
Use save-excursion and setq.
(bibtex-member-of-regexp): Use let.
(bibtex-assoc-of-regexp): Use caar und let.
(bibtex-skip-to-valid-entry): Return buffer position.
(bibtex-map-entries): Use save-excursion.
(bibtex-progress-message): Simplify.
(bibtex-search-entry): Use skip-chars-forward, when, save-match-data.
(bibtex-move-outside-of-entry): Handle the case that point is before
first entry.
(bibtex-enclosing-field): Use save-excursion, when.
(bibtex-format-field-delimiters): Merge into bibtex-format-entry.
(bibtex-enclosing-entry-maybe-empty-head): Simplify.
(bibtex-format-entry): Simplify.  Handle new tag required-fields of
bibtex-entry-format.
(bibtex-autokey-abbrev): Accept negative values of len.
(bibtex-autokey-get-field, bibtex-autokey-demangle-title): New funs.
(bibtex-autokey-get-namefield, bibtex-autokey-get-namelist)
(bibtex-autokey-get-yearfield-digits, bibtex-autokey-get-yearfield)
(bibtex-autokey-get-titlestring): Remove.
(bibtex-autokey-get-names): Simplify.
(bibtex-autokey-get-titles): Rename to bibtex-autokey-get-title.
(bibtex-autokey-demangle-name): Simplify, avoid error messages.
(bibtex-generate-autokey): Simplify.
(bibtex-parse-keys): Simplify, use push.
(bibtex-parse-strings): New fun similar to bibtex-parse-keys.
(bibtex-string-files-init): New fun.
(bibtex-parse-buffers-stealthily): Use bibtex-parse-keys,
bibtex-string-files-init and bibtex-parse-strings.
(bibtex-complete): Rename to bibtex-complete-internal, use push,
bibtex-reference-key-in-string, no sorting.
(bibtex-complete-string-cleanup): New fun, displays expansion of
completed strings.
(bibtex-choose-completion-string): New fun.  Required for
choose-completion-string-functions.
(bibtex-do-auto-fill): Remove.  Set fill-prefix in bibtex-mode.
(bibtex-pop): Simplify.
(bibtex-mode): Move setting of bibtex-string to bibtex-parse-strings.
Set choose-completion-string-functions.
(bibtex-print-help-message,bibtex-make-field, bibtex-end-of-entry)
(bibtex-count-entries): Simplify.
(bibtex-entry-index, bibtex-lessp): New funs for generalized sorting
scheme of indices, see bibtex-maintain-sorted-entries.
(bibtex-sort-buffer): Use bibtex-lessp for sorting.
(bibtex-find-crossref, bibtex-find-entry): New funs.
(bibtex-find-entry-location): Rename to bibtex-prepare-new-entry, use
bibtex-lessp, Simplify.
(bibtex-validate): Simplify.  Fixe bug of internal variable
questionable-month.
(bibtex-remove-OPT-or-ALT): Use when.
(bibtex-remove-delimiters, bibtex-kill-field, bibtex-kill-entry)
(bibtex-clean-entry, bibtex-fill-entry, bibtex-reformat): Simplify.
(bibtex-convert-alien): Use deactivate-mark rather than the
non-existent bibtex-mark-active variable.
(bibtex-complete-string, bibtex-complete-key): Merge into new
`smart' defun bibtex-complete.
(bibtex-String): Update for new sorting scheme, distinguish empty and
non-empty key strings.
2003-06-02 22:30:09 +00:00
Stefan Monnier
e2292b24db (sort-subr): Add predicate' arg. Remove sortcar' code. 2003-06-02 21:19:38 +00:00
Lute Kamstra
ccb78fa385 (lm-synopsis): Use relative filenames correctly. Show the synopsis to
the user when appropriate.  Do not kill buffers that were created
outside `lm-synopsis'.
2003-06-02 10:23:19 +00:00
Juanma Barranquero
3bb804d079 Version 1.6
Take into account changes made to the display margins, fringes and
scroll-bar handling.
(ruler-mode-margins-char): Removed.  Not used anymore.
(ruler-mode-pad-face, ruler-mode-fringes-face): New faces.
(ruler-mode-margins-face): New definition.  Moved.
(ruler-mode-left-fringe-cols)
(ruler-mode-right-fringe-cols)
(ruler-mode-left-scroll-bar-cols)
(ruler-mode-right-scroll-bar-cols): Reimplemented.  Moved.
(ruler-mode-full-window-width)
(ruler-mode-window-col): New functions.
(ruler-mode-mouse-set-left-margin)
(ruler-mode-mouse-set-right-margin)
(ruler-mode-mouse-add-tab-stop)
(ruler-mode-mouse-del-tab-stop): Reimplemented.
(ruler-mode-mouse-current-grab-object): Renamed to...
(ruler-mode-dragged-symbol): New.
(ruler-mode-mouse-grab-any-column): Use it.  Cleaned up.
(ruler-mode-mouse-drag-any-column): Likewise.
(ruler-mode-mouse-drag-any-column-iteration): Simplified.
(ruler-mode): Restore previous `header-line-format' if
`ruler-mode-header-line-format-old' has a local binding in current
buffer.
(ruler-mode-left-margin-help-echo)
(ruler-mode-right-margin-help-echo): Removed.
(ruler-mode-margin-help-echo)
(ruler-mode-fringe-help-echo): New constants.
(ruler-mode-ruler): Use them.  Reimplemented.
2003-06-01 23:07:31 +00:00
Jason Rumney
f4e6226079 (mouse-wheel-down-event, mouse-wheel-up-event):
Default to new wheel-up and wheel-down events on Windows.
2003-06-01 22:14:30 +00:00
Jason Rumney
230c8ad7bf No need to bind wheel events specially. 2003-06-01 22:13:07 +00:00
Stefan Monnier
a153acb7d6 (custom-get-fresh-buffer): Be extra paranoid,
just in case some used a file of the wrong name.
2003-06-01 18:40:10 +00:00
Stefan Monnier
485219e0a2 (sh-is-quoted-p): New fun.
(sh-font-lock-paren): Use it to allow \C in case patterns.
(sh-get-indent-info): Check the \n before the line for string-status.
(sh-feature): Remove unused var `function'.
(sh-get-indent-info): Remove unused variables.
(sh-prev-thing): Remove unused vars `going', `n', and `found'.
(sh-set-indent): Remove unused var `new-val' and `val0'.
(sh-learn-buffer-indent): Remove unused vars `last-pos' and `lines'.
(sh-guess-basic-offset): Remove unused var `return' and `j'.
2003-06-01 17:36:41 +00:00
Michael Kifer
27e4fd45a6 2003-06-01 Michael Kifer <kifer@cs.stonybrook.edu>
* desktop.el (desktop-create-buffer): Added (desktop-first-buffer) to
	the let-statement to avoid the startup error that desktop-first-buffer
	is undefined.
2003-06-01 17:17:10 +00:00
Andreas Schwab
665a7c3b51 (Man-name-regexp): Also match Latin-1 soft hyphen.
(Man-build-references-alist): Handle Latin-1 soft hyphen.
2003-06-01 17:09:32 +00:00
Stefan Monnier
30f95ef531 *** empty log message *** 2003-06-01 00:55:17 +00:00
Stefan Monnier
981b7b0c72 (view-file, view-file-other-window, view-file-other-frame):
Signal an error when trying to visit an inexistent file.
2003-05-31 17:53:24 +00:00
Stefan Monnier
0bfb74a943 (vc-call-backend): Give better error message when backend function is missing.
(vc-find-file-hook): USe unless.  Merge if and cond.
2003-05-31 17:43:28 +00:00
Stefan Monnier
1cca5da4fa (vc-directory-exclusion-list): Add MCVS and .svn.
(vc-checkin-hook): Adjust option to new name.
2003-05-31 16:47:57 +00:00
Stefan Monnier
9fe89a26bf (log-edit-maximum-comment-ring-size, log-edit-comment-ring)
(log-edit-comment-ring-index, log-edit-last-comment-match): Rename vars from
vc-maximum-comment-ring-size, vc-comment-ring, vc-comment-ring-index,
and vc-last-comment-match.
(log-edit-new-comment-index, log-edit-previous-comment)
(log-edit-next-comment, log-edit-comment-search-backward)
(log-edit-comment-search-forward, log-edit-comment-to-change-log):
Rename funs from vc-new-comment-index, vc-previous-comment,
vc-next-comment, vc-comment-search-reverse, vc-comment-search-forward,
and vc-comment-to-change-log.
2003-05-31 16:43:30 +00:00
Stephen Eglen
e47525c442 (iswitchb-buffer-ignore): Update custom type to allow functions. 2003-05-31 16:21:25 +00:00
Stefan Monnier
a52eeda823 (iconify-or-deiconify-frame): Move to frame.el. 2003-05-31 16:03:11 +00:00
Stefan Monnier
407e43be44 (widget-specify-insert): Simplify.
(widget-editable-list-entry-create): Don't assume that %d and %i are
in the format string.
(widget-map-buttons): Remove unused var `parent'.
(widget-move): Remove unused shadowed var `new'.
(widget-color-action): Remove unused var `pos'.
2003-05-31 15:33:09 +00:00
Stefan Monnier
40627755be (custom-get-fresh-buffer): New fun.
(custom-buffer-create, custom-buffer-create-other-window)
(customize-browse): Use it instead of killing buffers.
(custom-bury-buffer): Obey the argument.
(custom-variable-reset-saved, custom-variable-reset-standard):
Remove unused var `comment-widget'.
(custom-face-edit-deactivate): Remove unused var `to'.
(custom-save-variables): Remove unused var `sep'.
2003-05-31 15:23:00 +00:00
John Paul Wallington
f118d83b79 *** empty log message *** 2003-05-31 08:05:27 +00:00
John Paul Wallington
5d648479ea (large-file-warning-threshold): Add type, groups. 2003-05-31 07:59:33 +00:00
Kenichi Handa
778e280418 *** empty log message *** 2003-05-31 02:02:02 +00:00
Kenichi Handa
77619f8e69 (recover-file): Bind coding-system-for-read to
auto-save-coding.
2003-05-31 02:00:26 +00:00
Juanma Barranquero
3867c42d60 *** empty log message *** 2003-05-31 00:40:43 +00:00
Juanma Barranquero
693e59d636 Load byte-run.el, map-ynp.el, timer.el and float-sup.el from emacs-lisp. 2003-05-31 00:36:35 +00:00
Juanma Barranquero
a2f3f87b0b *** empty log message *** 2003-05-30 23:40:13 +00:00
Juanma Barranquero
5e046f6d57 Moved from lisp/. 2003-05-30 23:31:15 +00:00
Juanma Barranquero
9d7aa1b1b6 Moved to progmodes/. 2003-05-30 23:30:50 +00:00
Juanma Barranquero
36a77f3729 Moved from textmodes/. 2003-05-30 23:30:10 +00:00
Juanma Barranquero
3af3f5fa99 Moved to lisp/. 2003-05-30 23:29:42 +00:00
Juanma Barranquero
e667248f92 Moved to textmodes/. 2003-05-30 23:28:25 +00:00
Juanma Barranquero
dba4a8b016 Moved to emacs-lisp/. 2003-05-30 23:26:50 +00:00
Juanma Barranquero
db47d2ab7a Moved to obsolete/. 2003-05-30 23:24:41 +00:00
Juanma Barranquero
17cd3083a5 Moved. 2003-05-30 23:23:25 +00:00
Juanma Barranquero
c2aa9675ab Removed. Contents moved to misc.el 2003-05-30 23:17:19 +00:00
Juanma Barranquero
9bccd1e395 (mark-beginning-of-buffer, mark-end-of-buffer, upcase-char, forward-to-word,
backward-to-word): Moved from unused.el.
2003-05-30 23:15:40 +00:00
Juanma Barranquero
498535fbfc (looking-back): New function to check for regular expression before point. 2003-05-30 23:11:35 +00:00
Thien-Thi Nguyen
a44c6ff342 *** empty log message *** 2003-05-30 22:00:20 +00:00
Stefan Monnier
6976bf99f0 (comment-empty-lines): New var.
(comment-region-internal): Use it.
2003-05-30 20:06:40 +00:00
Stefan Monnier
8084f5d87c (latex-block-args-alist, latex-block-body-alist): New vars.
(latex-insert-block): Use them.
(tex-string-prefix-p): New fun.
(tex-guess-main-file): Use it to detect when the main file
is in a parent directory.
(tex-main-file): Try to find a main-file in parent directories.
(tex-compile-default): Don't use `gv' on pdf files just because
`gv' was used recently on a ps file.  Remove unused arg `dir'.
Reuse a previous command as-is if it applied to the same file.
(tex-compile): Use the right file name when file is not in dir.
2003-05-30 18:52:46 +00:00
Stefan Monnier
ad2feb0890 (refill-adjust-ignorable-overlay): Don't hardcode pint-min == 1.
(refill-fill-paragraph-at): Use a more robust method to detect
when the paragraph is after point.  Remove unused var `fill-pfx'.
2003-05-30 18:28:16 +00:00
Stefan Monnier
aba7ce7740 (xml-parse-tag): Return (foo nil) rather than (foo nil "")
for <foo/>, to make it behave like <foo></foo>.
2003-05-30 16:02:26 +00:00
Stefan Monnier
e251428378 *** empty log message *** 2003-05-30 15:41:39 +00:00
Stefan Monnier
552754fed2 Typo (no clue what happened). 2003-05-30 15:35:54 +00:00
Stefan Monnier
5121ef4cd5 (edebug-storing-offsets): Move indent and debug to inside the macro.
(edebug-read-storing-offsets): Simplify.
(edebug-read-quote, edebug-read-function): Place the start-position correctly.
(edebug-read-backquote-new): Remove.
(edebug-read-backquote-level): New var to replace it.
(edebug-read-backquote): Increment it.  Don't store offsets one extra time.
(edebug-read-comma): Decrement it.  Read the comma as a plain
symbol if outside of any new-style backquote.
(edebug-read-list): Use edebug-read-backquote-level.
Don't call edebug-read-backquote directly.  This way the extra
offsets store is done exactly when it's needed.
(edebug-read-vector): Use push.
(defmacro): Add support for the `declare' thingy.
2003-05-30 15:34:02 +00:00
Stefan Monnier
f5a356cdd6 (forms-mode-hook): Rename from forms-mode-hooks.
(forms-mode): Use add-hook rather than make-local-variable+setq.
Use with-current-buffer.  Run the new and the old hooks.
(forms--update): Use with-current-buffer and line-end-position.
(forms--goto-record): New fun.
(forms-jump-record, forms-insert-record, forms-delete-record): Use it.
(forms--process-format-list): Remove unused var `this-item'.
(forms--intuit-from-file): Remove unused var `the-result'.
(forms--trans): Remove unused var `x'.
(forms--exit, forms-exit, forms-exit-no-save): Remove unused arg.
2003-05-29 23:53:21 +00:00
Luc Teirlinck
6c770e384d (kill-whole-line): Make it interact correctly with the kill ring. 2003-05-29 23:29:29 +00:00
Luc Teirlinck
4b87797672 *** empty log message *** 2003-05-29 22:46:07 +00:00
Stefan Monnier
d2d6d47de0 (define-derived-mode, define-minor-mode): Remove outdated spec.
(save-match-data, with-output-to-string, with-current-buffer)
(combine-after-change-calls, with-temp-buffer, dolist, dotimes)
(unless, when): Remove specs that are now in the corresponding macro.
2003-05-29 22:20:47 +00:00