bpt/emacs.git
13 years ago* fakemail.c: Include <ignore-value.h>.
Paul Eggert [Sat, 26 Feb 2011 05:36:51 +0000 (21:36 -0800)]
* 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.

13 years ago* ebrowse.c (insert_keyword): Rename parameter to avoid shadowing diagnostic.
Paul Eggert [Sat, 26 Feb 2011 00:23:33 +0000 (16:23 -0800)]
* ebrowse.c (insert_keyword): Rename parameter to avoid shadowing diagnostic.

13 years ago* ebrowse.c (putstr): Rename from PUTSTR and turn into a function.
Paul Eggert [Sat, 26 Feb 2011 00:22:13 +0000 (16:22 -0800)]
* 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.

13 years ago* emacsclient.c (IF_LINT): New macro.
Paul Eggert [Sat, 26 Feb 2011 00:17:02 +0000 (16:17 -0800)]
* emacsclient.c (IF_LINT): New macro.

(set_local_socket, main): Use it to suppress warnings with
GCC -Wuninitialized.

13 years ago* emacsclient.c (xstrdup): Remove; no longer needed.
Paul Eggert [Fri, 25 Feb 2011 23:55:06 +0000 (15:55 -0800)]
* 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.

13 years ago* emacsclient.c (main): Avoid dangling 'if'.
Paul Eggert [Fri, 25 Feb 2011 23:39:18 +0000 (15:39 -0800)]
* emacsclient.c (main): Avoid dangling 'if'.

13 years ago* emacsclient.c: Redo local variables to avoid shadowing problems.
Paul Eggert [Fri, 25 Feb 2011 23:35:16 +0000 (15:35 -0800)]
* 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".

13 years ago* etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
Paul Eggert [Fri, 25 Feb 2011 23:26:55 +0000 (15:26 -0800)]
* etags.c (ISUPPER): Move to inside the only #ifdef where it's used.

This avoids an unused-macro warning with some GCC settings.

13 years ago* make-docfile.c (scan_c_file): Refactor local variable decls to make their scope
Paul Eggert [Fri, 25 Feb 2011 22:21:01 +0000 (14:21 -0800)]
* make-docfile.c (scan_c_file): Refactor local variable decls to make their scope

more accurate and to avoid a GCC -Wuninitialized diagnostic.

13 years ago* make-docfile.c (write_globals): Change char * to char const *
Paul Eggert [Fri, 25 Feb 2011 22:05:43 +0000 (14:05 -0800)]
* make-docfile.c (write_globals): Change char * to char const *

to avoid a GCC "assignment discards qualifiers" diagnostic
in some configurations.

13 years ago* src/dired.c: Add comment and code explaining magic number.
Paul Eggert [Fri, 25 Feb 2011 19:08:18 +0000 (11:08 -0800)]
* src/dired.c: Add comment and code explaining magic number.

13 years agoFix package uploading for newly made or local archives.
Jambunathan K [Fri, 25 Feb 2011 18:30:00 +0000 (13:30 -0500)]
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.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Fri, 25 Feb 2011 12:53:00 +0000 (12:53 +0000)]
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.

13 years agoElaborate my most-recent ChangeLog entry.
Paul Eggert [Fri, 25 Feb 2011 10:03:28 +0000 (02:03 -0800)]
Elaborate my most-recent ChangeLog entry.

13 years agoRegenerate.
Paul Eggert [Fri, 25 Feb 2011 07:23:41 +0000 (23:23 -0800)]
Regenerate.

13 years ago* dired.c (Ffile_attributes): Increase size of modes from 10 to 12
Paul Eggert [Fri, 25 Feb 2011 06:30:50 +0000 (22:30 -0800)]
* dired.c (Ffile_attributes): Increase size of modes from 10 to 12

13 years agoYet more directory-local variables fixes.
Glenn Morris [Thu, 24 Feb 2011 08:45:25 +0000 (00:45 -0800)]
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.

