1. 12 Sep, 2010 2 commits
    • Stefan Monnier's avatar
      * lisp/subr.el (y-or-n-p): New function, moved from src/fns.c. Use read-key. · 5616cc54
      Stefan Monnier authored
      * src/fns.c (Fy_or_n_p): Move to lisp/subr.el.
      (syms_of_fns): Don't defsubr Sy_or_n_p.
      * src/lisp.h: Don't declare Fy_or_n_p.
      * src/fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
      5616cc54
    • Leo Liu's avatar
      * lisp/net/rcirc.el (rcirc-server-commands, rcirc-client-commands) · 94c7243b
      Leo Liu authored
      (rcirc-completion-start): New variables.
      (rcirc-nick-completions): Rename to rcirc-completions.
      (rcirc-nick-completion-start-offset): Delete.
      (rcirc-completion-at-point): New function for constructing
      completion data for both nicks and irc commands.  Add to
      completion-at-point-functions in rcirc mode.
      (rcirc-complete): Rename from rcirc-nick-complete; use
      rcirc-completion-at-point.
      (defun-rcirc-command): Update rcirc-client-commands.
      
      Fixes: debbugs:6076
      94c7243b
  2. 11 Sep, 2010 7 commits
    • Glenn Morris's avatar
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change. · 7eb662be
      Glenn Morris authored
      Write out the name of the .elc file, rather than the temp-file.
      7eb662be
    • Glenn Morris's avatar
      Close bug#4196. · 0f34ae28
      Glenn Morris authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Create .elc files
      atomically, to avoid parallel build errors.
      0f34ae28
    • Stefan Monnier's avatar
    • Michael Mauger's avatar
      SQL Mode, Version 2.6 · 9250002f
      Michael Mauger authored
      	* progmodes/sql.el: Version 2.6
      	(sql-dialect): Synonym for "sql-product".
      	(sql-find-sqli-buffer, sql-set-sqli-buffer-generally)
      	(sql-set-sqli-buffer, sql-show-sqli-buffer, sql-interactive-mode):
      	Set "sql-buffer" to buffer name not buffer object so multiple sql
      	interactive buffers work properly.  Reverts misguided changes in
      	earlier work.
      	(sql-comint): Make sure different buffer name is used if "*SQL*"
      	buffer is for a different product.
      	(sql-make-alternate-buffer-name): Fix bug with "sql-database"
      	login param.
      	(sql-oracle, sql-sybase, sql-informix, sql-sqlite, sql-mysql)
      	(sql-solid, sql-ingres, sql-ms, sql-postgres, sql-interbase)
      	(sql-db2, sql-linter, sql-product-interactive, sql-rename-buffer):
      	Accept new buffer name or prompt for one.
      	(sql-port): Default to zero.
      	(sql-comint-mysql): Handle "sql-port" as a numeric.
      	(sql-port-history): Delete unused variable.
      	(sql-get-login): Default "sql-port" to a number.
      	(sql-product-alist): Correct Postgres prompt and terminator
      	regexp.
      	(sql-sqlite-program): Dynamically detect presence of "sqlite" or
      	"sqlite3" executables.
      	(sql-sqlite-login-params): Add "*.sqlite[23]?" database name
      	pattern.
      	(sql-buffer-live-p): New function.
      	(sql-mode-menu, sql-send-string): Use it.
      	(sql-mode-oracle-font-lock-keywords): Improve SQL*Plus REMARK
      	syntax pattern.
      	(sql-mode-postgres-font-lock-keywords): Support Postgres V9.
      	(sql-mode-sqlite-font-lock-keywords): Hilight sqlite commands.
      9250002f
    • Glenn Morris's avatar
      Remove some obsolete files from etc/. · ac1e75b3
      Glenn Morris authored
      * emacs.bash, emacs.csh, ms-kermit: Remove obsolete files (use
      emacsclient -a instead of the first two).
      ac1e75b3
    • Glenn Morris's avatar
      lisp/url tiny fixes. · a5cda60e
      Glenn Morris authored
      * url-cache.el, url-gw.el, url-history.el, url-irc.el, url-util.el:
      * url-vars.el: Remove leading `*' from defcustom docs.
      a5cda60e
    • Lars Magne Ingebrigtsen's avatar
      Merge changes made in Gnus trunk. · a9ec34f4
      Lars Magne Ingebrigtsen authored
      gnus-sum.el: Avoid calling a hook function per summary line;
      Call `gnus-summary-highlight-line' directly from all places that used to call it indirectly.
      
      netrc.el (netrc-credentials): New conveniency function.
      
      gnus-start.el (gnus-read-active-file-1): If gnus-agent isn't set, then do request scans from the backends.
      a9ec34f4
  3. 10 Sep, 2010 8 commits
    • 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
    • Lars Magne Ingebrigtsen's avatar
      71c17aec
    • Lars Magne Ingebrigtsen's avatar
      8b620f11
    • Lars Magne Ingebrigtsen's avatar
      Add support for the libxml2 library. · 381408e2
      Lars Magne Ingebrigtsen authored
      This adds the html-parse-string and xml-parse-string functions in the
      new file src/xml.c, as well as autoconf detection of the library.
      381408e2
    • Agustín Martín's avatar
      ispell.el: Improve comments. XEmacs compatibility changes. · 36f7d366
      Agustín Martín authored
      * textmodes/ispell.el (ispell-init-process): Improve comments.
        XEmacs compatibility changes regarding (add-hook) 'local option
        and (set-process-query-on-exit-flag).
      36f7d366
    • Katsumi Yamaoka's avatar
    • Lars Magne Ingebrigtsen's avatar
    • Lars Magne Ingebrigtsen's avatar
      gnus-html.el (gnus-html-wash-tags): Refactor out the image bit, and don't... · 698ecd82
      Lars Magne Ingebrigtsen authored
      gnus-html.el (gnus-html-wash-tags): Refactor out the image bit, and don't restrict end-tag searches to the end of the line.
      698ecd82
  4. 09 Sep, 2010 12 commits
  5. 08 Sep, 2010 9 commits
    • Lars Magne Ingebrigtsen's avatar
    • Katsumi Yamaoka's avatar
      gnus-html.el (gnus-html-schedule-image-fetching): Decode entities before feeding URLs to curl. · 724d30be
      Katsumi Yamaoka authored
      gnus-async.el (gnus-async-article-callback): Call `gnus-html-prefetch-images' unconditionally.
      724d30be
    • 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
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      Very minor bytecomp fix. · 5a972c36
      Glenn Morris authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops):
      Error if not compiled with -DBYTE_CODE_METER.
      5a972c36
    • Glenn Morris's avatar
    • Stefan Monnier's avatar
      * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): · 331b2b90
      Stefan Monnier authored
      Not a const.
      (compilation-error-regexp-alist-alist): Rule out ": " in file names
      for the `gnu' messages.
      (compilation-set-skip-threshold): New command.
      (compilation-start): Use \' rather than $.
      (compilation-forget-errors): Use clrhash.
      331b2b90
    • Agustín Martín's avatar
    • Michael Albinus's avatar
      Migrate to Tramp 2.2. Rearrange load dependencies. · 0f34aa77
      Michael Albinus authored
      (Bug#1529, Bug#5448, Bug#5705)
      
      * Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
      ($(TRAMP_DIR)/tramp-loaddefs.el): New target.
      (LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
      
      * net/tramp.el (top): Remove all other tramp-* loads except
      tramp-compat.el.  Remove all changes to tramp-unload-hook for
      other tramp-* packages.  Rearrange defun order.  Change calls of
      `tramp-compat-call-process', `tramp-compat-decimal-to-octal',
      `tramp-compat-octal-to-decimal' to new function names.
      (tramp-terminal-type, tramp-initial-end-of-output)
      (tramp-methods, tramp-foreign-file-name-handler-alist)
      (tramp-tramp-file-p, tramp-completion-mode-p)
      (tramp-send-command-and-check, tramp-get-remote-path)
      (tramp-get-remote-tmpdir, tramp-get-remote-ln)
      (tramp-shell-quote-argument): Set tramp-autoload cookie.
      (with-file-property, with-connection-property): Move to
      tramp-cache.el.
      (tramp-local-call-process, tramp-decimal-to-octal)
      (tramp-octal-to-decimal): Move to tramp-compat.el.
      (tramp-handle-shell-command): Do not require 'shell.
      (tramp-compute-multi-hops): No special handling for tramp-gw-*
      symbols.
      (tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
      
      * net/tramp-cache.el (top): Require 'tramp.  Add to
      `tramp-unload-hook'.
      (tramp-cache-data, tramp-get-file-property)
      (tramp-set-file-property, tramp-flush-file-property)
      (tramp-flush-directory-property, tramp-get-connection-property)
      (tramp-set-connection-property, tramp-flush-connection-property)
      (tramp-cache-print, tramp-list-connections): Set tramp-autoload
      cookie.
      (with-file-property, with-connection-property): New defuns, moved
      from tramp.el.
      (tramp-flush-file-function): Use `with-parsed-tramp-file-name'
      macro.
      
      * net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
      (tramp-version): Set tramp-autoload cookie.
      
      * net/tramp-compat.el (top): Require 'tramp-loaddefs.  Remove all
      changes to tramp-unload-hook for other tramp-* packages.  Add to
      `tramp-unload-hook'.
      (tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
      (tramp-compat-call-process): New defuns, moved from tramp.el.
      
      * net/tramp-fish.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change call of
      `tramp-compat-decimal-to-octal' to new function name.
      (tramp-fish-method): Make it a defconst.
      (tramp-fish-file-name-p): Make it a defsubst.
      (tramp-fish-method, tramp-fish-file-name-handler)
      (tramp-fish-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-ftp.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-ftp-method): Make it a defconst.
      (tramp-ftp-file-name-p): Make it a defsubst.
      (tramp-ftp-method, tramp-ftp-file-name-handler)
      (tramp-ftp-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-gvfs-file-name-p): Make it a defsubst.
      (tramp-gvfs-methods, tramp-gvfs-file-name-handler)
      (tramp-gvfs-file-name-p): Set tramp-autoload cookie.
      (tramp-gvfs-handle-file-directory-p): New defun.
      (tramp-gvfs-file-name-handler-alist): Use it.
      
      * net/tramp-gw.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
      (tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
      defconst.
      (tramp-gw-tunnel-method, tramp-gw-socks-method)
      (tramp-gw-open-connection): Set tramp-autoload cookie.
      
      * net/tramp-imap.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-imap-file-name-p): Make it a defsubst.
      (tramp-imap-method, tramp-imaps-method)
      (tramp-imap-file-name-handler)
      (tramp-imap-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-smb.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.  Change call of `tramp-compat-decimal-to-octal' to new
      function name.
      (tramp-smb-tunnel-method): Make it a defconst.
      (tramp-smb-file-name-p): Make it a defsubst.
      (tramp-smb-method, tramp-smb-file-name-handler)
      (tramp-smb-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-uu.el (top) Add to `tramp-unload-hook'.
      (tramp-uuencode-region): Set tramp-autoload cookie.
      
      * net/trampver.el (top) Add to `tramp-unload-hook'.
      (tramp-version, tramp-bug-report-address): Set tramp-autoload
      cookie.  Update release number.
      0f34aa77
  6. 07 Sep, 2010 2 commits