1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-28 19:42:02 +00:00
Commit Graph

96262 Commits

Author SHA1 Message Date
Alan Mackenzie
22c3ce9729 (c-forward-<>-arglist-recur): Correct the indentation. 2010-09-15 17:51:15 +00:00
Stefan Monnier
4f1e996048 * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): New type
`lexical' for warnings related to lexical scoping.
(byte-compile-file-form-defvar, byte-compile-defvar): Warn about
global vars which don't have a prefix and could hence affect lexical
scoping in unrelated files.
2010-09-15 17:30:43 +02:00
Lars Magne Ingebrigtsen
01e80360d0 Merge changes made in Gnus trunk.
imap.el: Revert back to version cb950ed8ff3e0f40dac437a51b269166f9ffb60d, since some of the changes seem problematic.

Fix up the w3m/curl dependencies.
mm-decode.el (mm-text-html-renderer): Don't have gnus-article-html depend on curl, which isn't essential.
gnus-html.el (gnus-html-schedule-image-fetching, gnus-html-prefetch-images): Check for curl before using it.
2010-09-14 23:14:44 +00:00
Juanma Barranquero
3b59c3511c Fix typos in comments and ChangeLogs. 2010-09-14 22:32:35 +02:00
Juanma Barranquero
2b5491fabb src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring. 2010-09-14 22:17:28 +02:00
Lars Magne Ingebrigtsen
c97c655f5f * xml.c (parse_string): Renamed to parse_string(), since that's
what it does.
(parse_string): Return nil when the document can't be parsed.
2010-09-14 20:37:26 +02:00
Juanma Barranquero
5e2a84e30d Explicitly pass obarray' to unintern' to avoid a warning.
* gnus/gnus-registry.el (gnus-registry-install-shortcuts)
* obsolete/old-whitespace.el (whitespace-unload-function)
2010-09-14 16:59:42 +02:00
Juanma Barranquero
6664fc59a8 Merge changes from emacs-23 branch. 2010-09-14 16:41:53 +02:00
Lars Magne Ingebrigtsen
74769e8b4c Fixed up nnrss group activation, and removed moreover stuff. 2010-09-14 13:44:44 +00:00
Juanma Barranquero
32405341e0 lisp/gnus/.dir-locals.el: Add no-byte-compile cookie. 2010-09-14 13:50:15 +02:00
Stefan Monnier
f3a30a50fa * subr.el (unintern): Declare the obarray arg mandatory.
* emacs-lisp/byte-run.el (set-advertised-calling-convention):
Add `when' argument.  Update callers.
2010-09-14 13:11:44 +02:00
Glenn Morris
67ae97667d Doc fixes related to diary-sort-entries.
* lisp/calendar/diary-lib.el (diary-list-entries-hook, diary-sort-entries):
Doc fixes.

* doc/emacs/cal-xtra.texi (Fancy Diary Display): Emphasize that sort
should be the last hook item.
2010-09-14 01:02:28 -07:00
Andreas Schwab
1da70e9968 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last
change.  Don't make first argument optional.  Doc fix.
2010-09-14 09:53:39 +02:00
Glenn Morris
0ab9cff33d Tiny calendar.texi update.
* doc/emacs/calendar.texi (Appointments): Also updated when a diary
include file is saved.
2010-09-14 00:34:23 -07:00
Glenn Morris
08151ec5f1 * lisp/calendar/appt.el (appt-check): Doc fix. 2010-09-14 00:21:03 -07:00
Glenn Morris
92b99a01de Fix bug#6999.
* lisp/calendar/diary-lib.el (diary-included-files): New variable.
(diary-list-entries): Maybe initialize diary-included-files.
(diary-include-other-diary-files): Append to diary-included-files.
* lisp/calendar/appt.el (appt-update-list): Also check the members of
diary-included-files.
2010-09-14 00:15:06 -07:00
Katsumi Yamaoka
ba96ddf511 time-date.el (format-seconds): Comment fix. 2010-09-14 06:01:14 +00:00
Katsumi Yamaoka
dff99050cf gnus-start.el (gnus-read-active-for-groups): Run gnus-activate-group for back end that doesn't support request-scan. 2010-09-14 03:40:10 +00:00
Lars Magne Ingebrigtsen
26632d8d41 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the parameters
for the doc string.