13 years agoFix for another bit of bug#8095, re dir-locals.
Glenn Morris [Thu, 24 Feb 2011 08:26:25 +0000 (00:26 -0800)]
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".

13 years agoMore dir-locals fixes for files.el.
Glenn Morris [Thu, 24 Feb 2011 08:02:45 +0000 (00:02 -0800)]
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.

13 years agoPartial fix for bug#8095.
Glenn Morris [Thu, 24 Feb 2011 07:47:06 +0000 (23:47 -0800)]
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.)

13 years agoauth-source.el (auth-source-netrc-create): Use `read-char' with no argument that...
Katsumi Yamaoka [Thu, 24 Feb 2011 06:32:33 +0000 (06:32 +0000)]
auth-source.el (auth-source-netrc-create): Use `read-char' with no argument that XEmacs doesn't support.

13 years agoReplace some obsolete autoconf syntax.
Glenn Morris [Thu, 24 Feb 2011 04:28:17 +0000 (20:28 -0800)]
Replace some obsolete autoconf syntax.

* configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(),
AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments.

13 years agoDired-X fix for bug#5216.
Glenn Morris [Thu, 24 Feb 2011 03:59:04 +0000 (19:59 -0800)]
Dired-X fix for bug#5216.

* lisp/dired-x.el (dired-hack-local-variables):
Handle interrupts during hacking local variables.

13 years ago* admin/notes/bzr: Small updates.
Glenn Morris [Thu, 24 Feb 2011 03:56:36 +0000 (19:56 -0800)]
* admin/notes/bzr: Small updates.

13 years agoAvoid some possible prompts from autoloads.el.
Glenn Morris [Thu, 24 Feb 2011 03:53:27 +0000 (19:53 -0800)]
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.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 23 Feb 2011 22:59:34 +0000 (22:59 +0000)]
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).

13 years agoFix handling of bar cursors in NS terminal.
Ben Key [Wed, 23 Feb 2011 20:41:43 +0000 (15:41 -0500)]
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.

