1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-07 20:54:32 +00:00

98907 Commits

Author SHA1 Message Date
Eli Zaretskii
00030ef0b6 Fix dependencies following 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.
lib-src/Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.
2011-02-26 10:36:56 +02:00
Eli Zaretskii
a54af40e14 Fix the MS-Windows build after 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.
emacsclient.c (xstrdup) [WINDOWSNT]: Function added back.
 (w32_getenv): Use xstrdup to return all values in malloc'ed
 storage.
2011-02-26 09:44:38 +02:00
Paul Eggert
ae3f8fbfc3 Merge: lib-src changes mostly to avoid GCC warnings 2011-02-25 21:54:36 -08:00
Paul Eggert
9e1b7fe6be * ebrowse.c (BROWSE_STRUCT): Remove unused macro. 2011-02-25 21:43:51 -08:00
Paul Eggert
6c0668d97b * ebrowse.c (parse_qualified_param_ident_or_type): Make it clear
to reader (and to the compiler) that the loop always executes at
least once.  This prevents a warning with recent GCC.
2011-02-25 21:41:42 -08:00
Paul Eggert
a4fe4e890a * fakemail.c: Include <ignore-value.h>.
(put_line): Explicitly ignore fwrite return value, for benefit of
recent glibc + gcc.
(close_the_streams): Diagnose output errors instead of merely
exiting with nonzero status.
(my_fclose, main): Diagnose input errors, and exit with nonzero status.
Formerly, input errors were silently ignored.
2011-02-25 21:36:51 -08:00
Paul Eggert
70279bd1cb * ebrowse.c (insert_keyword): Rename parameter to avoid shadowing diagnostic. 2011-02-25 16:23:33 -08:00
Paul Eggert
34e6d7823a * ebrowse.c (putstr): Rename from PUTSTR and turn into a function.
All callers changed.  This is cleaner, and avoids GCC warnings about
passing NULL to fputs.
2011-02-25 16:22:13 -08:00
Juanma Barranquero
413e646877 lisp/ChangeLog: Fix typos. 2011-02-26 01:18:16 +01:00
Paul Eggert
4be3dfc5e3 * emacsclient.c (IF_LINT): New macro.
(set_local_socket, main): Use it to suppress warnings with
GCC -Wuninitialized.
2011-02-25 16:17:02 -08:00
Paul Eggert
b9170155fb * emacsclient.c (xstrdup): Remove; no longer needed.
(get_current_dir_name, w32_getenv, get_server_config, find_tty):
(set_local_socket, main):
Use const char *, not char *, for pointers that are not assigned
through.
2011-02-25 15:55:06 -08:00
Teodor Zlatanov
61e9662ef5 Merge changes made in Gnus trunk.
auth-source.el (auth-source-search): Cache empty result sets.
password-cache.el (password-in-cache-p): Convenience function to check if a key is in the cache, even if the value is nil.
2011-02-25 23:52:19 +00:00
Paul Eggert
7e6bb4c94c * emacsclient.c (main): Avoid dangling 'if'. 2011-02-25 15:39:18 -08:00
Paul Eggert
b0bbc07d9a * emacsclient.c: Redo local variables to avoid shadowing problems.
(message, socket_status, start_daemon_and_retry_set_socket):
Rename locals.
(main): Move decl of "i".
2011-02-25 15:35:16 -08:00
Paul Eggert
3f5e6230d7 * etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
This avoids an unused-macro warning with some GCC settings.
2011-02-25 15:26:55 -08:00
Paul Eggert
8dfa32f6a5 * make-docfile.c (scan_c_file): Refactor local variable decls to make their scope
more accurate and to avoid a GCC -Wuninitialized diagnostic.
2011-02-25 14:21:01 -08:00
Paul Eggert
564ff1f20c * make-docfile.c (write_globals): Change char * to char const *
to avoid a GCC "assignment discards qualifiers" diagnostic
in some configurations.
2011-02-25 14:05:43 -08:00
Paul Eggert
d9d0d182da * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
generate a special message for it.  Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
2011-02-25 13:20:06 -08:00
Paul Eggert
36f13e1667 Simplify symlink portability workaround. 2011-02-25 12:05:36 -08:00
Paul Eggert
4ad8955513 * src/dired.c: Add comment and code explaining magic number. 2011-02-25 11:08:18 -08:00
Jambunathan K
7fe42546dd Fix package uploading for newly made or local archives.
* emacs-lisp/package-x.el (package--archive-contents-from-url)
(package--archive-contents-from-file): New functions.
(package-update-news-on-upload): New var.
(package-upload-buffer-internal): Extract archive-contents from
package-archive-upload-base if it is not found at archive-url.
Obey package-update-news-on-upload.
(package-upload-buffer, package-upload-file): Doc fix.
2011-02-25 13:30:00 -05:00
Gnus developers
003522ceb6 Merge changes made in Gnus trunk.
auth-source.el (auth-source-save-behavior): New variable to replace `auth-source-never-create'.
 (auth-source-netrc-create): Use it.
 (auth-source-never-save): Remove.
nnimap.el (nnimap-stream): Doc fix.
 (nnimap-open-connection-1): Reverse the order of the ports to that the prompted-for port is first.
gnus-start.el (gnus-get-unread-articles): Don't clobber the async retrieval by the no-group selection.
gnus-demon.el (gnus-demon-init): run-with-timer should be called with numerical parameters.
auth-source.el (auth-source-creation-prompts): New variable to manage creation-time prompts.
 (auth-source-search): Document it.
 (auth-source-format-prompt): Add utility function.
 (auth-source-netrc-create): Don't default the user name to user-login-name.  Use `auth-source-creation-prompts' and some default prompts for user, host, port, and password (the default generic prompt remains ugly).
 (auth-source-never-save): Add customizable option to never save info.
 (auth-source-netrc-create): Use it and improve save prompts.  Fix help mode excursion.
