1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00
Commit graph

53001 commits

Author SHA1 Message Date
Ted Zlatanov
eebc475df5 Add `auth-source-search' integration for LDAP searches.
* net/ldap.el (ldap-search-internal): Add `auth-source-search'
integration for LDAP parameters.  The host, base, user or binddn,
and secret tokens can be specified in a netrc file, for instance.
This is optional because an `auth-source' parameter must be
specified in the search attributes.
2011-03-13 17:17:17 -05:00
Teodor Zlatanov
67613d3160 auth-source.el (auth-source-netrc-create): Show the default in the prompt when prompting for token creation. 2011-03-13 20:50:07 +00:00
Teodor Zlatanov
4248cca2de Merge changes made in Gnus trunk.
auth.texi (Help for developers): Update docs to explain that the :save-function will only run the first time.
auth-source.el (auth-source-format-prompt): Always convert the value to a string to avoid evaluating non-string arguments.
 (auth-source-netrc-create): Offer default properly, not as initial content in `read-string'.
 (auth-source-netrc-saver): Use a cache keyed by file name and MD5 hash of line to determine if we've been run before.  If so, don't run again, but print a trivial message to indicate the cache was hit instead.
2011-03-13 04:07:38 +00:00
Juanma Barranquero
9d05d1ba20 lisp/help.el (describe-mode): Link to the mode's definition.
Fixes: debbugs:8185
2011-03-13 02:57:40 +01:00
Glenn Morris
09d9db2c49 Merge from emacs-23; up to 2010-06-03T22:16:02Z!dann@ics.uci.edu 2011-03-12 11:19:47 -08:00
Juanma Barranquero
219bd53686 Fix typos. 2011-03-12 16:38:34 +01:00
Juanma Barranquero
70620cbe32 lisp/vc/vc-bzr.el (vc-bzr-state): Handle bzr 2.3.0 (follow-up to bug#8170). 2011-03-12 16:26:33 +01:00
Michael Albinus
f3afd36bad Sync with Tramp 2.2.1.
* net/tramp-sh.el (tramp-methods): Exchange "%k" marker with options.

* net/trampver.el: Update release number.
2011-03-12 16:19:29 +01:00
Michael Albinus
6efb972c00 * net/tramp.el (tramp-progress-reporter-update): Use
`tramp-compat-funcall'.
(tramp-handle-start-file-process): Use `tramp-compat-process-get'.
(tramp-handle-insert-file-contents): Make `file-remote-p' call
compatible.
(tramp-open-connection-setup-interactive-shell): Use
`tramp-compat-process-put'.

* net/tramp-compat.el (tramp-compat-process-get)
(tramp-compat-process-put): New defuns.

* net/trampver.el: Update release number.

Please do not merge with the trunk.
2011-03-12 14:26:19 +01:00
Gnus developers
a276370e0a Merge changes made in Gnus trunk.
gnus-sync.el (gnus-sync-install-hooks, gnus-sync-unload-hook): Don't install `gnus-sync-read' to any hooks by default.  It's buggy.  The user will have to run `gnus-sync-read' manually and wait for Cloudy Gnus.
mm-uu.el (mm-uu-type-alist): Add support for diff starting with "=== modified file".
2011-03-12 08:53:34 +00:00
Stefan Monnier
946425995f * lisp/progmodes/compile.el (compilation--previous-directory): Fix up
various nil/dead-marker mismatches.
(compilation-directory-properties, compilation-error-properties):
Don't call it at a position past the one we're about to change.

Fixes: debbugs:8014
2011-03-11 23:29:22 -05:00
Stefan Monnier
3aaaa6f1c9 * lisp/emacs-lisp/bytecomp.el (byte-compile-make-obsolete-variable):
Disable obsolescence warnings in the file that declares it.
2011-03-11 21:59:24 -05:00
Stefan Monnier
bb0bd45af0 * lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization
into declaration.  Remove redundant and harmful binding.
2011-03-11 21:49:29 -05:00
Ken Manheimer
14239447d3 * allout-widgets.el (allout-widgets-tally) Initialize allout-widgets-tally
as a hash table rather than nil to prevent mode-line redisplay warnings.
Also, clarify the module description and fix a comment typoo (sic).
2011-03-11 13:46:12 -05:00
Chong Yidong
5ef342304d Bump version to 23.3.50 2011-03-11 12:17:33 -05:00
Juanma Barranquero
9c5047fb4e Backport 2011-03-01T03:59:31Z!lekktu@gmail.com from trunk.
*lisp/emacs-lisp/cl-macs.el (lexical-let*): Fix argument name in docstring.
2011-03-11 16:34:07 +01:00
Juanma Barranquero
6dbf95e5b3 Backport 2011-03-11T00:33:57Z!lekktu@gmail.com from trunk.
* lisp/help-fns.el (describe-variable): Don't complete keywords.
2011-03-11 15:05:31 +01:00
Eli Zaretskii
2920e68d73 Fix comparisons of file ownership on MS-Windows for the Administrator user.
lisp/files.el (file-ownership-preserved-p): Pass `integer' as an
 explicit 2nd argument to `file-attributes'.  If the file's owner
 is the Administrators group on Windows, and the current user is
 Administrator, consider that a match.
 lisp/server.el (server-ensure-safe-dir): Consider server directory
 safe on MS-Windows if its owner is the Administrators group while
 the current Emacs user is Administrator.  Use `=' to compare
 numerical UIDs, since they could be integers or floats.
2011-03-11 14:19:08 +02:00
Juanma Barranquero
135e287cda lisp/help-fns.el (describe-variable): Don't complete keywords. 2011-03-11 01:33:57 +01:00
Chong Yidong
ba08b24186 Fix package.el handling of version numbers like 1.0pre6.
* lisp/emacs-lisp/package.el (package-version-join): Impose a standard
string representation for pre/alpha/beta version lists.
(package-unpack-single): Standardize the directory name by passing
it through package-version-join.
2011-03-10 18:40:46 -05:00
Chong Yidong
ffbf300e1e Fix package-strip-rcs-id to be more robust.
See http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00396.html

* lisp/emacs-lisp/package.el (package-strip-rcs-id): Accept any version
string that does not signal an error in version-to-list.
2011-03-10 16:51:26 -05:00
Teodor Zlatanov
f3b54b0e1e auth-source.el (auth-source-read-char-choice): Remove `dropdown-list'.
(auth-source-pick-first-password): New convenience function.
2011-03-10 13:32:49 +00:00
Michael Albinus
f346fd6b40 * simple.el (delete-trailing-whitespace): Return nil for the
benefit of `write-file-functions'.
2011-03-10 12:28:33 +01:00
Glenn Morris
5ceaac0c61 * lisp/vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program. 2011-03-10 00:32:27 -08:00
Glenn Morris
02da65ff3a Add `vc-git-program' option; suggested on emacs-devel.
* lisp/vc/vc-git.el (vc-git-program): New option.
(vc-git-branches, vc-git-pull, vc-git-merge-branch, vc-git-command)
(vc-git--call): Use it.
2011-03-10 00:26:41 -08:00
Glenn Morris
b2f603cc42 * lisp/eshell/esh-util.el (eshell-condition-case): Doc fix. 2011-03-09 23:16:04 -08:00
Glenn Morris
5772caab78 cus-edit tweak for bug#2298.
* lisp/cus-edit.el (Custom-newline): If no button at point, look for a
subgroup button at start-of-line.
2011-03-09 19:44:33 -08:00
Glenn Morris
ccb55d277a * lisp/mail/rmail.el (rmail-msgend, rmail-msgbeg): Doc fixes. 2011-03-09 19:41:17 -08:00
Julien Danjou
ec6ecaed88 Inhibit mouse-avoidance if cursor-type is nil (Bug#8209).
* lisp/avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
`cursor-type' is nil.
2011-03-09 21:14:55 -05:00
Jay Belanger
9d5aa01d30 * calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'. 2011-03-09 17:38:16 -06:00
Ken Manheimer
b6a5875b6a * allout.el Summary: Change so yank of distinctive-bullet items preserves
the existing header prefix, rebulleting it if necessary, rather than
replacing it.  This is necessary for proper operation of cooperative addons
like allout-widgets.

(allout-make-topic-prefix) (allout-rebullet-heading): Change SOLICIT arg to
INSTEAD, and interpret additionally a string value as alternate bullet to
be used, instead of prompting the user for a bullet character.
2011-03-09 15:48:56 -05:00
Teodor Zlatanov
733afdf4d9 Merge changes made in Gnus trunk.
auth-source.el (auth-source-read-char-choice): New function to read a character choice using `dropdown-list', `read-char-choice', or `read-char'.  It appends "[a/b/c] " to the prompt if the choices were '(?a ?b ?c).  The `dropdown-list' support is disabled for now.  Use `eval-when-compile' to load `dropdown-list'.
 (auth-source-netrc-saver): Use it.
nnimap.el (nnimap-credentials): Keep the :save-function as the third parameter in the credentials.
 (nnimap-open-connection-1): Use it after a successful login.
 (nnimap-credentials): Add IMAP-specific user and password prompt.
auth-source.el (auth-source-search): Add :require parameter, taking a list.  Document it and the :save-function return token.  Pass :require down.  Change the CREATED message from a warning to a debug statement.
 (auth-source-search-backends): Pass :require down.
 (auth-source-netrc-search): Pass :require down.
 (auth-source-netrc-parse): Use :require, if it's given, as a filter.  Change save prompt to indicate all modifications saved here are deletions.
 (auth-source-netrc-create): Take user login name as default in user prompt.  Move all the save functionality to a lexically bound function under the :save-function token in the returned list.  Set up clearer default prompts for user, host, port, and secret.
 (auth-source-netrc-saver): New function, intended to be wrapped for :save-function.
2011-03-09 13:39:35 +00:00
Michael Albinus
ee545c35d2 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Do
not use `tramp-file-name-port', because this returns also
`tramp-default-port'.
2011-03-09 12:04:27 +01:00
Deniz Dogan
c47971d7a3 * lisp/net/rcirc.el (rcirc-handler-001): Remove useless
with-rcirc-process-buffer.
(rcirc-check-auth-status): Swap arguments to string-match.
2011-03-09 11:45:19 +01:00
Glenn Morris
0be6f4f187 * shell.el (shell-mode): Set comint-input-ring-size from HISTSIZE. (Bug#7889) 2011-03-09 01:01:14 -08:00
Glenn Morris
791cd3860e Fix previous gdb-mi fix... 2011-03-09 00:57:40 -08:00
Glenn Morris
1289e5d3f5 Fix previous gdb-mi change. 2011-03-09 00:55:08 -08:00
Glenn Morris
13522cb4cd gdb-mi addition for bug#7889.
* lisp/progmodes/gdb-mi.el (gdb): Improve 2010-12-08 change.
Check for GDBHISTFILE, HISTSIZE, etc.
2011-03-09 00:43:27 -08:00
Chong Yidong
515de2e321 Use condition-case-no-debug in package.el.
* lisp/emacs-lisp/package.el (package-refresh-contents)
(package-menu-execute): Use condition-case-no-debug.
2011-03-08 12:11:19 -05:00
Gnus developers
a505754642 Merge changes made in Gnus trunk.
message.texi (Message Buffers): Update default value of message-generate-new-buffers.
shr.el (shr-table-horizontal-line): Change the defaults for the table lines to be spaces instead.
sieve-manage.el (sieve-sasl-auth): Create auth-info if not found.
 (sieve-sasl-auth): Check that auth-source-search did return something, or just return an empty string.
gnus-start.el (gnus-group-change-level): Allow putting foreign groups onto the list of killed groups, too.  This makes killed nnimap groups, for instance, more reliably not reappear.
nnimap.el (nnimap-request-thread): Don't bug out when we can't find the parent.
2011-03-08 14:26:05 +00:00
Michael Albinus
b511b994ae * simple.el (shell-command-to-string): Use `process-file'.
* emacs-lisp/package.el (package-tar-file-info): Handle also
remote files.

* emacs-lisp/package-x.el (package-upload-buffer-internal): Use
`equal' for upload base check.
2011-03-08 13:58:40 +01:00
Arni Magnusson
25bbfb31d5 texinfo.el addition for bug#2783.
* lisp/textmodes/texinfo.el (texinfo-environments):
Add deftypecv, deftypeivar, deftypemethod, deftypeop, html.
2011-03-07 20:42:40 -08:00
Glenn Morris
e9c8529f6a cus-start.el fix for bug#8192.
* lisp/cus-start.el (cursor-in-non-selected-windows):
Fix :set quoting oddness.
2011-03-07 20:34:31 -08:00
Glenn Morris
be99652196 font-lock.el tweak for bug#2159.
* lisp/font-lock.el (lisp-font-lock-keywords-1):
Don't highlight `)' in some setf expressions.
2011-03-07 20:28:14 -08:00
Chong Yidong
2bb5649ecc * lisp/custom.el (custom-available-themes): Return themes in alphabetical order. 2011-03-07 21:49:20 -05:00
Chong Yidong
7600cf4599 Fix a cc-cmds.el patch from acm that I applied incorrectly (Bug#7595).
* lisp/progmodes/cc-cmds.el (c-beginning-of-statement): Fix incorrect
application of patch from Alan Mackenzie (Bug#7595).
2011-03-07 15:29:03 -05:00
Chong Yidong
1df1040bf8 Fix 2011-01-31 change; patch supplied by acm was applied incorrectly.
* lisp/progmodes/cc-cmds.el (c-beginning-of-statement): Fix 2011-01-31
change; patch supplied by Alan Mackenzie was applied incorrectly.
2011-03-07 15:05:53 -05:00
Deniz Dogan
fa7062f653 * lisp/net/rcirc.el (rcirc-connect): Fix PASS bug. 2011-03-07 13:03:22 +01:00
Glenn Morris
7e319d3cc3 vc.el fix for bug#6146.
* lisp/vc/vc.el (vc-next-action): Add missing space to y-or-n-p prompt.
Give an explicit error if failed to make writable.
2011-03-07 00:56:30 -08:00
Glenn Morris
619f4b625e * lisp/vc/vc.el (vc-next-action): Add missing space to y-or-n-p prompt. 2011-03-07 00:39:43 -08:00