13 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete.
Stefan Monnier [Wed, 23 Feb 2011 15:22:28 +0000 (10:22 -0500)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete.

13 years ago* src/print.c (print_object): Never print old-style backquotes.
Stefan Monnier [Wed, 23 Feb 2011 15:14:21 +0000 (10:14 -0500)]
* src/print.c (print_object): Never print old-style backquotes.
Obey escapeflag for hash tables as well.

13 years agoauth-source.el (auth-source-netrc-create): Use `read-char' instead of `read-char...
Teodor Zlatanov [Wed, 23 Feb 2011 14:34:44 +0000 (14:34 +0000)]
auth-source.el (auth-source-netrc-create): Use `read-char' instead of `read-char-choice' for backwards compatibility.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 23 Feb 2011 13:35:35 +0000 (13:35 +0000)]
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.

13 years agoFix some mis-spellings of "precede" that are not in emacs-23 branch.
Glenn Morris [Wed, 23 Feb 2011 07:27:09 +0000 (23:27 -0800)]
Fix some mis-spellings of "precede" that are not in emacs-23 branch.

13 years ago* etc/NEWS: Typo fixes.
Glenn Morris [Wed, 23 Feb 2011 04:47:11 +0000 (20:47 -0800)]
* etc/NEWS: Typo fixes.

13 years ago* etc/NEWS: Remove some sql-stuff that is not NEWS-worthy.
Glenn Morris [Wed, 23 Feb 2011 04:37:53 +0000 (20:37 -0800)]
* etc/NEWS: Remove some sql-stuff that is not NEWS-worthy.

13 years agoComment spelling fix.
Glenn Morris [Wed, 23 Feb 2011 04:27:42 +0000 (20:27 -0800)]
Comment spelling fix.

13 years ago* admin/notes/bzr: More details about merging ChangeLogs.
Glenn Morris [Wed, 23 Feb 2011 04:24:13 +0000 (20:24 -0800)]
* admin/notes/bzr: More details about merging ChangeLogs.

13 years agoMerge from emacs-23; up to 2010-06-02T00:10:42Z!yamaoka@jpl.org.
Glenn Morris [Wed, 23 Feb 2011 04:19:28 +0000 (20:19 -0800)]
Merge from emacs-23; up to 2010-06-02T00:10:42Z!yamaoka@jpl.org.

13 years agoRemove pointless setting of byte-compile-dynamic in tiny, tiny file.
Glenn Morris [Wed, 23 Feb 2011 04:00:52 +0000 (20:00 -0800)]
Remove pointless setting of byte-compile-dynamic in tiny, tiny file.

13 years agoAdd comments about fixing dates in merged ChangeLogs.
Glenn Morris [Wed, 23 Feb 2011 03:50:04 +0000 (19:50 -0800)]
Add comments about fixing dates in merged ChangeLogs.

13 years agoObsolete dired-x's directory local variables in favor of standard ones.
Glenn Morris [Wed, 23 Feb 2011 03:44:13 +0000 (19:44 -0800)]
Obsolete dired-x's directory local variables in favor of standard ones.

* lisp/dired.el (dired-mode): Call hack-dir-local-variables-non-file-buffer.

* lisp/dired-x.el (dired-omit-mode): Safe if boolean.
(dired-enable-local-variables): Fix doc and custom type.  Mark risky.
(dired-enable-local-variables, dired-local-variables-file)
(dired-hack-local-variables): Make obsolete.
(dired-omit-here-always): Use dir-locals.el instead.

* doc/misc/dired-x.texi (Features): Don't advertise obsolete local variables.
Simplify layout.
(Omitting Variables): Update local variables example.
(Local Variables): Say this is obsolete.  Fix description of
dired-enable-local-variables possible values.

* etc/NEWS: Relocate the existing entry about directory local
variables in file-les buffers, and make it clearer.
Mention above dired changes.

13 years ago* doc/misc/dired-x.texi (Features, Local Variables): Fix typos.
Glenn Morris [Wed, 23 Feb 2011 03:32:42 +0000 (19:32 -0800)]
* doc/misc/dired-x.texi (Features, Local Variables): Fix typos.
(Features): Minor rephrasing.

13 years ago* lisp/files.el (safe-local-eval-forms): Add the write-file-hooks version.
Glenn Morris [Wed, 23 Feb 2011 03:24:23 +0000 (19:24 -0800)]
* lisp/files.el (safe-local-eval-forms): Add the write-file-hooks version.

This obsolete form is still supported, and present in some of the
files synced from gnulib, for example.

13 years agomail/rmailmm.el (rmail-mime-process-multipart): Do not signal an error when a multipa...
Kenichi Handa [Wed, 23 Feb 2011 02:32:35 +0000 (11:32 +0900)]
mail/rmailmm.el (rmail-mime-process-multipart): Do not signal an error when a multipart boundary in the nested multipart is found.

13 years agomerge emacs-23
Kenichi Handa [Wed, 23 Feb 2011 01:56:49 +0000 (10:56 +0900)]
merge emacs-23

13 years ago* lisp/gnus/gnus-msg.el (gnus-setup-message): Also bind `winconf-name'.
Sam Steingold [Tue, 22 Feb 2011 20:08:00 +0000 (15:08 -0500)]
* lisp/gnus/gnus-msg.el (gnus-setup-message): Also bind `winconf-name'.

13 years ago* dired.c (Ffile_attributes): Simplify and avoid #ifdef.
Paul Eggert [Tue, 22 Feb 2011 18:32:51 +0000 (10:32 -0800)]
* dired.c (Ffile_attributes): Simplify and avoid #ifdef.

13 years ago* lisp/help-fns.el (describe-function-1): Don't signal an error just because
Stefan Monnier [Tue, 22 Feb 2011 18:22:04 +0000 (13:22 -0500)]
* lisp/help-fns.el (describe-function-1): Don't signal an error just because
the DOC file disappeared.

13 years agoFix 2011-02-22T17:37:06Z!eggert@cs.ucla.edu.
Eli Zaretskii [Tue, 22 Feb 2011 18:08:53 +0000 (20:08 +0200)]
Fix 2011-02-22T17:37:06Z!eggert@cs.ucla.edu.

 etags.c (canonicalize_filename, ISUPPER): Fix last change.

13 years ago* src/lread.c (openp): Correct Boolean typo in last commit.
Wolfgang Jenkner [Tue, 22 Feb 2011 18:02:11 +0000 (13:02 -0500)]
* src/lread.c (openp): Correct Boolean typo in last commit.

13 years agoMS-Windows part of 2011-02-21T23:22:34Z!eggert@cs.ucla.edu, addition of min-max.h.
Eli Zaretskii [Tue, 22 Feb 2011 17:51:38 +0000 (19:51 +0200)]
MS-Windows part of 2011-02-21T23:22:34Z!eggert@cs.ucla.edu, addition of min-max.h.

 lib-src/makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)): Depend
 on ../lib/min-max.h.