From  Leo  <sdl.web@gmail.com>  (tiny change)
2010-09-14 02:08:02 +02:00
Lars Magne Ingebrigtsen
7d5444bee6 Check that the libxml2 we found can be used. This fixes a conf
problem on Mac OS X.
2010-09-14 02:04:48 +02:00
Michael Mauger
a386ac7011 SQL Mode 2.7: Code cleanup and primatives for SQL redirection
* progmodes/sql.el: Version 2.7.
	(sql-buffer-live-p): Improve detection.
	(sql-find-sqli-buffer, sql-set-sqli-buffer-generally)
	(sql-set-sqli-buffer): Use it.
	(sql-product-interactive): Run `sql-set-sqli-hook'.
	(sql-rename-buffer): Code cleanup.
	(sql-redirect, sql-redirect-value): New functions.  More to come.
2010-09-13 16:05:23 -04:00
Lars Magne Ingebrigtsen
74f891be2a Set the LIBS to LIBXML2_LIBS before testing for -lxml2 usability. 2010-09-13 21:50:30 +02:00
Juanma Barranquero
5d921df2ed Port tramp-related Makefile changes of 2010-09-08T14:42:54Z!michael.albinus@gmx.de, 2010-09-13T15:17:01Z!michael.albinus@gmx.de to Windows.
* makefile.w32-in (LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
  (TRAMP_SRC): New macro.
  ($(lisp)/net/tramp-loaddefs.el): New target.
2010-09-13 18:33:56 +02:00
Michael Albinus
459bba37ea * NEWS: Some Tramp methods are discontinued. 2010-09-13 17:43:33 +02:00
Michael Albinus
371d98018e * tramp.texi (Inline methods): Remove "ssh1_old", "ssh2_old" and
"fish" methods.
(External methods): Remove "scp1_old" and "scp2_old" methods.
2010-09-13 17:32:45 +02:00
Michael Albinus
03c1ad4351 Major code cleanup. Split tramp.el into tramp.el and tramp-sh.el.
* Makefile.in (TRAMP_SRC): Remove tramp-fish.el.  Add tramp-sh.el.

* net/tramp.el (top): Don't show loading message.  Require just
'tramp-compat, everything else is required there.  Use
`ignore-errors' where appropriate.
(tramp-inline-compress-start-size, tramp-copy-size-limit)
(tramp-terminal-type, tramp-end-of-output)
(tramp-initial-end-of-output, tramp-completion-function-alist-rsh)
(tramp-completion-function-alist-ssh)
(tramp-completion-function-alist-telnet)
(tramp-completion-function-alist-su)
(tramp-completion-function-alist-putty, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args)
(tramp-actions-before-shell, tramp-uudecode)
(tramp-perl-file-truename, tramp-perl-file-name-all-completions)
(tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes)
(tramp-perl-encode-with-module, tramp-perl-decode-with-module)
(tramp-perl-encode, tramp-perl-decode)
(tramp-vc-registered-read-file-names, tramp-file-mode-type-map)
(tramp-file-name-handler-alist, tramp-make-tramp-temp-file)
(tramp-handle-make-symbolic-link, tramp-handle-load)
(tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory)
(tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
(tramp-handle-file-exists-p, tramp-handle-file-attributes)
(tramp-do-file-attributes-with-ls)
(tramp-do-file-attributes-with-perl)
(tramp-do-file-attributes-with-stat)
(tramp-handle-set-visited-file-modtime)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-set-file-modes, tramp-handle-set-file-times)
(tramp-set-file-uid-gid, tramp-remote-selinux-p)
(tramp-handle-file-selinux-context)
(tramp-handle-set-file-selinux-context)
(tramp-handle-file-executable-p, tramp-handle-file-readable-p)
(tramp-handle-file-newer-than-file-p, tramp-handle-file-modes)
(tramp-handle-file-directory-p, tramp-handle-file-regular-p)
(tramp-handle-file-symlink-p, tramp-handle-file-writable-p)
(tramp-handle-file-ownership-preserved-p)
(tramp-handle-directory-file-name, tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-do-directory-files-and-attributes-with-perl)
(tramp-do-directory-files-and-attributes-with-stat)
(tramp-handle-file-name-all-completions)
(tramp-handle-file-name-completion, tramp-handle-add-name-to-file)
(tramp-handle-copy-file, tramp-handle-copy-directory)
(tramp-handle-rename-file, tramp-do-copy-or-rename-file)
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-make-directory, tramp-handle-delete-directory)
(tramp-handle-delete-file)
(tramp-handle-dired-recursive-delete-directory)
(tramp-handle-dired-compress-file, tramp-handle-dired-uncache)
(tramp-handle-insert-directory)
(tramp-handle-unhandled-file-name-directory)
(tramp-handle-expand-file-name)
(tramp-handle-substitute-in-file-name)
(tramp-handle-executable-find, tramp-process-sentinel)
(tramp-handle-start-file-process, tramp-handle-process-file)
(tramp-handle-call-process-region, tramp-handle-shell-command)
(tramp-handle-file-local-copy, tramp-handle-file-remote-p)
(tramp-handle-insert-file-contents)
(tramp-handle-insert-file-contents-literally)
(tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name, tramp-handle-write-region)
(tramp-vc-registered-file-names, tramp-handle-vc-registered)
(tramp-sh-file-name-handler, tramp-vc-file-name-handler)
(tramp-maybe-send-script, tramp-set-auto-save, tramp-run-test)
(tramp-run-test2, tramp-find-executable, tramp-set-remote-path)
(tramp-find-file-exists-command, tramp-open-shell)
(tramp-find-shell, tramp-barf-if-no-shell-prompt)
(tramp-open-connection-setup-interactive-shell)
(tramp-local-coding-commands, tramp-remote-coding-commands)
(tramp-find-inline-encoding, tramp-call-local-coding-command)
(tramp-inline-compress-commands, tramp-find-inline-compress)
(tramp-compute-multi-hops, tramp-maybe-open-connection)
(tramp-send-command , tramp-wait-for-output)
(tramp-send-command-and-check, tramp-barf-unless-okay)
(tramp-send-command-and-read, tramp-mode-string-to-int)
(tramp-convert-file-attributes, tramp-check-cached-permissions)
(tramp-file-mode-from-int, tramp-file-mode-permissions)
(tramp-shell-case-fold, tramp-make-copy-program-file-name)
(tramp-method-out-of-band-p, tramp-local-host-p)
(tramp-get-remote-path, tramp-get-remote-tmpdir)
(tramp-get-ls-command, tramp-get-ls-command-with-dired)
(tramp-get-test-command, tramp-get-test-nt-command)
(tramp-get-file-exists-command, tramp-get-remote-ln)
(tramp-get-remote-perl, tramp-get-remote-stat)
(tramp-get-remote-readlink, tramp-get-remote-trash)
(tramp-get-remote-id, tramp-get-remote-uid, tramp-get-remote-gid)
(tramp-get-local-uid, tramp-get-local-gid)
(tramp-get-inline-compress, tramp-get-inline-coding, ): Move to
tramp-sh.el.
(tramp-methods, tramp-default-method-alist)
(tramp-default-user-alist, tramp-foreign-file-name-handler-alist):
Move initialization to tramp-sh.el.
(tramp-temp-name-prefix): Make it a defconst.
(tramp-dissect-file-name): Don't check anymore for multi-hop
methods.
(tramp-debug-outline-regexp): Add a docstring.
(tramp-debug-outline-level): Renamed from `tramp-outline-level'.
(tramp-get-debug-buffer): Use it.

* net/tramp-cache.el (top): Set tramp-autoload cookie for
initialization forms.
(tramp-set-connection-property): Don't protect `tramp-message'
call, it isn't necessary any longer.
(tramp-dump-connection-properties): Use `ignore-errors'.

* net/tramp-compat.el (top): Require 'advice, 'format-spec,
'password-cache and 'auth-source.

* net/tramp-gvfs.el (top):
* net/tramp-smb.el (top): Require 'tramp-sh.

* net/tramp-gw.el (tramp-gw-open-network-stream): Use `ignore-errors'.

