1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00
Commit Graph

47600 Commits

Author SHA1 Message Date
Markus Rost
7c3d5ad903 (ps-mode): Use autoload cookie in the standard way. 2003-06-03 04:15:06 +00:00
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
Stefan Monnier
5435c793fa (Fsit_for): Don't lie about the number of args. 2003-06-02 20:39:12 +00:00
Jason Rumney
9862c13513 Changes from yesterday 2003-06-02 19:50:05 +00:00
Juanma Barranquero
efd60266f5 Revert changes of 2003-03-03 and 2003-05-28. 2003-06-02 19:26:18 +00:00
Dave Love
5b07197ad9 Include keyboard.h, charset.h, coding.h.
(xg_create_frame_widgets): Use ENCODE_UTF_8.
2003-06-02 18:50:51 +00:00
Dave Love
c14e5a3a15 (ENCODE_UTF_8): New.
(Qutf_8): Declare.
2003-06-02 18:49:53 +00:00
Dave Love
ecf488bc25 (Qutf_8): New.
(syms_of_coding): Intern it.
2003-06-02 18:49:29 +00:00
Dave Love
3db9e31e5e (Qutf_8): Moved to coding.c 2003-06-02 18:48:55 +00:00
Dave Love
646f98ec21 (ENCODE_MENU_STRING): New.
(list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
Use it.
2003-06-02 18:48:43 +00:00
Dave Love
776a24a176 Use HAVE_FCNTL_H, not USG5.
(syms_of_callproc) <process-environment>: Doc fix.
2003-06-02 18:46:55 +00:00
Dave Love
54a2cb1213 Use HAVE_FCNTL_H, not USG5. 2003-06-02 18:45:00 +00:00
Dave Love
f0d6207551 (font_rescale_ratio): Fix for K&R. 2003-06-02 18:43:11 +00:00
Dave Love
3c29b03191 Use HAVE_FCNTL_H, not _POSIX_VERSION. 2003-06-02 18:42:13 +00:00
Dave Love
0a7d603959 Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H. 2003-06-02 18:39:39 +00:00
Dave Love
bcdec28bc1 [HAVE_FCNTL_H]: Include fcntl.h. 2003-06-02 18:36:33 +00:00
Dave Love
30b1b0cf41 Doc fixes. 2003-06-02 18:31:29 +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
Kenichi Handa
8d1203eafb (Fset_buffer_multibyte): Fix previous change. 2003-06-02 00:54:20 +00:00
Kenichi Handa
7335b33637 *** empty log message *** 2003-06-02 00:54:06 +00:00
Kenichi Handa
458c8af4c6 (Fset_buffer_multibyte): Correctly recover a narrowed
region when a buffer is changed to unibyte.
2003-06-01 23:28:42 +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
Jason Rumney
87d386ff8a Make last change compile on MSVC 2003-06-01 21:48:53 +00:00
Jason Rumney
8006e4bbcb (Qmouse_wheel): Declare only if MAC_OSX defined.
(mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
(discard_mouse_events): Discard WHEEL_EVENT events too.
(lispy_wheel_names, wheel_syms): New.
(syms_of_keyboard): Init and staticpro `wheel_syms'.  Init and
staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
defined.
(make_lispy_event): Added WHEEL_EVENT handler.
2003-06-01 21:40:38 +00:00
Jason Rumney
3ecad19e40 (enum event_kind): Added new WHEEL_EVENT event.
Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
2003-06-01 21:39:26 +00:00
Jason Rumney
637ad49d45 (construct_mouse_wheel): Construct WHEEL_EVENT.
(w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
WHEEL_EVENT events.
2003-06-01 21:38:37 +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
6f8eafd15c (openp): Make sure STR is a string. 2003-06-01 18:03:00 +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
a95cefd775 *** empty log message *** 2003-05-31 23:36:11 +00:00
John Paul Wallington
f984e73e76 (lisp, shortlisp): byte-run, float-sup, map-ynp, and
timer are in lisp/emacs-lisp.
2003-05-31 22:18:22 +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