2011-02-25 12:53:00 +00:00
Eli Zaretskii
116b6d3875 Fix bug #8096 with "regexp search" indexing.
search.texi (Regexp Search): Move index entries about regexps to the
 "Regexps" node.  Add index entries for regexp search.
2011-02-25 13:30:47 +02:00
Paul Eggert
d3af8a57b4 Elaborate my most-recent ChangeLog entry. 2011-02-25 02:03:28 -08:00
Glenn Morris
081f76404c Doc fix for bug#3577.
* doc/lispref/variables.texi (Directory Local Variables):
Mention the optional mtime argument of dir-locals-set-directory-class.
2011-02-24 23:59:40 -08:00
Paul Eggert
4394ee0474 Merge from mainline. 2011-02-24 23:36:37 -08:00
Paul Eggert
9411886d38 Regenerate. 2011-02-24 23:23:41 -08:00
Paul Eggert
a07b892ff1 Merge from mainline. 2011-02-24 22:42:06 -08:00
Paul Eggert
b18947669c * dired.c (Ffile_attributes): Increase size of modes from 10 to 12 2011-02-24 22:30:50 -08:00
Glenn Morris
6a88f031c8 Yet more directory-local variables fixes.
* lisp/files-x.el (modify-dir-local-variable): Handle dir-locals from
the cache, and from non-file sources.
2011-02-24 00:45:25 -08:00
Glenn Morris
303f9ae014 Fix for another bit of bug#8095, re dir-locals.
* lisp/help-fns.el (describe-variable): Return consistent results when a
dir-local from a file came from the cache or did not.
If a dir-local has no associated file, say it came from a "directory".
2011-02-24 00:26:25 -08:00
Glenn Morris
07915ed93c More dir-locals fixes for files.el.
* lisp/files.el (hack-local-variables-confirm, hack-local-variables-filter):
Doc fix (say _which_ directory `dir-name' is).
(hack-dir-local-variables): Fix setting of `dir-name'.
Previous value seems clearly wrong.  Eg put a risky variable in a
dir-locals file, visit a file in a subdirectory, see which directory
it says the risky variables come from.  It should be the one with the
associated directory variables, not the one containing the visited file.
2011-02-24 00:02:45 -08:00
Glenn Morris
ebe401f697 Partial fix for bug#8095.
* lisp/files.el (dir-locals-find-file): Doc fix.
Fix the check for cache elements that have no associated file,
and the mtime check for those that do.

Still to do: some places that use dir-locals-find-file assume the
result is always a file, which is not true. (The function name is
misleading.)
2011-02-23 23:47:06 -08:00
Katsumi Yamaoka
a22e7484fa auth-source.el (auth-source-netrc-create): Use `read-char' with no argument that XEmacs doesn't support. 2011-02-24 06:32:33 +00:00
Glenn Morris
1e8dbdc6e8 Replace some obsolete autoconf syntax.
* configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(),
AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments.
2011-02-23 20:28:17 -08:00
Glenn Morris
b36f2f1cb8 Dired-X fix for bug#5216.
* lisp/dired-x.el (dired-hack-local-variables):
Handle interrupts during hacking local variables.
2011-02-23 19:59:04 -08:00
Glenn Morris
3cbbfdc34f * admin/notes/bzr: Small updates. 2011-02-23 19:56:36 -08:00
Glenn Morris
2d8a57efcb Avoid some possible prompts from autoloads.el.
* lisp/emacs-lisp/autoload.el (autoload-save-buffers)
(autoload-find-destination, update-directory-autoloads):
Avoid prompts when updating autoloads.
2011-02-23 19:53:27 -08:00
Gnus developers
fa41748c14 Merge changes made in Gnus trunk.
gnus-art.el (article-make-date-line): Ignore errors if time is invalid and not convertible.
 (article-make-date-line): Only add lapsed time if time is not nil.
auth-source.el (auth-source-netrc-element-or-first): New function to DTRT for parameter extraction.
 (auth-source-netrc-create): Use it and fix multiple parameter print bug.  Use the default passed from above (given-default) or the built-in (user-login-name for :user).
2011-02-23 22:59:34 +00:00
Ben Key
2c6584e817 Fix handling of bar cursors in NS terminal.
* nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
directly, for bar cursors.

* xdisp.c (set_frame_cursor_types): Don't write an undefined value
into the frame's cursor_width.
2011-02-23 15:41:43 -05:00
Juanma Barranquero
8307f92370 Fix typos. 2011-02-23 20:56:30 +01:00
Stefan Monnier
53cfe624fc * lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete. 2011-02-23 10:22:28 -05:00
Stefan Monnier
617a0e834a * src/print.c (print_object): Never print old-style backquotes.
Obey escapeflag for hash tables as well.
2011-02-23 10:14:21 -05:00
Teodor Zlatanov
d41d18c098 auth-source.el (auth-source-netrc-create): Use read-char' instead of read-char-choice' for backwards compatibility. 2011-02-23 14:34:44 +00:00
Gnus developers
4a3988d518 Merge changes made in Gnus trunk.
auth.texi (Help for users): Mention ~/.netrc is also searched by default now.
gnus-start.el (gnus-dribble-read-file): Set buffer-save-without-query, since we always want to save the dribble file, probably.
nnmail.el (nnmail-article-group): Allow a final "" split to work on nnimap.
gnus-sum.el (gnus-user-date-format-alist): Renamed back again from -summary- since it's a user-visible variable.
nnimap.el (nnimap-retrieve-group-data-early): Don't do QRESYNC the first time you use the new Gnus.
auth-source.el: Don't load netrc.el.
 (auth-sources): Search ~/.netrc as well by default.
 (auth-source-debug): Add 'trivia option for extra output.
 (auth-source-do-trivia): Use it.
 (auth-source-search): Simplify logic to use `auth-source-search-backends'.  Use `auth-source-do-trivia' where appropriate.  Don't keep a running count at this level.  Layer :create and :delete options appropriately on the first and second passes.  Don't track the backend with the search results.
 (auth-source-search-backends): New function to search a list of backends for a processed spec.
 (auth-source-netrc-parse): Cache all netrc files, making auth-source-netrc-cache an alist keyed by the file name and using the file mtime as the caching criterion.  Keep the obfuscated data secret with a lexical bind.
 (auth-source-netrc-search): Don't calculate the length of the results unnecessarily.
 (auth-source-search-backends): Fix bug.
 (auth-source-netrc-create): Rework prompts.
nnir.el (nnir-imap-search-arguments,nnir-imap-default-search-key): Lower case names of search constraints.
 (nnir-run-query): Cache and reuse search constraints for all imap servers.
gnus-msg.el (gnus-setup-message): Define missing variable from last checkin.
2011-02-23 13:35:35 +00:00
Juanma Barranquero
f1cffc3d52 lisp/org/org-table.el: Fix typos in docstrings. 2011-02-23 12:25:29 +01:00
Glenn Morris
0d327994db Fix some mis-spellings of "precede" that are not in emacs-23 branch. 2011-02-22 23:27:09 -08:00
Glenn Morris
6e81c8191f Fix typo "comand". 2011-02-22 23:15:55 -08:00
Glenn Morris
97610156f4 Fix spelling of "precede". 2011-02-22 23:08:12 -08:00
Glenn Morris
61cf3a767d * doc/misc/dbus.texi (Type Conversion): Grammar fix. 2011-02-22 23:03:27 -08:00