* net/tramp-sh.el: New file, derived from tramp.el.
(top): Initialize `tramp-methods', `tramp-default-method-alist',
`tramp-default-user-alist', tramp-foreign-file-name-handler-alist.
Remove "scp1_old", "scp2_old", "ssh1_old", "ssh2_old".  Use
`ignore-errors' where appropriate.
(tramp-sh-file-name-handler-alist): Renamed from
`tramp-file-name-handler-alist'.
(tramp-send-command-and-check): Return t or nil.  Remove all
`zerop' checks, where called.
(tramp-handle-set-file-modes)
(tramp-do-copy-or-rename-file-directly)
(tramp-handle-delete-directory, tramp-handle-delete-file)
(tramp-maybe-send-script, ): Use `tramp-barf-unless-okay'.
(tramp-sh-file-name-handler, tramp-send-command-and-check)
(tramp-get-remote-ln): Set tramp-autoload cookie.

* net/tramp-fish.el: Remove file.
2010-09-13 17:17:01 +02:00
Lars Magne Ingebrigtsen
c7a1fb9be8 * configure.in (HAVE_LIBXML2): Check that the libxml2 we found can
be used.  This fixes a conf problem on Mac OS X.
2010-09-13 16:58:48 +02:00
Eli Zaretskii
375a0f6552 Revert 2010-09-13T10:14:52Z!bob@gnu.org by Bob Chassel. 2010-09-13 16:42:33 +02:00
Daiki Ueno
c5fe4acb5f epa-file: suppress file-locking question on M-x revert-buffer
* epa-file.el (epa-file-insert-file-contents): If visiting, bind
buffer-file-name to avoid file-locking.  (Bug#7026)
2010-09-13 19:44:07 +09:00
Robert J. Chassell
ed9a2f6896 10-09-13 2010-09-13 10:14:52 +00:00
Michael Albinus
7ea2d3835e * notifications.el (notifications-notify): Add support for
image-path and sound-name.
(notifications-specification-version): Add this variable.
2010-09-13 06:39:36 +02:00
David Reitter
5a66ed0f65 simple.el (line-move-visual): Do not truncate goal column to integer size.
(Bug#7020)
2010-09-12 13:46:57 -04:00
Lars Magne Ingebrigtsen
21fa8e37fd * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL. 2010-09-12 19:16:25 +02:00
Stefan Monnier
5616cc54c5 * 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.
2010-09-12 16:35:37 +02:00
Jan D
5f61a25c8a Fix bug 7013, only do send event if wanted state != current state.
* xterm.c (get_current_vm_state): New function.
(do_ewmh_fullscreen): Call get_current_vm_state and compare with
want_fullscreen so set_wm_state calls are few (Bug#7013).
(x_handle_net_wm_state): Move code to get_current_vm_state and
call that function.
2010-09-12 15:23:59 +02:00
Stefan Monnier
65c92e318d Update name of <emacs-bugs-7626@cbane.org> 2010-09-12 14:29:25 +02:00
Leo Liu
94c7243ba4 * 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
2010-09-12 13:06:19 +02:00
Glenn Morris
63e1eaa187 Various updates for the Bugs section of the manual.
* doc/emacs/trouble.texi (Bugs): Update the section intro.
(Known Problems): New section.
(Checklist): Misc updates.  Prefer M-x report-emacs-bug.
(Sending Patches): Bug fixes are best as responses to existing bugs.

* doc/emacs/emacs.texi (Known Problems): Add menu entry for new section.
2010-09-11 17:31:47 -07:00
Glenn Morris
7eb662be2f * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change.
Write out the name of the .elc file, rather than the temp-file.
2010-09-11 12:33:52 -07:00
Glenn Morris
0f34ae289a Close bug#4196.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Create .elc files
atomically, to avoid parallel build errors.
2010-09-11 11:52:04 -07:00
Stefan Monnier
dba28758ab * repeat.el (repeat): Allow repeating when the last event is a click.
Suggested by Drew Adams (bug#6256).
2010-09-11 20:23:45 +02:00
Stefan Monnier
7cf78aac59 * doc/lispref/syntax.texi (Syntax Flags): Document new `c' flag. 2010-09-11 15:58:57 +02:00
Stefan Monnier
681b88dd81 * vc/vc-hg.el (vc-hg-state,vc-hg-working-revision):
Replace setting HGRCPATH to "" by some less invasive --config options.
2010-09-11 15:25:48 +02:00
Stefan Monnier
71e657fcb8 * lisp/font-lock.el (font-lock-beginning-of-syntax-function):
Mark as obsolete.
2010-09-11 15:00:19 +02:00
Anonymous
65b3d997c8 * src/term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002). 2010-09-11 14:53:21 +02:00
Michael Mauger
9250002f81 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.
2010-09-10 23:17:02 -04:00
Glenn Morris
ac1e75b396 Remove some obsolete files from etc/.
* emacs.bash, emacs.csh, ms-kermit: Remove obsolete files (use
emacsclient -a instead of the first two).
2010-09-10 19:06:11 -07:00
Glenn Morris
a5cda60e9a 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.
2010-09-10 18:58:42 -07:00
Julien Danjou
6f6dc4da1d * lisp/url/url-cache (url-store-in-cache): Make `buff' argument really optional. 2010-09-10 18:55:55 -07:00
Lars Magne Ingebrigtsen
a9ec34f4c4 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.
2010-09-11 00:36:27 +00:00