1. 25 Jan, 2005 1 commit
    • Lute Kamstra's avatar
      (bibtex-format-entry): Use `bibtex-empty-field-re' only on the text of · 31df23f5
      Lute Kamstra authored
      fields, not on entire field lines.
      (bibtex-autofill-entry): Use `bibtex-empty-field-re' on a string,
      not on part of a buffer.
      (bibtex-empty-field-re): Don't match nonempty field text strings like
      "{letters\\macro{}more letters}".  Clarify docstring.
      (bibtex-sort-entry-class, bibtex-autokey-titleword-ignore)
      (bibtex-entry-offset, bibtex-parse-association)
      (bibtex-parse-field-name): Fix typos in docstrings.
      (bibtex-field-list, bibtex-find-crossref): Fix typos in error
      messages.
      31df23f5
  2. 05 Dec, 2004 1 commit
    • Stefan Monnier's avatar
      (bibtex-font-lock-url-regexp): · d10e87a2
      Stefan Monnier authored
      Use delete-dups when calculating the initial value.
      (bibtex-autokey-get-title): Use <=.
      (bibtex-goto-line): New function.
      (bibtex-reposition-window): Use line numbers instead of point positions.
      Use window-body-height.
      (bibtex-find-crossref): Use bibtex-reposition-window.
      (bibtex-find-entry): Use bibtex-reposition-window.  Always return
      position of entry if key is found or nil if not found.
      d10e87a2
  3. 26 Nov, 2004 1 commit
    • Stefan Monnier's avatar
      (bibtex-sort-entry-class) · 02c8032e
      Stefan Monnier authored
      (bibtex-comment-start): Use defcustom.
      (bibtex-entry-field-alist): Use nil if initial content of the
      field is undefined.  Fix docstring.
      (bibtex-parse-keys-timeout, bibtex-autokey-additional-names)
      (bibtex-generate-autokey, bibtex-parse-buffers-stealthily)
      (bibtex-mode, bibtex-field-list, bibtex-entry-updat)
      (bibtex-autofill-entry, bibtex-entry-index, bibtex-next-field):
      Fix docstring.
      (bibtex-autokey-title-terminators): Use only one regexp.
      (bibtex-string-maybe-empty-head): New variable.
      (bibtex-remove-delimiters-string): New function.
      (bibtex-text-in-field-bounds, bibtex-text-in-string):
      Use bibtex-remove-delimiters-string.
      (bibtex-progress-message, bibtex-field-left-delimiter)
      (bibtex-field-right-delimiter, bibtex-entry-left-delimiter)
      (bibtex-entry-right-delimiter, bibtex-search-entry): Use eq.
      (bibtex-insert-kill): Rename from `bibtex-insert-current-kill'.
      Simplify.
      (bibtex-format-entry): Use save-excursion for inherited booktitle.
      Use eq and bibtex-remove-delimiters-string.  For end markers use
      insertion type so that marker stays after inserted text.
      (bibtex-autokey-get-names): Return empty string if name is missing.
      (bibtex-autokey-demangle-name): Call bibtex-autokey-abbrev before
      calling bibtex-autokey-name-case-convert.
      (bibtex-autokey-demangle-title):
      Call bibtex-autokey-titleword-case-convert.  Remove call to
      bibtex-autokey-titleword-case-convert from bibtex-autokey-get-title.
      (bibtex-global-key-alist, bibtex-read-string-key): New functions.
      (bibtex-read-key): New optional arg global.
      (bibtex-files-expand): New optional arg force.
      (bibtex-complete-string-cleanup): Expansion of abbrev can be absent.
      (bibtex-complete-crossref-cleanup): Rename from
      bibtex-complete-key-cleanup.  Simplify code.
      (bibtex-copy-summary-as-kill): Remove arg key.  Operate on current entry.
      Use looking-at.
      (bibtex-button): Add docstring.
      (bibtex-entry): Simplify.
      (bibtex-make-field): Replace optional arg called-by-yank with more
      specific args move and interactive.
      (bibtex-end-of-entry): Use forward-sexp.
      (bibtex-find-entry-globally): Remove.
      (bibtex-find-crossref): Allow for crossref key located in other buffer.
      Bound to C-c C-x.
      (bibtex-find-entry): New optional args global and display.
      (bibtex-find-text): Fix docstring.  Remove arg as-if-interactive.
      (bibtex-validate): Use arg force of bibtex-files-expand.
      (bibtex-clean-entry): Bugfix, clean string entries properly.
      Always keep point at beginning of entry.
      (bibtex-complete): Bugfix.  Handle string entries properly.
      Call cleanup functions only if needed.
      (bibtex-String): Use bibtex-read-string-key.
      (bibtex-url): Use bibtex-remove-delimiters-string.  Do not alter
      case of replacement text.
      02c8032e
  4. 01 Nov, 2004 2 commits
  5. 31 Oct, 2004 1 commit
    • Stefan Monnier's avatar
      Use `button's. · e0dc0c55
      Stefan Monnier authored
      (bibtex-autokey-transcriptions): Translate TeX `\ ' to space.
      (bibtex-reference-keys): Distinguish between header keys and crossref keys.
      (bibtex-beginning-of-field): New function.
      (bibtex-url-map): Remove.
      (bibtex-font-lock-keywords): Use bibtex-font-lock-crossref.
      (bibtex-font-lock-url-regexp): Assume that field names begin at
      the beginning of a line.
      (bibtex-font-lock-url): Simplify.  Do not use bibtex-enclosing-field.
      Remove field delimiters.  Bugfix, point can be inside a field with a url.
      Use bibtex-beginning-of-field.
      (bibtex-font-lock-crossref, bibtex-button-action, bibtex-button): New funs.
      (bibtex-mark-active, bibtex-run-with-idle-timer): Remove.
      (bibtex-key-in-head): Simplify.
      (bibtex-current-line): Use bolp.
      (bibtex-parse-keys): Remove unused arg `add'.
      Use bibtex-type-in-head and bibtex-key-in-head.
      (bibtex-parse-entry, bibtex-autofill-entry):
      Use bibtex-type-in-head and bibtex-key-in-head.
      (bibtex-autokey-get-field): Do not alter case of replacement text.
      (bibtex-autokey-get-names): Do all processing of name list.
      (bibtex-autokey-get-year): New function.
      (bibtex-autokey-get-title): Do all processing of title words.
      (bibtex-generate-autokey): Simplify.
      (bibtex-string-files-init): Use default-directory.
      Allow for absolute file names in bibtex-string-files.
      (bibtex-files, bibtex-file-path): New variables.
      (bibtex-files-expand): New function.
      (bibtex-find-entry-globally): New command.
      (bibtex-summary-function): New variable.
      (bibtex-summary): Default value of bibtex-summary-function.
      (bibtex-find-crossref): New optional args pnt and split.
      (bibtex-complete-key-cleanup): Call bibtex-summary-function.
      (bibtex-copy-summary-as-kill): New command bound to C-cC-t.
      (bibtex-validate): Fix docstring.  Check only abbreviated month fields.
      Fix handling of required and alternative fields.
      Identify duplicate keys even if bibtex-maintain-sorted-entries is nil.
      Use cons and display-buffer.
      (bibtex-validate-globally): New command.
      (bibtex-clean-entry): Use bibtex-files-expand.  Do not call
      bibtex-parse-keys and bibtex-parse-strings for updating
      bibtex-reference-keys and bibtex-strings.
      (bibtex-realign): Remove blank lines past the last entry.
      (bibtex-reformat): Use bibtex-entry-format as default.
      (bibtex-choose-completion-string): Remove.
      (bibtex-complete): Do not use bibtex-choose-completion-string.
      (bibtex-url): Simplify.
      e0dc0c55
  6. 12 Sep, 2004 1 commit
  7. 10 Sep, 2004 1 commit
    • Stefan Monnier's avatar
      (bibtex-mark-active, bibtex-run-with-idle-timer): Move `if' inside the defun. · d528bff7
      Stefan Monnier authored
      (bibtex-autokey-titleword-ignore): Regexp is used in a case insensitive env.
      (bibtex-mode-map): Rearrange order of menus.
      (bibtex-quoted-string-re): Obsolete.
      (bibtex-complete-key-cleanup): Variable replaced by new function.
      (bibtex-font-lock-keywords): Use backquotes.
      (bibtex-font-lock-url-regexp): New internal variable.
      (bibtex-name-in-field): New opt arg remove-opt-alt to remove "OPT" and "ALT".
      (bibtex-insert-current-kill, bibtex-make-field)
      (bibtex-prepare-new-entry, bibtex-yank-pop, bibtex-String): Use unless.
      (bibtex-parse-field-text): Simplify.
      (bibtex-string=): New helper function.
      (bibtex-member-of-regexp): Merge with bibtex-autokey-get-title.
      (bibtex-map-entries): Use bibtex-string=.
      (bibtex-search-entry): Use not.
      (bibtex-enclosing-field): Fix docstring.
      (bibtex-assoc-regexp): Obsolete.
      (bibtex-format-entry): Use assoc-string and bibtex-string=.
      (bibtex-autokey-get-names): Handle empty name field.
      (bibtex-parse-strings): Use assoc-string and unless.
      (bibtex-complete-string-cleanup): Expansion list is passed as an argument.
      Use assoc-string.
      (bibtex-pop): Simplify.
      (bibtex-mode): Set font-lock-extra-managed-props.
      (bibtex-entry-update): Use assoc-string.
      (bibtex-parse-entry): Remove "OPT" and "ALT" from FIELD.
      (bibtex-autofill-entry): Use bibtex-string=.
      (bibtex-print-help-message): Simplify.
      (bibtex-find-entry): New optional arg START.
      (bibtex-validate): Use bibtex-string= and assoc-string.
      Do not call obsolete function compilation-parse-errors.
      (bibtex-remove-delimiters): Only remove delimiters if present.
      (bibtex-copy-entry-as-kill): Add docstring.
      (bibtex-clean-entry): Use bibtex-string=. Handle empty keys.
      Detect duplicate keys if bibtex-maintain-sorted-entries is nil.
      (bibtex-complete): Use bibtex-predefined-month-strings,
      bibtex-string=, and new function bibtex-complete-key-cleanup.
      (bibtex-generate-url-list): New variable.
      (bibtex-url): New command bound to C-c C-l and mouse-2.
      (bibtex-url-map): New local keymap for bibtex-url-mouse.
      (bibtex-font-lock-url): New function.
      d528bff7
  8. 01 Jun, 2004 1 commit
    • Stefan Monnier's avatar
      (bibtex-format-entry): Fix regexps. · cb75af76
      Stefan Monnier authored
      (bibtex-parse-strings): Bugfix, use assoc instead of assoc-string.
      (bibtex-entry-update): Handle alternatives and optional fields.
      (bibtex-parse-entry): Bugfix, handle empty key.
      cb75af76
  9. 22 May, 2004 1 commit
  10. 03 May, 2004 1 commit
    • Stefan Monnier's avatar
      (bibtex-progress-message): Fix docstring. · 8bf38a9b
      Stefan Monnier authored
      (bibtex-entry-update): New command bound to C-c C-u.
      (bibtex-text-in-string): Fix regexp.
      (bibtex-assoc-of-regexp): Remove.
      (bibtex-progress-message): Fix docstring.
      (bibtex-inside-field): Use if.
      (bibtex-assoc-regexp): New function.
      (bibtex-format-entry): Make code more robust so it formats also old entries.
      (bibtex-autokey-demangle-title): Merge with obsolete function
      bibtex-assoc-of-regexp.
      (bibtex-field-list): New function.
      (bibtex-entry): Use bibtex-field-list.
      (bibtex-parse-entry): Fix docstring.
      (bibtex-print-help-message): Use bibtex-field-list.
      (bibtex-make-field): Use bibtex-field-list.
      (bibtex-entry-index): Bugfix. Return crossref key if required.
      (bibtex-lessp): Fix docstring.
      8bf38a9b
  11. 02 May, 2004 1 commit
    • Stefan Monnier's avatar
      (bibtex-sort-buffer): Remove error message. · 4f9ae122
      Stefan Monnier authored
      (bibtex-clean-entry): Disentangle code.
      (bibtex-realign): New function.
      (bibtex-reformat): Use mapcar and bibtex-realign.  Do not use
      bibtex-beginning-of-first-entry and bibtex-skip-to-valid-entry.
      Remove undocumented optional arg called-by-convert-alien.
      (bibtex-convert-alien): Use bibtex-realign.  Use bibtex-reformat
      for sorting instead of bibtex-sort-buffer.
      4f9ae122
  12. 20 Oct, 2003 1 commit
  13. 01 Sep, 2003 1 commit
  14. 05 Jul, 2003 1 commit
    • Kai Großjohann's avatar
      2003-06-30 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> · d715b065
      Kai Großjohann authored
      	* textmodes/bibtex.el (bibtex-sort-entry-class): new entry
      	catch-all.
      	(bibtex-sort-ignore-string-entries): default value t.
      	(bibtex-entry-kill-ring-max): Reintroduced as it was removed
      	erroneously in previous version.
      	(bibtex-string-files): Docstring reflects new parsing scheme.
      	(bibtex-autokey-transcriptions): Merge some rewrite entries, fix
      	docstring, add # as one of the chars to crush
      	(bibtex-autokey-prefix-string, bibtex-autokey-names)
      	(bibtex-autokey-names-stretch, bibtex-autokey-additional-names)
      	(bibtex-autokey-name-change-strings)
      	(bibtex-autokey-name-case-convert, bibtex-autokey-name-length)
      	(bibtex-autokey-name-separator, bibtex-autokey-year-length)
      	(bibtex-autokey-use-crossref, bibtex-autokey-titlewords)
      	(bibtex-autokey-title-terminators)
      	(bibtex-autokey-titlewords-stretch)
      	(bibtex-autokey-titleword-ignore)
      	(bibtex-autokey-titleword-case-convert)
      	(bibtex-autokey-titleword-abbrevs)
      	(bibtex-autokey-titleword-abbrevs)
      	(bibtex-autokey-titleword-change-strings)
      	(bibtex-autokey-titleword-length)
      	(bibtex-autokey-titleword-separator)
      	(bibtex-autokey-name-year-separator)
      	(bibtex-autokey-year-title-separator)
      	(bibtex-autokey-before-presentation-function)
      	(bibtex-entry-type-history, bibtex-entry-maybe-empty-head): Fix
      	docstring.
      	(bibtex-strings, bibtex-reference-keys): Use
      	lazy-completion-table and make-variable-buffer-local.
      	(bibtex-sort-entry-class-alist): Use downcase, account for
      	catch-all.
      	(bibtex-braced-string-syntax-table)
      	(bibtex-quoted-string-syntax-table): New variables.
      	(bibtex-parse-nested-braces): Remove.
      	(bibtex-parse-field-string): Use syntax table and forward-sexp.
      	(bibtex-parse-association): Simplify.
      	(bibtex-parse-field-name): Obey bibtex-autoadd-commas.
      	(bibtex-parse-field-text): Simplify.
      	(bibtex-search-forward-field, bibtex-search-backward-field):
      	argument BOUND can take value t.
      	(bibtex-start-of-field, bibtex-start-of-name-in-field)
      	(bibtex-end-of-name-in-field, bibtex-end-of-field)
      	(bibtex-start-of-text-in-field, bibtex-end-of-text-in-field)
      	(bibtex-start-of-text-in-string, bibtex-end-of-text-in-string)
      	(bibtex-end-of-string, bibtex-type-in-head): Use defsubst.
      	(bibtex-skip-to-valid-entry): Return buffer position of beginning
      	and ending of entry. Update for changes of bibtex-search-entry.
      	Simplify.
      	(bibtex-map-entries): FUN is called with three arguments.
      	(bibtex-search-entry): Return a cons pair with buffer positions of
      	beginning and end of entry.
      	(bibtex-enclosing-field): Simplify.
      	(bibtex-format-entry): Use booktitle to set a missing title.
      	(bibtex-autokey-get-names): Fiddle with regexps.
      	(bibtex-generate-autokey): Use identity.
      	(bibtex-parse-keys): Use simplified parsing algorithm if
      	bibtex-parse-keys-fast is non-nil. Simplify. Change order of
      	arguments. Return alist of keys.
      	(bibtex-parse-strings): Simplify. Return alist of strings.
      	(bibtex-complete-string-cleanup): Fix docstring.
      	(bibtex-read-key): New function.
      	(bibtex-mode): Fix docstring. Do not parse for keys and
      	strings when the mode is entered. Set fill-paragraph-function to
      	bibtex-fill-field. Setup font-lock-mark-block-function the way
      	font-lock intended.
      	(bibtex-entry): Use bibtex-read-key. Obey bibtex-autofill-types.
      	(bibtex-parse-entry, bibtex-autofill-entry): New functions.
      	(bibtex-print-help-message, bibtex-remove-OPT-or-ALT)
      	(bibtex-Preamble): Avoid hard coded constants.
      	(bibtex-make-field): Fix docstring. Simplify.
      	(bibtex-beginning-of-entry): Always return new position of point.
      	(bibtex-end-of-entry): Rearrange cond clauses.
      	(bibtex-count-entries, bibtex-validate, bibtex-reformat): Update
      	for changes of bibtex-map-entries.
      	(bibtex-ispell-abstract): Do not move point.
      	(bibtex-entry-index): Use downcase. Simplify.
      	(bibtex-lessp): Handle catch-all.
      	(bibtex-find-crossref): Turned into a command.
      	(bibtex-find-entry): Simplify. Use bibtex-read-key. Fix regexp.
      	(bibtex-clean-entry): Use bibtex-read-key. Handle string and
      	preamble entries.
      	(bibtex-fill-field-bounds): New function.
      	(bibtex-fill-field): New command. Bound to
      	fill-paragraph-function.
      	(bibtex-fill-entry): Use bibtex-fill-field-bounds
      	(bibtex-String): Use bibtex-strings. Always obey
      	bibtex-sort-ignore-string-entries.
      d715b065
  15. 02 Jun, 2003 2 commits
    • Stefan Monnier's avatar
      (bibtex-member-of-regexp, bibtex-assoc-of-regexp, bibtex-format-entry) · dd310c45
      Stefan Monnier authored
      (bibtex-find-entry, bibtex-autokey-demangle-name, bibtex-string-files-init)
      (bibtex-mode): Fix up regexp usage and use match-string.
      dd310c45
    • Stefan Monnier's avatar
      Long overdue merge. · 7fbf4804
      Stefan Monnier authored
      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.
      7fbf4804
  16. 04 Feb, 2003 1 commit
  17. 18 Oct, 2002 1 commit
  18. 30 Aug, 2002 1 commit
  19. 17 Jun, 2002 1 commit
  20. 12 Jun, 2002 1 commit
  21. 16 Mar, 2002 1 commit
  22. 06 Mar, 2002 1 commit
  23. 19 Feb, 2002 1 commit
  24. 14 Feb, 2002 1 commit
  25. 07 Feb, 2001 1 commit
  26. 15 Feb, 2000 1 commit
    • Gerd Moellmann's avatar
      (bibtex-mode): Replaced manual splitting of path · f9bd4abe
      Gerd Moellmann authored
      at ':' characters by call to split-string.
      
      Added RCS version identification.
      
      Some temporary comments removed.
      (bibtex-field-name, bibtex-entry-type): Made the relationship
      explicit.
      (bibtex-field-const): Allow capital letters.
      (bibtex-start-of-string): Deleted because unused.
      
      Unified some nomenclature.  We no longer
      use the term 'reference' to describe a bibtex entry as a whole.
      Further, reference keys are no longer called 'labels'.
      (bibtex-keys): Renamed to bibtex-reference-keys.
      (bibtex-reformat-previous-labels): Renamed to
      bibtex-reformat-previous-reference-keys.
      (bibtex-reference-type): Renamed to bibtex-entry-type.
      (bibtex-reference-head): Renamed to bibtex-entry-head.
      (bibtex-reference-maybe-empty-head): Renamed to
      bibtex-entry-maybe-empty-head.
      (bibtex-key-in-reference): Renamed to bibtex-key-in-entry.
      (bibtex-search-reference): Renamed to bibtex-search-entry.
      (bibtex-enclosing-reference-maybe-empty-head): Renamed to
      bibtex-enclosing-entry-maybe-empty-head.
      (bibtex-entry-field-alist, bibtex-entry-head,
      bibtex-font-lock-keywords, bibtex-skip-to-valid-entry,
      bibtex-map-entries, bibtex-search-entry,
      bibtex-enclosing-entry-maybe-empty-head, bibtex-format-entry,
      bibtex-generate-autokey, bibtex-parse-keys, bibtex-pop, bibtex-mode,
      bibtex-submit-bug-report, bibtex-entry, bibtex-print-help-message,
      bibtex-make-field, bibtex-end-of-entry, bibtex-sort-buffer,
      bibtex-find-entry-location, bibtex-validate, bibtex-find-text,
      bibtex-kill-entry, bibtex-clean-entry, bibtex-reformat,
      bibtex-complete-key, bibtex-String) : Use the new nomenclature.
      
      (bibtex-strings, bibtex-keys): Removed redundant
      comment.
      (bibtex-format-field-delimiters): New function, functionality
      extracted from bibtex-format-entry.
      (bibtex-autokey-get-yearfield-digits): New function, functionality
      extracted from bibtex-autokey-get-yearfield.
      
      Completely reimplemented parsing of bibtex
      entries in order to avoid stack overflow in the regexp matcher if
      field contents become large.
      (bibtex-cfield, bibtex-name-in-cfield, bibtex-text-in-cfield,
      bibtex-field-string-part-not-braced,
      bibtex-field-string-part-no-inner-braces,
      bibtex-field-string-part-1-inner-brace,
      bibtex-field-string-part-2-inner-braces,
      bibtex-field-string-part-3-inner-braces, bibtex-field-string-braced,
      bibtex-field-string-quoted, bibtex-field-string,
      bibtex-field-string-or-const, bibtex-field-text, bibtex-field,
      bibtex-name-in-field, bibtex-text-in-field, bibtex-reference-infix,
      bibtex-string, bibtex-key-in-string, bibtex-text-in-string): Deleted
      as parsing is now performed by the following functions.
      (bibtex-parse-nested-braces, bibtex-parse-field-string-braced,
      bibtex-parse-quoted-string, bibtex-parse-field-string-quoted,
      bibtex-parse-field-string, bibtex-search-forward-field-string,
      bibtex-parse-association, bibtex-field-name-for-parsing,
      bibtex-parse-field-name, bibtex-parse-field-text, bibtex-parse-field,
      bibtex-search-forward-field, bibtex-search-backward-field,
      bibtex-start-of-field, bibtex-end-of-field,
      bibtex-start-of-name-in-field, bibtex-end-of-name-in-field,
      bibtex-start-of-text-in-field, bibtex-end-of-text-in-field,
      bibtex-parse-string-prefix, bibtex-parse-string-postfix,
      bibtex-parse-string, bibtex-search-forward-string,
      bibtex-search-backward-string, bibtex-start-of-string,
      bibtex-end-of-string, bibtex-start-of-reference-key-in-string,
      bibtex-end-of-reference-key-in-string, bibtex-start-of-text-in-string,
      bibtex-end-of-text-in-string): New functions for the parsing of bibtex
      entries.  Instead of reporting the results of the parsing by
      match-beginning or match-end, these functions return data structures
      that hold the corresponding positions.
      (bibtex-enclosing-field): Changed to also report field boundaries by
      return values rather than by match-beginning or match-end.  The
      following functions have been adapted to use the new parsing
      functions.
      (bibtex-skip-to-valid-entry, bibtex-search-reference,
      bibtex-enclosing-field, bibtex-format-entry,
      bibtex-autokey-get-namefield, bibtex-autokey-get-titlestring,
      bibtex-parse-keys, bibtex-complete, bibtex-pop, bibtex-mode,
      bibtex-print-help-message, bibtex-end-of-entry,
      bibtex-ispell-abstract, bibtex-validate, bibtex-next-field,
      bibtex-find-text, bibtex-remove-OPT-or-ALT, bibtex-remove-delimiters,
      bibtex-kill-field, bibtex-empty-field, bibtex-fill-entry): Use the new
      method for parsing.
      (bibtex-assoc-of-regexp, bibtex-skip-to-valid-entry,
      bibtex-map-entries, bibtex-flash-head,
      bibtex-enclosing-reference-maybe-empty-head, bibtex-format-entry,
      bibtex-autokey-change, bibtex-autokey-get-namefield,
      bibtex-autokey-get-names, bibtex-autokey-get-titlestring,
      bibtex-autokey-get-titles, bibtex-parse-keys, bibtex-pop, bibtex-mode,
      bibtex-end-of-entry, bibtex-ispell-abstract, bibtex-sort-buffer,
      bibtex-validate, bibtex-remove-OPT-or-ALT, bibtex-remove-delimiters,
      bibtex-kill-field, bibtex-kill-entry): Use let* instead of let in
      order to make the new binding of case-fold-search immediately
      visible.
      
      Copyright notice is up to date.
      Added constant 'bibtex-maintainer-salutation.
      
      (bibtex-mode): use with-temp-buffer rather
      than make-temp-name, use match-string-no-properties and eliminate
      a quadratic behavior when building bibtex-strings.
      
      (bibtex-reference-key): Accept string entries whose
      reference key contains upper case letters.
      
      (bibtex-reference-head): Allow entries to start with
      a new line.
      
      Hiding of entry bodies is not longer provided by
      bibtex.el directly.  Instead the hideshow package can be used.
      Added a special bibtex entry to hs-special-modes-alist.
      (bibtex-hs-forward-sexp): Added for hideshow.el.
      
      (bibtex-entry-field-alist): Added booktitle field to
      proceedings entry type (for cross referencing). Thanks to
      Wagner Toledo Correa for the suggestion.
      
      Added `reftex-view-crossref-from-bibtex' to menu.
      f9bd4abe
  27. 05 Dec, 1999 1 commit
    • Gerd Moellmann's avatar
      (bibtex-hs-forward-sexp): Added to support · 28f2ee66
      Gerd Moellmann authored
      using the hideshow package.
      (hs-special-modes-alist): Added entry for bibtex to allow the use
      of the hideshow package.
      (bibtex-hide-entry-bodies): Deleted as hiding of entry bodies is
      not longer provided by bibtex.el directly.  Instead the hideshow
      package should be used.
      (bibtex-mode-map, bibtex-edit-menu, bibtex-mode): Delete
      references to bibtex-hide-entry-bodies.
      
      Copyright notice is up to date.  Moved
      maintainer information closer to the beginning of the bibtex.el
      file.
      (bibtex-maintainer-salutation): New constant.
      bibtex-version): New constant.
      bibtex-submit-bug-report): Use bibtex-version and
      bibtex-maintainer-salutation.
      (bibtex-entry-field-alist): Made booktitle field optional for
      @inproceedings entries when crossreferenced.
      (bibtex-entry-field-alist): Added booktitle field to proceedings
      entry type (for cross referencing). Thanks to Wagner Toledo Correa
      for the suggestion.
      (bibtex-string-file-path): Fixed typo.
      (bibtex-mode-map): Reserved the key `C-c &'
      for reftex.el.
      (bibtex-edit-menu): Added `reftex-view-crossref-from-bibtex'
      to menu.
      28f2ee66
  28. 29 Aug, 1999 1 commit
  29. 27 Jun, 1999 1 commit
  30. 26 Apr, 1999 1 commit
  31. 30 Jun, 1998 1 commit
  32. 24 Jun, 1998 2 commits
  33. 14 Mar, 1998 1 commit
  34. 20 Feb, 1998 1 commit
  35. 16 Feb, 1998 1 commit
    • Richard M. Stallman's avatar
      (bibtex-autokey-names): Change number tag to integer. · ab2d0cdb
      Richard M. Stallman authored
      (bibtex-include-OPTkey): Add non-nil default :value
      for function, so that it can be selected.
      (bibtex-entry-format): Replace repeat with set.
      (bibtex-mode-hook):  Change :type to 'hook.
      (bibtex-clean-entry-hook): Ditto.
      (bibtex-add-entry-hook): Ditto.
      (bibtex-autokey-before-presentation-hook): Change name to ->
      `bibtex-autokey-before-presentation-function' as it is not hook.
      (bibtex-autokey-get-namefield): Remove newlines unconditionally.
      
      (bibtex-autokey): Fixed prefix.
      (bibtex-user-optional-fields): Better `:type'.
      (bibtex-autokey-names): Better `:type' and doc-fix.
      (bibtex-mark-active): New function, taking care of Emacs variants.
      (bibtex-run-with-idle-timer): Ditto.
      (bibtex-mode-map): Change `[(control tab)]' to `[(meta tab)]'.
      (bibtex-autokey-get-yearfield): Changed to accept year when year
      field has field-delimiters. This is quick fix, there might
      be better solution.
      (bibtex-mode): Don't call idle timer with 0 seconds.
      (bibtex-mode): Call easy-menu-add.
      
      (bibtex-autokey-get-yearfield): Fixed problem with
      parsing the year field.
      
      (bibtex-comment-start): Font locking for comments added.
      
      (autokey-name-case-convert, autokey-titleword-case-convert): Replace
      autokey-preserve-case, adding flexibility to case conversion of author
      names and titlewords.
      
      (bibtex-autokey-get-titles): Non capitalized title words
      are used for key generation as well.
      (bibtex-member-of-regexp): Case is honoured for matches now.
      (bibtex-autokey-titleword-ignore): Added entries provide compatibility
      to former behaviour.
      
      (bibtex-autokey-titleword-ignore): Title words found in
      this list are always ignored (previously only at the beginning of the
      title).  Replaces bibtex-autokey-titleword-first-ignore.
      ab2d0cdb
  36. 08 Feb, 1998 1 commit
  37. 12 Dec, 1997 1 commit