13 years agoetags: Downcase drive letters, for consistency with Emacs proper.
Paul Eggert [Tue, 22 Feb 2011 17:37:06 +0000 (09:37 -0800)]
etags: Downcase drive letters, for consistency with Emacs proper.

* etags.c (upcase): Remove; no longer used.
(canonicalize_filename): Downcase drive letters.

13 years ago* nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified key to emacs, treat...
Adrian Robert [Tue, 22 Feb 2011 14:13:54 +0000 (16:13 +0200)]
* nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified key to emacs, treat as unmodified (go to input manager processing).

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 22 Feb 2011 13:31:15 +0000 (13:31 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Article Date): Clarify gnus-article-update-date-headers.
gnus-msg.el (gnus-inews-add-send-actions): Restore the winconf name after exit.
gnus-sum.el (gnus-summary-show-article): When called with t as the value, show the raw article.
nnimap.el (nnimap-open-connection-1): Revert last change, since auth-source now accepts numbers.
auth-source.el (auth-source-netrc-parse): Accept a number as the port spec, too.
 (auth-source-ensure-strings): New function.
gnus-art.el (gnus-article-update-date-headers): Doc fix.
 (gnus-article-setup-buffer): Always restart the date timer so that user changes to the frequency is respected.
nnimap.el (nnimap-open-connection-1): auth-source expects strings as port numbers, so make sure it gets that if nnimap-server-port is explicit.
nnimap.el (nnimap-inbox): Doc fix.

13 years agosrc/ChangeLog: Fix typos.
Juanma Barranquero [Tue, 22 Feb 2011 13:27:23 +0000 (14:27 +0100)]
src/ChangeLog: Fix typos.

