1. 24 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Remove several obsolete vars and functions unlikely to be still in use. · a5f2b6ec
      Chong Yidong authored
      * lisp/vc/log-edit.el (cvs-changelog-full-paragraphs)
      (cvs-commit-buffer-require-final-newline): Obsolete variables
      removed.
      
      * lisp/font-lock.el (font-lock-reference-face): Use
      define-obsolete-variable-alias.
      
      * lisp/international/mule.el (set-char-table-default): Remove.
      (set-coding-priority, make-coding-system, generic-char-p)
      (charset-list, charset-bytes, charset-id): Use declare to mark
      obsolete.
      
      * lisp/mail/supercite.el (sc-version): Remove obsolete function.
      (sc-describe): Don't mark as obsolete, since it is bound.
      (sc-submit-bug-report): Remove.
      
      * lisp/progmodes/compile.el (compile-internal): Remove obsolete
      function.
      (compilation-parse-errors-function): Fix typo.
      
      * lisp/vc/emerge.el (emerge-mode): Make it an obsolete alias.
      (emerge-version): Remove.
      
      * lisp/vc/pcvs-defs.el (cvs-buffer-name-alist)
      (cvs-invert-ignore-marks): Remove references to obsolete vars.
      * lisp/vc/vc-hooks.el (vc-default-registered): Don't use
      vc-master-templates.
      
      * lisp/vc/pcvs-defs.el (cvs-diff-buffer-name, cvs-diff-ignore-marks)
      * lisp/vc/vc-hooks.el (vc-ignore-vc-files, vc-master-templates)
      * lisp/vc/vc.el (vc-checkout-carefully): Likewise.
      
      * src/chartab.c (Fset_char_table_default): Obsolete function removed.
      a5f2b6ec
  2. 17 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Update docstrings and comments to use "init file" terminology. · 865fe16f
      Chong Yidong authored
      * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
      * comint.el (comint-prompt-read-only):
      * custom.el (defcustom):
      * hi-lock.el (hi-lock-mode):
      * ibuffer.el (ibuffer-formats):
      * ielm.el (ielm-prompt-read-only):
      * novice.el (disable-command):
      * saveplace.el (toggle-save-place):
      * speedbar.el (speedbar-supported-extension-expressions):
      * startup.el (auto-save-list-file-prefix, init-file-user)
      (after-init-hook, inhibit-startup-echo-area-message):
      * strokes.el (strokes-help):
      * time-stamp.el (time-stamp):
      * calendar/calendar.el (calendar, diary-file):
      * calendar/diary-lib.el (diary-mail-entries, diary)
      (diary-list-entries-hook):
      * calendar/holidays.el (holidays, calendar-holidays):
      * calendar/lunar.el (lunar-phases):
      * calendar/solar.el (sunrise-sunset):
      * emulation/edt.el (edt-load-keys):
      * emulation/viper.el (viper-mode):
      * eshell/em-alias.el (eshell-command-aliases-list):
      * eshell/esh-util.el (eshell-convert-numeric-arguments):
      * international/ogonek.el (ogonek-information):
      * net/tramp-cmds.el (tramp-bug):
      * net/quickurl.el (quickurl-reread-hook-postfix):
      * play/decipher.el (decipher-font-lock-keywords):
      * progmodes/cc-styles.el (c-set-style):
      * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
      * progmodes/inf-lisp.el (inferior-lisp-prompt):
      * progmodes/octave-mod.el (octave-mode):
      * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
      * progmodes/verilog-mode.el (verilog-read-defines):
      * textmodes/two-column.el (2C-mode): Likewise.
      865fe16f
  3. 20 Aug, 2012 1 commit
  4. 10 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Reduce use of (require 'cl). · f58e0fd5
      Stefan Monnier authored
      * admin/bzrmerge.el: Use cl-lib.
      * leim/quail/hangul.el: Don't require CL.
      * leim/quail/ipa.el: Use cl-lib.
      * vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
      * vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
      * register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
      * msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
      * international/quail.el, info-xref.el, imenu.el, image-mode.el:
      * font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
      * battery.el, avoid.el, abbrev.el: Use cl-lib.
      * vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
      * vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
      * jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
      * emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
      * calculator.el, autorevert.el, apropos.el: Don't require CL.
      * emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
      (byte-compile-unfold-bcf, byte-compile-check-variable):
      * emacs-byte-opt.el (byte-compile-trueconstp)
      (byte-compile-nilconstp):
      * emacs-autoload.el (make-autoload): Use pcase.
      * face-remap.el (text-scale-adjust): Simplify pcase patterns.
      f58e0fd5
  5. 08 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Face cleanups. Remove some uses of old-style face spec and :bold/:italic. · 4b56d0fe
      Chong Yidong authored
      * faces.el (set-face-attribute): Doc fix.
      (modify-face): Don't use :bold and :italic.
      (error, warning, success): Tweak definitions.
      
      * cus-edit.el (custom-modified, custom-invalid, custom-rogue)
      (custom-modified, custom-set, custom-changed, custom-themed)
      (custom-saved, custom-button, custom-button-mouse)
      (custom-button-pressed, custom-state, custom-comment-tag)
      (custom-variable-tag, custom-group-tag-1, custom-group-tag)
      (custom-group-subtitle): Use new-style face specs.
      (custom-invalid-face, custom-rogue-face, custom-modified-face)
      (custom-set-face, custom-changed-face, custom-saved-face)
      (custom-button-face, custom-button-pressed-face)
      (custom-documentation-face, custom-state-face)
      (custom-comment-face, custom-comment-tag-face)
      (custom-variable-tag-face, custom-variable-button-face)
      (custom-face-tag-face, custom-group-tag-face-1)
      (custom-group-tag-face): Remove obsolete face alias.
      
      * epa.el (epa-validity-high, epa-validity-medium)
      (epa-validity-low, epa-mark, epa-field-name, epa-string)
      (epa-field-name, epa-field-body):
      * font-lock.el (font-lock-comment-face, font-lock-string-face)
      (font-lock-keyword-face, font-lock-builtin-face)
      (font-lock-function-name-face, font-lock-variable-name-face)
      (font-lock-type-face, font-lock-constant-face):
      * ido.el (ido-first-match, ido-only-match, ido-subdir)
      (ido-virtual, ido-indicator, ido-incomplete-regexp):
      * speedbar.el (speedbar-button-face, speedbar-file-face)
      (speedbar-directory-face, speedbar-tag-face)
      (speedbar-selected-face, speedbar-highlight-face)
      (speedbar-separator-face):
      * whitespace.el (whitespace-newline, whitespace-space)
      (whitespace-hspace, whitespace-tab, whitespace-trailing)
      (whitespace-line, whitespace-space-before-tab)
      (whitespace-space-after-tab, whitespace-indentation)
      (whitespace-empty):
      * emulation/cua-base.el (cua-global-mark):
      * eshell/em-prompt.el (eshell-prompt):
      * net/newst-plainview.el (newsticker-new-item-face)
      (newsticker-old-item-face, newsticker-immortal-item-face)
      (newsticker-obsolete-item-face, newsticker-date-face)
      (newsticker-statistics-face, newsticker-default-face):
      * net/newst-reader.el (newsticker-feed-face)
      (newsticker-extra-face, newsticker-enclosure-face):
      * net/newst-treeview.el (newsticker-treeview-face)
      (newsticker-treeview-new-face, newsticker-treeview-old-face)
      (newsticker-treeview-immortal-face)
      (newsticker-treeview-obsolete-face)
      (newsticker-treeview-selection-face):
      * net/rcirc.el (rcirc-my-nick, rcirc-other-nick)
      (rcirc-bright-nick, rcirc-server, rcirc-timestamp)
      (rcirc-nick-in-message, rcirc-nick-in-message-full-line)
      (rcirc-prompt, rcirc-track-keyword, rcirc-url, rcirc-keyword):
      * nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator)
      (nxml-outline-active-indicator, nxml-outline-ellipsis):
      * play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial)
      (mpuz-text):
      * progmodes/vera-mode.el (vera-font-lock-number)
      (vera-font-lock-function, vera-font-lock-interface):
      * textmodes/table.el (table-cell): Use new-style face specs, and
      don't use the old :bold and :italic attributes.
      
      * erc-button.el (erc-button):
      * erc-goodies.el (erc-bold-face, erc-inverse-face)
      (erc-underline-face, fg:erc-color-*):
      * erc-match.el (erc-current-nick-face, erc-dangerous-host-face)
      (erc-pal-face, erc-fool-face, erc-keyword-face):
      * erc-stamp.el (erc-timestamp-face): Likewise.
      
      * erc.el (erc-direct-msg-face, erc-header-line, erc-input-face)
      (erc-command-indicator-face, erc-notice-face, erc-action-face)
      (erc-error-face, erc-my-nick-face, erc-nick-default-face)
      (erc-nick-msg-face): Use new-style face specs, and avoid :bold.
      
      * progmodes/ebrowse.el (ebrowse-tree-mark, ebrowse-root-class)
      (ebrowse-member-attribute, ebrowse-default, ebrowse-file-name)
      (ebrowse-member-class, ebrowse-progress): Likewise.
      (ebrowse-tree-mark-face, ebrowse-root-class-face)
      (ebrowse-file-name-face, ebrowse-default-face)
      (ebrowse-member-attribute-face, ebrowse-member-class-face)
      (ebrowse-progress-face): Remove obsolete faces.
      
      * progmodes/flymake.el (flymake-errline, flymake-warnline):
      Inherit from error and warning faces respectively.
      
      * textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
      Likewise.
      (flyspell-incorrect-face, flyspell-duplicate-face): Remove
      obsolete aliases.
      
      * display.texi (Face Attributes): Font family does not accept
      wildcards.  De-document obsolete :bold and :italic attributes.
      (Defining Faces): Use new-style face spec format.
      4b56d0fe
  6. 20 Apr, 2012 1 commit
  7. 09 Apr, 2012 1 commit
  8. 16 Mar, 2012 1 commit
  9. 28 Feb, 2012 1 commit
  10. 27 Feb, 2012 1 commit
  11. 26 Feb, 2012 1 commit
  12. 23 Feb, 2012 1 commit
  13. 10 Feb, 2012 1 commit
  14. 05 Feb, 2012 1 commit
  15. 11 Jan, 2012 1 commit
  16. 05 Jan, 2012 1 commit
  17. 19 Dec, 2011 1 commit
  18. 20 Nov, 2011 1 commit
  19. 11 Nov, 2011 1 commit
  20. 17 Oct, 2011 1 commit
  21. 21 Aug, 2011 2 commits
  22. 18 Aug, 2011 1 commit
    • Juri Linkov's avatar
      * lisp/faces.el (error, warning, success): New faces with definitions · bc987f8b
      Juri Linkov authored
      copied from old default values of `font-lock-warning-face',
      `compilation-warning', `compilation-info'.
      
      * lisp/font-lock.el (font-lock-warning-face): Inherit from `error'.
      
      * lisp/progmodes/compile.el (compilation-error): Inherit from `error'.
      (compilation-warning): Inherit from `warning'.
      (compilation-info): Inherit from `success'.
      
      * lisp/dired.el (dired-marked): Inherit from `warning'.
      (dired-flagged): Inherit from `error'.
      
      Fixes: debbugs:6117
      bc987f8b
  23. 14 Jul, 2011 1 commit
  24. 13 Jul, 2011 1 commit
  25. 05 Jul, 2011 2 commits
  26. 04 Jul, 2011 1 commit
  27. 01 Jun, 2011 1 commit
    • Stefan Monnier's avatar
      Silence various byte-compiler warnings. · 2403c841
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument
      `access-type' and new obsolescence format.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
      new format.
      (byte-compile-check-variable): New `access-type' argument.
      Only warn if the access-type is obsolete.
      (byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
      (byte-compile-variable-set): Adjust callers.
      * lisp/help-fns.el (describe-variable): Adjust to new obsolescence format.
      * lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
      setting it as obsolete.
      * lisp/simple.el (minibuffer-completing-symbol):
      * lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
      access as obsolete.
      * lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it
      obsolete yet.
      * lisp/international/quail.el (quail-mouse-choose-completion): Remove unused
      code referring to obsolete var.
      (quail-choose-completion-string): Remove.
      * lisp/server.el (server-clients-with, server-kill-buffer-query-function)
      (server-kill-emacs-query-function): Silence "unused `proc'" warnings.
      * lisp/proced.el (proced-send-signal):
      * lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
      Replace completion-annotate-function with completion-extra-properties.
      2403c841
  28. 05 Apr, 2011 1 commit
    • Juanma Barranquero's avatar
      lisp/font-lock.el: Remove obsolete code. · 33256f14
      Juanma Barranquero authored
      * font-lock.el (font-lock-refresh-defaults):
        Don't bind `hi-lock--inhibit-font-lock-hook', removed in
        2010-10-09T04:09:19Z!cyd@stupidchicken.com and 2010-10-11T23:57:49Z!lekktu@gmail.com
      33256f14
  29. 08 Mar, 2011 1 commit
  30. 25 Jan, 2011 1 commit
  31. 16 Jan, 2011 1 commit
  32. 13 Jan, 2011 1 commit
  33. 02 Jan, 2011 1 commit
  34. 06 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Remove obsolete variable font-lock-defaults-alist. · 6aecca99
      Glenn Morris authored
      * lisp/font-core.el (font-lock-defaults-alist): Remove variable.
      (font-lock-mode): Doc fix.
      (font-lock-default-function): Do not consult font-lock-defaults-alist.
      * lisp/font-lock.el (font-lock-refresh-defaults): Doc fix.
      (font-lock-set-defaults): Doc fix.
      Do not consult font-lock-defaults-alist.
      
      * etc/NEWS: Mention above change.
      6aecca99
  35. 11 Sep, 2010 1 commit
  36. 10 Sep, 2010 1 commit
    • Stefan Monnier's avatar
      New syntax-propertize functionality. · cf38dd42
      Stefan Monnier authored
      * lisp/font-lock.el (font-lock-syntactic-keywords): Make obsolete.
      (font-lock-fontify-syntactic-keywords-region): Move handling of
      font-lock-syntactically-fontified to...
      (font-lock-default-fontify-region): ...here.
      Let syntax-propertize-function take precedence.
      (font-lock-fontify-syntactically-region): Cal syntax-propertize.
      
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt-depth): Skip named groups.
      
      * lisp/emacs-lisp/syntax.el (syntax-propertize-function)
      (syntax-propertize-chunk-size, syntax-propertize--done)
      (syntax-propertize-extend-region-functions): New vars.
      (syntax-propertize-wholelines, syntax-propertize-multiline)
      (syntax-propertize--shift-groups, syntax-propertize-via-font-lock)
      (syntax-propertize): New functions.
      (syntax-propertize-rules): New macro.
      (syntax-ppss-flush-cache): Set syntax-propertize--done.
      (syntax-ppss): Call syntax-propertize.
      
      * lisp/progmodes/ada-mode.el (ada-set-syntax-table-properties)
      (ada-after-change-function, ada-initialize-syntax-table-properties)
      (ada-handle-syntax-table-properties): Only define when
      syntax-propertize is not available.
      (ada-mode): Use syntax-propertize-function.
      
      * lisp/progmodes/autoconf.el (autoconf-mode):
      Use syntax-propertize-function.
      (autoconf-font-lock-syntactic-keywords): Remove.
      
      * lisp/progmodes/cfengine.el (cfengine-mode):
      Use syntax-propertize-function.
      (cfengine-font-lock-syntactic-keywords): Remove.
      
      * lisp/progmodes/cperl-mode.el (cperl-mode): Use syntax-propertize-function.
      
      * lisp/progmodes/fortran.el (fortran-mode): Use syntax-propertize-function.
      (fortran--font-lock-syntactic-keywords): New var.
      (fortran-line-length): Update syntax-propertize-function and
      fortran--font-lock-syntactic-keywords.
      
      * lisp/progmodes/gud.el (gdb-script-syntax-propertize-function): New var;
      replaces gdb-script-font-lock-syntactic-keywords.
      (gdb-script-mode): Use it.
      
      * lisp/progmodes/js.el (js--regexp-literal): Define while compiling.
      (js-syntax-propertize-function): New var; replaces
      js-font-lock-syntactic-keywords.
      (js-mode): Use it.
      
      * lisp/progmodes/make-mode.el (makefile-syntax-propertize-function):
      New var; replaces makefile-font-lock-syntactic-keywords.
      (makefile-mode): Use it.
      (makefile-imake-mode): Adjust.
      
      * lisp/progmodes/mixal-mode.el (mixal-syntax-propertize-function): New var;
      replaces mixal-font-lock-syntactic-keywords.
      (mixal-mode): Use it.
      
      * lisp/progmodes/octave-mod.el (octave-syntax-propertize-sqs): New function
      to replace octave-font-lock-close-quotes.
      (octave-syntax-propertize-function): New function to replace
      octave-font-lock-syntactic-keywords.
      (octave-mode): Use it.
      
      * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): New fun to
      replace perl-font-lock-syntactic-keywords.
      (perl-syntax-propertize-special-constructs): New fun to replace
      perl-font-lock-special-syntactic-constructs.
      (perl-font-lock-syntactic-face-function): New fun.
      (perl-mode): Use it.
      
      * lisp/progmodes/python.el (python-syntax-propertize-function): New var to
      replace python-font-lock-syntactic-keywords.
      (python-mode): Use it.
      (python-quote-syntax): Simplify and adjust to new use.
      
      * lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-re):
      Define while compiling.
      (ruby-here-doc-end-re, ruby-here-doc-beg-match)
      (ruby-font-lock-syntactic-keywords, ruby-comment-beg-syntax)
      (syntax-ppss, ruby-in-ppss-context-p, ruby-in-here-doc-p)
      (ruby-here-doc-find-end, ruby-here-doc-beg-syntax)
      (ruby-here-doc-end-syntax): Only define when
      syntax-propertize is not available.
      (ruby-syntax-propertize-function, ruby-syntax-propertize-heredoc):
      New functions.
      (ruby-in-ppss-context-p): Update to new syntax of heredocs.
      (electric-indent-chars): Silence bytecompiler.
      (ruby-mode): Use prog-mode, syntax-propertize-function, and
      electric-indent-chars.
      
      * lisp/progmodes/sh-script.el (sh-st-symbol): Remove.
      (sh-font-lock-close-heredoc, sh-font-lock-open-heredoc): Add eol arg.
      (sh-font-lock-flush-syntax-ppss-cache, sh-font-lock-here-doc): Remove.
      (sh-font-lock-quoted-subshell): Assume we've already matched $(.
      (sh-font-lock-paren): Set syntax-multiline.
      (sh-font-lock-syntactic-keywords): Remove.
      (sh-syntax-propertize-function): New function to replace it.
      (sh-mode): Use it.
      
      * lisp/progmodes/simula.el (simula-syntax-propertize-function): New var to
      replace simula-font-lock-syntactic-keywords.
      (simula-mode): Use it.
      
      * lisp/progmodes/tcl.el (tcl-syntax-propertize-function): New var to
      replace tcl-font-lock-syntactic-keywords.
      (tcl-mode): Use it.
      
      * lisp/progmodes/vhdl-mode.el (vhdl-mode): Use syntax-propertize-function
      if available.
      (vhdl-fontify-buffer): Adjust.
      
      * lisp/textmodes/bibtex.el (bibtex-mode): Use syntax-propertize-function.
      
      * lisp/textmodes/reftex.el (font-lock-syntactic-keywords): Don't declare
      since we don't use it.
      
      * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-function): New var to
      replace sgml-font-lock-syntactic-keywords.
      (sgml-mode): Use it.
      
      * lisp/textmodes/tex-mode.el (tex-common-initialization, doctex-mode):
      Use syntax-propertize-function.
      
      * lisp/textmodes/texinfo.el (texinfo-syntax-propertize-function): New fun
      to replace texinfo-font-lock-syntactic-keywords.
      (texinfo-mode): Use it.
      
      * test/indent/octave.m: Remove some `fixindent' not needed any more.
      cf38dd42
  37. 08 Sep, 2010 1 commit
    • Stefan Monnier's avatar
      Misc cleanups and simplifications. · b073dc4b
      Stefan Monnier authored
      * lisp/font-lock.el (save-buffer-state): Remove `varlist' arg.
      (font-lock-unfontify-region, font-lock-default-fontify-region):
      Update usage correspondingly.
      (font-lock-fontify-syntactic-keywords-region):
      Set parse-sexp-lookup-properties buffer-locally here.
      (font-lock-fontify-syntactically-region): Remove unused `ppss' arg.
      * lisp/progmodes/ada-mode.el: Replace "(set '" with setq.
      (ada-mode): Simplify.
      (ada-create-case-exception, ada-adjust-case-interactive)
      (ada-adjust-case-region, ada-format-paramlist, ada-indent-current)
      (ada-search-ignore-string-comment, ada-move-to-start)
      (ada-move-to-end): Use with-syntax-table.
      * lisp/progmodes/fortran.el (fortran-line-length): Don't recompute
      syntactic keywords redundantly a second time.
      * lisp/progmodes/js.el (require): Require is already "eval-and-compile".
      (js--re-search-forward): Avoid `eval'.  Preserve the error data.
      (js--re-search-backward): Use js--re-search-forward.
      * lisp/progmodes/octave-mod.el (electric-indent-chars): Silence bytecomp.
      b073dc4b
  38. 30 Aug, 2010 1 commit
    • Stefan Monnier's avatar
      Use with-silent-modifications. · d36b74ca
      Stefan Monnier authored
      * lisp/composite.el (save-buffer-state): Delete, unused.
      * lisp/font-lock.el (save-buffer-state): Use with-silent-modifications.
      (font-lock-default-fontify-region): Use with-syntax-table.
      * lisp/jit-lock.el (with-buffer-unmodified): Remove.
      (with-buffer-prepared-for-jit-lock): Use with-silent-modifications.
      d36b74ca