]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years ago* xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
Lars Magne Ingebrigtsen [Sun, 12 Sep 2010 17:16:25 +0000 (19:16 +0200)]
* xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.

14 years ago* lisp/subr.el (y-or-n-p): New function, moved from src/fns.c. Use read-key.
Stefan Monnier [Sun, 12 Sep 2010 14:35:37 +0000 (16:35 +0200)]
* lisp/subr.el (y-or-n-p): New function, moved from src/fns.c.  Use read-key.
* 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.

14 years ago* lisp/net/rcirc.el (rcirc-server-commands, rcirc-client-commands)
Leo Liu [Sun, 12 Sep 2010 11:06:19 +0000 (13:06 +0200)]
* lisp/net/rcirc.el (rcirc-server-commands, rcirc-client-commands)
(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
14 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change.
Glenn Morris [Sat, 11 Sep 2010 19:33:52 +0000 (12:33 -0700)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change.
Write out the name of the .elc file, rather than the temp-file.

14 years agoClose bug#4196.
Glenn Morris [Sat, 11 Sep 2010 18:52:04 +0000 (11:52 -0700)]
Close bug#4196.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Create .elc files
atomically, to avoid parallel build errors.

14 years ago* doc/lispref/syntax.texi (Syntax Flags): Document new `c' flag.
Stefan Monnier [Sat, 11 Sep 2010 13:58:57 +0000 (15:58 +0200)]
* doc/lispref/syntax.texi (Syntax Flags): Document new `c' flag.

14 years agoSQL Mode, Version 2.6
Michael Mauger [Sat, 11 Sep 2010 03:17:02 +0000 (23:17 -0400)]
SQL Mode, Version 2.6

* 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.

14 years agoRemove some obsolete files from etc/.
Glenn Morris [Sat, 11 Sep 2010 02:06:11 +0000 (19:06 -0700)]
Remove some obsolete files from etc/.
* emacs.bash, emacs.csh, ms-kermit: Remove obsolete files (use
emacsclient -a instead of the first two).

14 years agolisp/url tiny fixes.
Glenn Morris [Sat, 11 Sep 2010 01:58:42 +0000 (18:58 -0700)]
lisp/url tiny fixes.

* url-cache.el, url-gw.el, url-history.el, url-irc.el, url-util.el:
* url-vars.el: Remove leading `*' from defcustom docs.

14 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sat, 11 Sep 2010 00:36:27 +0000 (00:36 +0000)]
Merge changes made in Gnus trunk.

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.

14 years agoNew syntax-propertize functionality.
Stefan Monnier [Fri, 10 Sep 2010 23:13:42 +0000 (01:13 +0200)]
New syntax-propertize functionality.
* 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.

14 years ago* NEWS: Mention the new libxml2 functions.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 17:51:48 +0000 (19:51 +0200)]
* NEWS: Mention the new libxml2 functions.

14 years agoRemove some trailing white space.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 17:45:22 +0000 (19:45 +0200)]
Remove some trailing white space.

14 years agoAdd support for the libxml2 library.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 16:44:35 +0000 (18:44 +0200)]
Add support for the libxml2 library.

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.

14 years agoispell.el: Improve comments. XEmacs compatibility changes.
Agustín Martín [Fri, 10 Sep 2010 11:20:51 +0000 (13:20 +0200)]
ispell.el: Improve comments. XEmacs compatibility changes.

* textmodes/ispell.el (ispell-init-process): Improve comments.
  XEmacs compatibility changes regarding (add-hook) 'local option
  and (set-process-query-on-exit-flag).

14 years agognus-start.el (gnus-read-active-for-groups): Check only subscribed groups.
Katsumi Yamaoka [Fri, 10 Sep 2010 05:32:25 +0000 (05:32 +0000)]
gnus-start.el (gnus-read-active-for-groups): Check only subscribed groups.

14 years agoRemove pop3-movemail and rename pop3-streaming-movemail to pop3-movemail.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 00:08:31 +0000 (00:08 +0000)]
Remove pop3-movemail and rename pop3-streaming-movemail to pop3-movemail.

14 years agognus-html.el (gnus-html-wash-tags): Refactor out the image bit, and don't restrict...
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 00:07:33 +0000 (00:07 +0000)]
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.

14 years ago* net/tramp-cache.el (tramp-parse-connection-properties): Set
Michael Albinus [Thu, 9 Sep 2010 13:24:39 +0000 (15:24 +0200)]
* net/tramp-cache.el (tramp-parse-connection-properties): Set
tramp-autoload cookie.

14 years ago* tramp.texi: Remove Japanese manual. Fix typo.
Michael Albinus [Thu, 9 Sep 2010 08:04:35 +0000 (10:04 +0200)]
* tramp.texi: Remove Japanese manual.  Fix typo.

* trampver.texi: Update release number.  Remove japanesemanual.

14 years agognus-start.el (gnus-get-unread-articles): Set the number of unread articles of every...
Katsumi Yamaoka [Thu, 9 Sep 2010 06:15:13 +0000 (06:15 +0000)]
gnus-start.el (gnus-get-unread-articles): Set the number of unread articles of every unchecked group to t, which means unknown since the server has never been opened.

14 years ago* make-dist: No more TODO files under lisp/.
Glenn Morris [Thu, 9 Sep 2010 02:37:59 +0000 (19:37 -0700)]
* make-dist: No more TODO files under lisp/.

14 years ago* lisp/nxml/TODO: Remove.
Glenn Morris [Thu, 9 Sep 2010 02:34:25 +0000 (19:34 -0700)]
* lisp/nxml/TODO: Remove.
* etc/NEWS: Move nxml TODO items here.

14 years ago* README.imagemagick: Remove.
Glenn Morris [Thu, 9 Sep 2010 02:30:31 +0000 (19:30 -0700)]
* README.imagemagick: Remove.
* etc/NEWS: Move remaining ImageMagick items here.

14 years agoTiny image.el fixes.
Glenn Morris [Thu, 9 Sep 2010 02:25:12 +0000 (19:25 -0700)]
Tiny image.el fixes.
* lisp/image.el (imagemagick-types-inhibit): Add :type, :version, :group.
(imagemagick-register-types): Doc fix.

14 years ago* etc/NEWS: Misc fixes for ImageMagick section.
Glenn Morris [Thu, 9 Sep 2010 02:21:12 +0000 (19:21 -0700)]
* etc/NEWS: Misc fixes for ImageMagick section.

14 years ago* doc/lispref/display.texi (ImageMagick Images): General cleanup.
Glenn Morris [Thu, 9 Sep 2010 02:18:38 +0000 (19:18 -0700)]
* doc/lispref/display.texi (ImageMagick Images): General cleanup.

14 years ago* doc/misc/org.texi: Restore clobbered changes (copyright years, untabify).
Glenn Morris [Thu, 9 Sep 2010 02:16:14 +0000 (19:16 -0700)]
* doc/misc/org.texi: Restore clobbered changes (copyright years, untabify).

14 years ago* doc/emacs/xresources.texi: Untabify.
Glenn Morris [Thu, 9 Sep 2010 02:12:40 +0000 (19:12 -0700)]
* doc/emacs/xresources.texi: Untabify.

14 years agognus-html (gnus-html-wash-tags): Search for images first, so that <a><img> works...
Lars Magne Ingebrigtsen [Thu, 9 Sep 2010 00:08:06 +0000 (00:08 +0000)]
gnus-html (gnus-html-wash-tags): Search for images first, so that <a><img> works better; (gnus-html-displayed-image-map): Bind RET and TAB on images for better UX.

14 years agognus-html.el: Allow showing the ALT text of images and to browse the images themselves.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 23:59:52 +0000 (23:59 +0000)]
gnus-html.el: Allow showing the ALT text of images and to browse the images themselves.

14 years agognus-html.el (gnus-html-schedule-image-fetching): Decode entities before feeding...
Katsumi Yamaoka [Wed, 8 Sep 2010 23:51:10 +0000 (23:51 +0000)]
gnus-html.el (gnus-html-schedule-image-fetching): Decode entities before feeding URLs to curl.
gnus-async.el (gnus-async-article-callback): Call `gnus-html-prefetch-images' unconditionally.

14 years agoMisc cleanups and simplifications.
Stefan Monnier [Wed, 8 Sep 2010 16:21:23 +0000 (18:21 +0200)]
Misc cleanups and simplifications.
* 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.

14 years ago* lisp/simple.el (blink-matching-open): Don't burp if we can't find a match.
Stefan Monnier [Wed, 8 Sep 2010 16:14:44 +0000 (18:14 +0200)]
* lisp/simple.el (blink-matching-open): Don't burp if we can't find a match.

14 years agoVery minor bytecomp fix.
Glenn Morris [Wed, 8 Sep 2010 16:02:38 +0000 (09:02 -0700)]
Very minor bytecomp fix.
* lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops):
Error if not compiled with -DBYTE_CODE_METER.

14 years ago* emacs-lisp/bytecomp.el (byte-recompile-directory): Ignore dir-locals-file.
Glenn Morris [Wed, 8 Sep 2010 15:59:10 +0000 (08:59 -0700)]
* emacs-lisp/bytecomp.el (byte-recompile-directory): Ignore dir-locals-file.

14 years ago* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Stefan Monnier [Wed, 8 Sep 2010 15:53:08 +0000 (17:53 +0200)]
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
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.

14 years agotextmodes/ispell.el (ispell-valid-dictionary-list): Simplify logic.
Agustín Martín [Wed, 8 Sep 2010 14:54:00 +0000 (16:54 +0200)]
textmodes/ispell.el (ispell-valid-dictionary-list): Simplify logic.

14 years agoMigrate to Tramp 2.2. Rearrange load dependencies.
Michael Albinus [Wed, 8 Sep 2010 14:42:54 +0000 (16:42 +0200)]
Migrate to Tramp 2.2.  Rearrange load dependencies.
(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.

14 years agoMake sure original ispell arg list is initialized in (ispell-start-process).
Agustín Martín [Tue, 7 Sep 2010 18:01:23 +0000 (20:01 +0200)]
Make sure original ispell arg list is initialized in (ispell-start-process).

* textmodes/ispell.el (ispell-start-process): Make sure original
  arg list is properly initialized (Bug#6993, Bug#6994).

14 years agognus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images...
Katsumi Yamaoka [Tue, 7 Sep 2010 06:23:16 +0000 (06:23 +0000)]
gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images as deletable by `W D D'.

14 years agognus-async.el (gnus-html-prefetch-images): Autoload it when compiling; (gnus-async...
Katsumi Yamaoka [Tue, 7 Sep 2010 01:20:19 +0000 (01:20 +0000)]
gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling; (gnus-async-article-callback): Fix typo.

14 years agognus-html.el (gnus-html-wash-tags): Limit end-tag matching to the current line to...
Lars Magne Ingebrigtsen [Tue, 7 Sep 2010 00:08:33 +0000 (00:08 +0000)]
gnus-html.el (gnus-html-wash-tags): Limit end-tag matching to the current line to work around bugs in the output from w3m.

14 years agognus-async.el (gnus-async-article-callback): Always prefetch images for groups that...
Lars Magne Ingebrigtsen [Tue, 7 Sep 2010 00:05:59 +0000 (00:05 +0000)]
gnus-async.el (gnus-async-article-callback): Always prefetch images for groups that want that.

14 years agonntp.el (nntp-wait-for-string): Supply a timeout for accept-process-output to ensure...
Lars Magne Ingebrigtsen [Tue, 7 Sep 2010 00:04:11 +0000 (00:04 +0000)]
nntp.el (nntp-wait-for-string): Supply a timeout for accept-process-output to ensure progress.

14 years agognus-start.el (gnus-get-unread-articles): If being given an explicit level to get...
Lars Magne Ingebrigtsen [Tue, 7 Sep 2010 00:00:56 +0000 (00:00 +0000)]
gnus-start.el (gnus-get-unread-articles): If being given an explicit level to get unread articles from, then use that for foreign groups, too.

14 years agognus-html.el (gnus-html-wash-tags): Remove <a name...> tags, which confuses the rest...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 23:58:34 +0000 (23:58 +0000)]
gnus-html.el (gnus-html-wash-tags): Remove <a name...> tags, which confuses the rest of the function.

14 years agognus-start.el (gnus-read-active-for-groups): Do a `gnus-request-scan' for the methods...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 23:56:27 +0000 (23:56 +0000)]
gnus-start.el (gnus-read-active-for-groups): Do a `gnus-request-scan' for the methods that support -retrieve-groups, too.

14 years agonnml.el (nnml-save-nov): Remove some debugging-related messages.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 23:54:07 +0000 (23:54 +0000)]
nnml.el (nnml-save-nov): Remove some debugging-related messages.

14 years agoMerge changes from emacs-23 branch.
Chong Yidong [Mon, 6 Sep 2010 16:38:03 +0000 (12:38 -0400)]
Merge changes from emacs-23 branch.

14 years agoMerge whitespace.el from trunk
Chong Yidong [Mon, 6 Sep 2010 16:24:32 +0000 (12:24 -0400)]
Merge whitespace.el from trunk

14 years agopop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ".
Katsumi Yamaoka [Mon, 6 Sep 2010 02:09:42 +0000 (02:09 +0000)]
pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ".

14 years agognus-start.el (gnus-get-unread-articles): Fix up the last commit.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:48:40 +0000 (00:48 +0000)]
gnus-start.el (gnus-get-unread-articles): Fix up the last commit.

14 years agognus-start.el (gnus-get-unread-articles): Don't bother with groups that aren't going...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:44:55 +0000 (00:44 +0000)]
gnus-start.el (gnus-get-unread-articles): Don't bother with groups that aren't going to be activated.

14 years agognus-html.el (gnus-article-html): Allow calling without specifying the handle. In...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:41:06 +0000 (00:41 +0000)]
gnus-html.el (gnus-article-html): Allow calling without specifying the handle.  In that case, dissect the buffer first.

14 years agognus-sum.el (gnus-set-mode-line): Don\t pad the mode line string.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:37:02 +0000 (00:37 +0000)]
gnus-sum.el (gnus-set-mode-line): Don\t pad the mode line string.

14 years agonnimap.el (nnimap-open-connection): Revert the change that would look into authinfo...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:33:15 +0000 (00:33 +0000)]
nnimap.el (nnimap-open-connection): Revert the change that would look into authinfo for imaps instead of imap.

14 years agognus-start.el (gnus-get-unread-articles): Count the archive groups as secondary,...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:20:42 +0000 (00:20 +0000)]
gnus-start.el (gnus-get-unread-articles): Count the archive groups as secondary, so that they're activated the same way as before.

14 years agognus-start.el (gnus-activate-group): Take an optional parameter to say that you don...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:15:13 +0000 (00:15 +0000)]
gnus-start.el (gnus-activate-group): Take an optional parameter to say that you don't want to call gnus-request-group with don-check, but do check the reponse.  This is for virtual groups only.

14 years agoimap.el (imap-mailbox-get): Revert last change for this function.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:10:55 +0000 (00:10 +0000)]
imap.el (imap-mailbox-get): Revert last change for this function.

14 years agonnimap.el (nnimap-debug): Removed; imap.el: Remove an optional buffer parameter from...
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 00:06:55 +0000 (00:06 +0000)]
nnimap.el (nnimap-debug): Removed; imap.el: Remove an optional buffer parameter from many functions.

14 years agonnimap.el (nnimap-request-list): Servers may return \NoSelect case-insensitively.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:56:42 +0000 (23:56 +0000)]
nnimap.el (nnimap-request-list): Servers may return \NoSelect case-insensitively.

14 years agoimap.el (imap-debug): Removed -- doesn't seem very useful.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:49:02 +0000 (23:49 +0000)]
imap.el (imap-debug): Removed -- doesn't seem very useful.

14 years agoimap.el (imap-fetch-safe, imap-enable-exchange-bug-workaround): Removed.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:45:14 +0000 (23:45 +0000)]
imap.el (imap-fetch-safe, imap-enable-exchange-bug-workaround): Removed.

14 years agomail-source.el (mail-source-fetch): Don't message if we're fetching mail from a file...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:38:33 +0000 (23:38 +0000)]
mail-source.el (mail-source-fetch): Don't message if we're fetching mail from a file, and the file doesn't exist.

14 years agopop3.el (pop3-streaming-movemail): Return t for success; imap.el (imap-log): New...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:34:30 +0000 (23:34 +0000)]
pop3.el (pop3-streaming-movemail): Return t for success; imap.el (imap-log): New convenience function used throughout instead of repeating the same code all over the place.

14 years agonnimap.el (nnimap-open-connection): Look for the "imaps" entry in the .authinfo if...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:27:15 +0000 (23:27 +0000)]
nnimap.el (nnimap-open-connection): Look for the "imaps" entry in the .authinfo if we're using ssl connection.

14 years agonnvirtual.el (nnvirtual-create-mapping): Use the active info we already have if we...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:20:25 +0000 (23:20 +0000)]
nnvirtual.el (nnvirtual-create-mapping): Use the active info we already have if we're in a main Gnus `g' run.

14 years agognus-start.el (gnus-method-rank): Get info for virtual groups last.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 23:13:43 +0000 (23:13 +0000)]
gnus-start.el (gnus-method-rank): Get info for virtual groups last.

14 years agoRespect mouse-drag-copy-region upon mouse-3 region adjustment.
David De La Harpe Golden [Sun, 5 Sep 2010 22:40:57 +0000 (23:40 +0100)]
Respect mouse-drag-copy-region upon mouse-3 region adjustment.

* mouse.el (mouse-save-then-kill): Save region to kill-ring when
mouse-drag-copy-region is non-nil (Bug#6956).

14 years ago* doc/lispref/files.texi (Directory Names): Use \` rather than ^.
Alexander Klimov [Sun, 5 Sep 2010 22:03:56 +0000 (00:03 +0200)]
* doc/lispref/files.texi (Directory Names): Use \` rather than ^.
* lisp/files.el (directory-abbrev-alist): Use \` as default regexp.

14 years agoImprove ls date switch parsing in Dired (Bug#6987).
Chong Yidong [Sun, 5 Sep 2010 21:28:50 +0000 (17:28 -0400)]
Improve ls date switch parsing in Dired (Bug#6987).

* dired.el (dired-ls-sorting-switches, dired-sort-by-name-regexp):
Improve regexps (Bug#6987).
(dired-sort-toggle): Search more robustly for -t flag.

14 years ago* files.el (get-free-disk-space): Search more robustly for "available" column.
Chong Yidong [Sun, 5 Sep 2010 19:03:20 +0000 (15:03 -0400)]
* files.el (get-free-disk-space): Search more robustly for "available" column.

Suggested by Ehud Karni <ehud@unix.mvs.co.il>:
http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00163.html

14 years agognus-start.el (gnus-method-rank): Replace equalp with equal.
Katsumi Yamaoka [Sun, 5 Sep 2010 11:53:59 +0000 (11:53 +0000)]
gnus-start.el (gnus-method-rank): Replace equalp with equal.

14 years agoRegenerate configure
Andreas Schwab [Sun, 5 Sep 2010 10:17:26 +0000 (12:17 +0200)]
Regenerate configure

14 years ago* emacs-lisp/rx.el (rx-any): Don't explode ranges that end in - or ].
Stefan Monnier [Sun, 5 Sep 2010 09:44:55 +0000 (11:44 +0200)]
* emacs-lisp/rx.el (rx-any): Don't explode ranges that end in - or ].
(rx-any-condense-range): Explode 2-char ranges.

Fixes: debbugs:6984
14 years ago(nnmh-request-list-1): Bind `file'.
Katsumi Yamaoka [Sun, 5 Sep 2010 04:09:07 +0000 (04:09 +0000)]
(nnmh-request-list-1): Bind `file'.

14 years agopop3-set-process-query-on-exit-flag: New function that's an alias to set-process...
Katsumi Yamaoka [Sun, 5 Sep 2010 04:01:41 +0000 (04:01 +0000)]
pop3-set-process-query-on-exit-flag: New function that's an alias to set-process-query-on-exit-flag, or process-kill-without-query for XEmacs and old Emacsen.

14 years agoUpdate to latest Unicode 6.0 beta data files.
Juanma Barranquero [Sun, 5 Sep 2010 02:06:39 +0000 (04:06 +0200)]
Update to latest Unicode 6.0 beta data files.

* admin/unidata/BidiMirroring.txt: Update from
  http://www.unicode.org/Public/6.0.0/ucd/BidiMirroring-6.0.0d2.txt

* admin/unidata/UnicodeData.txt: Update from
  http://www.unicode.org/Public/6.0.0/ucd/UnicodeData-6.0.0d7.txt

* lisp/international/uni-bidi.el:
* lisp/international/uni-category.el:
* lisp/international/uni-combining.el:
* lisp/international/uni-decimal.el:
* lisp/international/uni-mirrored.el:
* lisp/international/uni-name.el: Regenerate.

* src/biditype.h: Regenerate.

14 years agognus-int.el (gnus-request-group): Indent.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 01:31:15 +0000 (01:31 +0000)]
gnus-int.el (gnus-request-group): Indent.

14 years agomail-source.el (mail-source-delete-crash-box): Always move the crash box to the Incom...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 01:27:15 +0000 (01:27 +0000)]
mail-source.el (mail-source-delete-crash-box): Always move the crash box to the Incoming file.  Fixes mistake in previous checkin; Do incremental NOV updates when scanning new male.  (nnml-save-incremental-nov, nnml-open-incremental-nov, nnml-add-incremental-nov): New functions to do "incremental" nov updates, where we just append to the end of the existing nov files without reading/writing them in full.

14 years agopop3.el (pop3-write-to-file): Don't output messages when saving; mail-source.el ...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 01:18:05 +0000 (01:18 +0000)]
pop3.el (pop3-write-to-file): Don't output messages when saving; mail-source.el (mail-source-delete-crash-box): Really only check the incoming files once in a while; nnml.el (nnml-save-nov): Message around nnml-save-nov so that the culprit is more visible; pop3.el (pop3-send-streaming-command): Off-by-one error on the request loop (for debugging purposes) removed.

14 years agopop3.el (pop3-streaming-movemail): Always close the pop3 connection.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 01:12:51 +0000 (01:12 +0000)]
pop3.el (pop3-streaming-movemail): Always close the pop3 connection.

14 years agognus-start.el: White space clean up; mail-source.el (mail-source-fetch-pop): Use...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 01:08:22 +0000 (01:08 +0000)]
gnus-start.el:  White space clean up; mail-source.el (mail-source-fetch-pop): Use streaming pop3 retrieval; pop3.el (pop3-streaming-movemail): Respect pop3-leave-mail-on-server; pop3.el (pop3-logon): Fix up unbound variable typo; mail-source.el (mail-source-delete-crash-box): Only check the incoming files for deletion once per day to save a lot of file accesses.

14 years agognus-start.el (gnus-make-hashtable-from-newsrc-alist): Remove duplicates from .newsrc...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 00:56:31 +0000 (00:56 +0000)]
gnus-start.el (gnus-make-hashtable-from-newsrc-alist): Remove duplicates from .newsrc list.

14 years agopop3.el (pop3-movemail): Use erase-buffer instead of looping and deleting regions...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 00:52:55 +0000 (00:52 +0000)]
pop3.el (pop3-movemail): Use erase-buffer instead of looping and deleting regions, which seems rather odd; gnus-start.el (gnus-get-unread-articles): Protect against groups that come from no known methods.

14 years ago(pop3-display-message-size-flag): Removed -- everybody wants message sizes.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 00:49:07 +0000 (00:49 +0000)]
(pop3-display-message-size-flag): Removed -- everybody wants message sizes.

14 years agognus-agent.el (gnus-agent-load-local): Only read the agent.lib/local file once per...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 00:44:53 +0000 (00:44 +0000)]
gnus-agent.el (gnus-agent-load-local): Only read the agent.lib/local file once per `g' run.

14 years agonnmh.el (nnmh-request-list-1): Output active lines also for empty directories. This...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 00:38:39 +0000 (00:38 +0000)]
nnmh.el (nnmh-request-list-1): Output active lines also for empty directories.  This makes the draft queue directory work.

14 years agoRewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request...
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 00:34:16 +0000 (00:34 +0000)]
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.

14 years ago* lisp/electric.el (electric-indent-post-self-insert-function):
Stefan Monnier [Sat, 4 Sep 2010 22:54:58 +0000 (00:54 +0200)]
* lisp/electric.el (electric-indent-post-self-insert-function):
Don't reindent with a sloppy indentation function.

14 years ago* lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch
Stefan Monnier [Sat, 4 Sep 2010 22:51:39 +0000 (00:51 +0200)]
* lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch
border case in change-log-mode.

14 years agoFix Ruby compilation error matching.
Chong Yidong [Sat, 4 Sep 2010 20:42:03 +0000 (16:42 -0400)]
Fix Ruby compilation error matching.

* progmodes/compile.el (compilation-error-regexp-alist-alist):
Remove ruby regexp; handle Ruby errors with gcc-include and gnu.
Recognize leading tab in gcc-include regexp.  Ignore names with
leading "from" or "in" in gnu regexp (Bug#6937).

14 years agoUpdate cl-loaddefs.el
Andreas Schwab [Sat, 4 Sep 2010 19:44:39 +0000 (21:44 +0200)]
Update cl-loaddefs.el

14 years agoCheck all lisp types in image loader
Andreas Schwab [Sat, 4 Sep 2010 19:39:34 +0000 (21:39 +0200)]
Check all lisp types in image loader

* nsimage.m (ns_load_image): Check argument types.

* image.c: Remove all uses of gcpro.
(xpm_load): Check all lisp types.
(pbm_load): Likewise.
(png_load): Likewise.
(jpeg_load): Likewise.
(tiff_load): Likewise.
(gif_load): Likewise.
(imagemagick_load_image): Likewise.
(imagemagick_load): Likewise.
(svg_load): Likewise.
(gs_load): Likewise.

14 years ago* dired.texi (Dired Enter): Minor doc fix (Bug#6982).
Chong Yidong [Sat, 4 Sep 2010 18:58:56 +0000 (14:58 -0400)]
* dired.texi (Dired Enter): Minor doc fix (Bug#6982).

14 years agoAvoid global recursive calls to kill-buffer-hooks, and fit into 80 cols.
Stefan Monnier [Sat, 4 Sep 2010 18:47:29 +0000 (20:47 +0200)]
Avoid global recursive calls to kill-buffer-hooks, and fit into 80 cols.
* lisp/textmodes/ispell.el (ispell-process-buffer-name): Remove.
(ispell-start-process): Avoid setq and simplify logic.
(ispell-init-process): Setup kill-buffer-hook locally when needed.
(kill-buffer-hook): Don't use it globally with code that uses
expand-file-name since that may call kill-buffer via
code_conversion_restore.

14 years agoRevert last change.
Chong Yidong [Sat, 4 Sep 2010 18:36:24 +0000 (14:36 -0400)]
Revert last change.

14 years ago* frames.texi (Layout Parameters): Add cindex entries (Bug#6929).
Chong Yidong [Sat, 4 Sep 2010 18:21:48 +0000 (14:21 -0400)]
* frames.texi (Layout Parameters): Add cindex entries (Bug#6929).

14 years ago* emacs-lisp/package.el (package-directory-list): Only call file-name-nondirectory...
Chong Yidong [Sat, 4 Sep 2010 17:54:48 +0000 (13:54 -0400)]
* emacs-lisp/package.el (package-directory-list): Only call file-name-nondirectory on a string.