13 years ago* eshell/esh-ext.el (eshell-external-command): Do not restrict
Michael Albinus [Tue, 22 Feb 2011 05:50:25 +0000 (06:50 +0100)]
* eshell/esh-ext.el (eshell-external-command): Do not restrict
remote check to "ftp".  (Bug#8089)

13 years agoMerge: Assume S_ISLNK etc. work, since gnulib supports this.
Paul Eggert [Tue, 22 Feb 2011 01:58:44 +0000 (17:58 -0800)]
Merge: Assume S_ISLNK etc. work, since gnulib supports this.

13 years agoFix font size handling.
Kenichi Handa [Tue, 22 Feb 2011 01:58:03 +0000 (10:58 +0900)]
Fix font size handling.

13 years ago[ChangeLog]
Paul Eggert [Tue, 22 Feb 2011 01:55:20 +0000 (17:55 -0800)]
[ChangeLog]

Assume S_ISLNK etc. work, since gnulib supports this.
* Makefile.in (GNULIB_MODULES): Add sys_stat.
* configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
* configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
[lib-src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* etags.c (S_ISREG): Remove.
[src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* config.in: Regenerate.
* dired.c (lstat): Remove.
(file_name_completion): Assume S_ISDIR works.
(file_name_completion_stat): Assume S_ISLNK works.
Do not bother calling stat unless lstat says it's a symlink.
* fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
(Fcopy_file): Assume S_ISREG and S_ISLNK work.
(check_writable, Ffile_writable_p, Fset_file_times):
Assume S_ISDIR works.
(Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
fifos exist.
(Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
* filelock.c (S_ISLNK): Remove.
* lread.c (openp): Assume S_ISDIR works.
* xrdb.c (S_ISDIR): Remove.

13 years agomerge emacs-23
Kenichi Handa [Tue, 22 Feb 2011 01:51:16 +0000 (10:51 +0900)]
merge emacs-23

13 years agoIn rmail, decode "encoded-words" of header components on replying.
Kenichi Handa [Tue, 22 Feb 2011 01:49:06 +0000 (10:49 +0900)]
In rmail, decode "encoded-words" of header components on replying.

13 years agoadmin/notes/bugtracker (bugtracker_debbugs_url): Fix typo.
Juanma Barranquero [Tue, 22 Feb 2011 01:04:16 +0000 (02:04 +0100)]
admin/notes/bugtracker (bugtracker_debbugs_url): Fix typo.

13 years agolib-src/makefile.w32-in (obj): Remove filemode.o.
Juanma Barranquero [Tue, 22 Feb 2011 00:49:54 +0000 (01:49 +0100)]
lib-src/makefile.w32-in (obj): Remove filemode.o.

13 years agomerge emacs-23
Kenichi Handa [Tue, 22 Feb 2011 00:22:09 +0000 (09:22 +0900)]
merge emacs-23

13 years agoDecode "encoded-words" of header components on replying.
Kenichi Handa [Tue, 22 Feb 2011 00:19:08 +0000 (09:19 +0900)]
Decode "encoded-words" of header components on replying.

13 years ago* movemail.c: Define macros only in needed contexts.
Paul Eggert [Tue, 22 Feb 2011 00:11:56 +0000 (16:11 -0800)]
* movemail.c: Define macros only in needed contexts.

13 years ago* Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.
Paul Eggert [Tue, 22 Feb 2011 00:08:53 +0000 (16:08 -0800)]
* Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.

13 years agoMerge from mainline.
Paul Eggert [Mon, 21 Feb 2011 23:46:32 +0000 (15:46 -0800)]
Merge from mainline.

13 years ago[ChangeLog]
Paul Eggert [Mon, 21 Feb 2011 23:22:34 +0000 (15:22 -0800)]
[ChangeLog]

* lib/min-max.h: New file, for "min" and "max".
[lib-src/ChangeLog]
New file "lib/min-max.h".
* ebrowse.c (min, max): Define them by including <min-max.h>
instead of defining it ourselves.
* pop.c (min): Likewise.

13 years ago* test-distrib.c (buf): Make this local, to avoid shadowing.
Paul Eggert [Mon, 21 Feb 2011 23:15:17 +0000 (15:15 -0800)]
* test-distrib.c (buf): Make this local, to avoid shadowing.

13 years ago* movemail.c (popmail): Report fchown failure instead of ignoring it.
Paul Eggert [Mon, 21 Feb 2011 22:31:55 +0000 (14:31 -0800)]
* movemail.c (popmail): Report fchown failure instead of ignoring it.

But if the file already has the right ownership, don't worry about it.

13 years ago(c-state-literal-at): Prevent positions in macros finding their way into
Alan Mackenzie [Mon, 21 Feb 2011 21:25:35 +0000 (21:25 +0000)]
(c-state-literal-at): Prevent positions in macros finding their way into
c-state-nonlit-pos-cache.  Strengthen the comments.

(c-state-dump): New commented out diagnostic routine.

13 years agoAdd stdint.h for MS-Windows.
Christoph Scholtes [Mon, 21 Feb 2011 20:16:43 +0000 (22:16 +0200)]
Add stdint.h for MS-Windows.

 nt/inc/stdint.h: New file, to support compilation with tool chains
 that do not have stdint.h (e.g. MSVC).
 lib/makefile.w32-in: ($(BLD)/md5.$(O)): Added dependency on
 $(EMACS_ROOT)/nt/inc/stdint.h.

13 years agoAdapt MS-Windows build to import of filemode.c from gnulib.
Eli Zaretskii [Mon, 21 Feb 2011 20:00:19 +0000 (22:00 +0200)]
Adapt MS-Windows build to import of filemode.c from gnulib.

 nt/inc/sys/stat.h (S_ISUID, S_ISGID, S_ISVTX, S_IRGRP, S_IROTH)
 (S_IWGRP, S_IWOTH, S_IXGRP, S_IXOTH, S_ISSOCK, S_ISLNK, S_ISCTG)
 (S_ISDOOR, S_ISMPB, S_ISMPC, S_ISNWK, S_ISPORT, S_ISWHT)
 (S_TYPEISMQ, S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Define.
 (lstat): Define to stat.
 lib/makefile.w32-in ($(BLD)/filemode.$(O)): Move from
 src/makefile.w32-in and adapt.  Depend on stamp_BLD.
 (GNULIBOBJS): Add $(BLD)/filemode.$(O).
 src/makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
 lib/makefilw.w32-in.
 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
 (GLOBAL_SOURCES): Remove filemode.c.
 (OBJ1): Remove $(BLD)/filemode.$(O).
 lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))
 ($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)):
 Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.

13 years ago* make-docfile.c (input_buffer): Rename variables to avoid shadowing.
Paul Eggert [Mon, 21 Feb 2011 19:37:54 +0000 (11:37 -0800)]
* make-docfile.c (input_buffer): Rename variables to avoid shadowing.

13 years ago* net/tramp.el (tramp-rfn-eshadow-setup-minibuffer): Do not use
Michael Albinus [Mon, 21 Feb 2011 19:14:56 +0000 (20:14 +0100)]
* net/tramp.el (tramp-rfn-eshadow-setup-minibuffer): Do not use
`field' property of `rfn-eshadow-overlay'.

13 years agoMerge from mainline.
Paul Eggert [Mon, 21 Feb 2011 18:51:02 +0000 (10:51 -0800)]
Merge from mainline.

13 years ago* movemail.c: (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):
Paul Eggert [Mon, 21 Feb 2011 18:37:35 +0000 (10:37 -0800)]
* movemail.c: (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):

Remove unused macros.
* pop.c (index): Remove unused macro.
(KPOP_PORT): Define only if KERBEROS is defined.

13 years ago* movemail.c: Remove unused vars
Paul Eggert [Mon, 21 Feb 2011 18:26:52 +0000 (10:26 -0800)]
* movemail.c: Remove unused vars

13 years ago* movemail.c (main, pop_retr): Rename locals to avoid shadowing.
Paul Eggert [Mon, 21 Feb 2011 18:22:20 +0000 (10:22 -0800)]
* movemail.c (main, pop_retr): Rename locals to avoid shadowing.

13 years agoDeclare file-scope functions and variables static if not exported.
Paul Eggert [Mon, 21 Feb 2011 18:06:25 +0000 (10:06 -0800)]
Declare file-scope functions and variables static if not exported.

This is more consistent, and is nicer with gcc -Wstrict-prototypes.
* ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
* profile.c, test-distrib.c, update-game-score.c:
Declare non-'main' functions and variables to be static.
* ebrowse.c: Omit redundant function prototypes.

13 years ago* make-docfile.c (scan_c_file): Adapt to the new BVAR macro.
Ben Key [Mon, 21 Feb 2011 18:02:49 +0000 (13:02 -0500)]
* make-docfile.c (scan_c_file): Adapt to the new BVAR macro.

13 years agoImport filemode module from gnulib.
Paul Eggert [Mon, 21 Feb 2011 17:56:37 +0000 (09:56 -0800)]
Import filemode module from gnulib.

13 years agoMerge changes made in Gnus trunk.
Lars Ingebrigtsen [Mon, 21 Feb 2011 13:29:15 +0000 (13:29 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Window Layout): Document layout names.
nntp.el (nntp-finish-retrieve-group-infos): Add a kludge to use the given method as in the group name if we're using an extended method.
 (nntp-finish-retrieve-group-infos): Wait for the end of the LIST ACTIVE command, if we're using that, instead of waiting for the beginning.
gnus-start.el (gnus-get-unread-articles): Extend the methods so that we're sure to get unique server names, and we don't output two async commands in the same buffer.  This fixes an NNTP hang for some users.
netrc.el (netrc-parse): Comment fix.
gnus-sum.el (gnus-summary-next-article): Add a kludge to reselect the summary buffer before reading going to the next buffer.  This avoids putting the point in the group buffer if you `C-g' the command.
auth-source.el (auth-source-netrc-parse): Add an in-memory netrc cache (for now) to make ~/.authinfo.gpg files usable.
nnfolder.el (copyright-update): Define for the compiler.
auth-source.el (auth-source-search): Fix unbound variable.

13 years agoMerge some code from hexrgb.el into color.el.
Chong Yidong [Mon, 21 Feb 2011 06:03:36 +0000 (01:03 -0500)]
Merge some code from hexrgb.el into color.el.

* lisp/color.el (color-name-to-rgb): Rename from color-rgb->normalize.
Autoload.  Add optional arg FRAME, and pass it to color-values.
(color-complement): Caller changed.  Doc fix.
(color-gradient): Rewrite for better clarity and efficiency.
(color-rgb-to-hex): Rename from color-rgb->hex.
(color-rgb-to-hsv): Rename from color-rgb->hsv.  Force hue and
saturation to zero if the value is too small.
(color-rgb-to-hsl): Rename from color-rgb->hsl.
(color-srgb-to-xyz): Rename from color-srgb->xyz.  Doc fix.
(color-xyz-to-srgb): Rename from color-xyz->srgb.  Doc fix.
(color-xyz-to-lab): Rename from color-xyz->lab.  Doc fix.
(color-lab-to-xyz): Rename from color-lab->xyz.  Doc fix.
(color-lab-to-srgb): Rename from color-lab->srgb.  Doc fix.
(color-cie-de2000): Doc fix.

* lisp/facemenu.el (color-rgb-to-hsv): Deleted; use the version in
lisp/color.el instead.
(list-colors-sort-key, list-colors-print): Use
color-normalized-values.

* lisp/faces.el (color-values): Use cond for clarity.  Doc fix.

* lisp/gnus/shr-color.el (shr-color->hexadecimal): Use renamed
function names color-rgb-to-hex, color-name-to-rgb,
color-srgb-to-lab, and color-lab-to-srgb.

13 years ago* themes/tango-dark-theme.el: Tweak background on low-color terminals.
Chong Yidong [Mon, 21 Feb 2011 05:59:20 +0000 (00:59 -0500)]
* themes/tango-dark-theme.el: Tweak background on low-color terminals.

13 years agolib-src/makefile.w32-in (obj): Remove md5.o.
Juanma Barranquero [Sun, 20 Feb 2011 22:17:39 +0000 (23:17 +0100)]
lib-src/makefile.w32-in (obj): Remove md5.o.

13 years agoFollowup for 2011-02-20T18:50:26Z!eliz@gnu.org.
Eli Zaretskii [Sun, 20 Feb 2011 21:09:45 +0000 (23:09 +0200)]
Followup for 2011-02-20T18:50:26Z!eliz@gnu.org.

 lib/makefile.w32-in ($(BLD)/md5.$(O)): Don't depend on
 $(EMACS_ROOT)/nt/inc/sys/stat.h.

13 years ago* configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.
Paul Eggert [Sun, 20 Feb 2011 19:46:08 +0000 (11:46 -0800)]
* configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.

13 years agoMerge from mainline.
Paul Eggert [Sun, 20 Feb 2011 19:31:01 +0000 (11:31 -0800)]
Merge from mainline.

13 years agoFix the MS-Windows build due to import of md5 from gnulib.
Christoph Scholtes [Sun, 20 Feb 2011 18:50:26 +0000 (20:50 +0200)]
Fix the MS-Windows build due to import of md5 from gnulib.

 src/makefile.w32-in: Remove md5.$(O).
 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
 lib/makefile.w32-in.
 ($(BLD)/fns.$(O)): Depend on $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
 lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from
 src/makefile.w32-in.

13 years ago(c-end-of-statement): Set macro-end correctly at the end of a loop.
Alan Mackenzie [Sun, 20 Feb 2011 18:36:29 +0000 (18:36 +0000)]
(c-end-of-statement): Set macro-end correctly at the end of a loop.

13 years ago.
Alan Mackenzie [Sun, 20 Feb 2011 18:35:30 +0000 (18:35 +0000)]
.

13 years ago* dired.c: Include <filemode.h> at top level.
Paul Eggert [Sun, 20 Feb 2011 17:14:24 +0000 (09:14 -0800)]
* dired.c: Include <filemode.h> at top level.

13 years agoConvert test/icalendar-testsuite.el to ERT format.
Ulf Jasper [Sun, 20 Feb 2011 14:35:58 +0000 (15:35 +0100)]
Convert test/icalendar-testsuite.el to ERT format.

* automated/icalendar-tests.el: Move from icalendar-testsuite.el;
  convert to ERT format.

13 years agoUpdate autoloads
Andreas Schwab [Sun, 20 Feb 2011 11:59:44 +0000 (12:59 +0100)]
Update autoloads

13 years agoImport filemode module from gnulib.
Paul Eggert [Sun, 20 Feb 2011 10:53:22 +0000 (02:53 -0800)]
Import filemode module from gnulib.

* Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
* deps.mk (dired.o): Depend on ../lib/filemode.h, too.
(filemode.o): Remove; this is now in ../lib.
* dired.c: Include <filemode.h>.
(filemodestring): Remove now-redundant decl.
* config.in: Regenerate.

2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>

13 years agoImport filemode module from gnulib.
Paul Eggert [Sun, 20 Feb 2011 10:51:50 +0000 (02:51 -0800)]
Import filemode module from gnulib.

* .bzrignore: Add lib/sys/.
* Makefile.in (GNULIB_MODULES): Add filemode.
* lib/Makefile.am (MOSTLYCLEANDIRS): New macro.
* lib/filemode.c: Renamed from src/filemode.c and regenerated
from gnulib.  This adds support for some more file types, e.g.,
Cray DMF migrated files.
* lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c.
* lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4:
* m4/sys_stat_h.m4: New files, generated from gnulib.
* aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
Regenerate.

2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>

13 years agoMerge: Import crypto/md5 and stdint modules from gnulib.
Paul Eggert [Sun, 20 Feb 2011 08:48:52 +0000 (00:48 -0800)]
Merge: Import crypto/md5 and stdint modules from gnulib.

13 years agonnimap.el (nnimap-wait-for-response): Ensure that we get the entire line we're waitin...
Gnus developers [Sun, 20 Feb 2011 04:08:04 +0000 (04:08 +0000)]
nnimap.el (nnimap-wait-for-response): Ensure that we get the entire line we're waiting for.
gnus-art.el (gnus-article-next-page-1): Because customized mode-line face with line-width greater than zero will cause RET in gnus summary buffer to scroll down article page-wise because auto vscroll happens, it should be temporalily disabled when doing a scroll-up.

13 years agoedmacro.el trivia.
Glenn Morris [Sun, 20 Feb 2011 00:16:54 +0000 (16:16 -0800)]
edmacro.el trivia.

* lisp/edmacro.el: Remove old header comment.
(edmacro-eight-bits): Make it a defcustom.  Don't autoload it.