bpt/emacs.git
13 years agoRemove O_RDONLY, O_WRONLY definitions, not needed.
Dan Nicolaescu [Mon, 4 Oct 2010 17:22:57 +0000 (10:22 -0700)]
Remove O_RDONLY, O_WRONLY definitions, not needed.
* src/unexcoff.c:
* src/lread.c:
* src/fileio.c:
* src/doc.c:
* src/callproc.c:
* src/alloc.c:
* src/termcap.c: Remove O_RDONLY O_WRONLY definitions.

13 years agoshr.el (shr-tag-li): Get <li> indentation right.
Lars Magne Ingebrigtsen [Mon, 4 Oct 2010 13:17:48 +0000 (13:17 +0000)]
shr.el (shr-tag-li): Get <li> indentation right.
shr.el (shr-tag-li): Get <li> indentation even righter.
shr.el (shr-tag-blockquote): Ensure paragraph start.

13 years agoshr.el (shr-insert): Tweak line breaking.
Lars Magne Ingebrigtsen [Mon, 4 Oct 2010 10:43:14 +0000 (10:43 +0000)]
shr.el (shr-insert): Tweak line breaking.
shr.el (shr-insert): Handle <pre> better.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 4 Oct 2010 10:16:57 +0000 (10:16 +0000)]
Merge changes made in Gnus trunk.

gnus-html.el (gnus-html-put-image): Fix resize image code.
shr.el (shr-ensure-paragraph): Fix the non-empty line case.

13 years agoshr.el (shr-insert): Use string anchors instead of line anchors.
Lars Magne Ingebrigtsen [Mon, 4 Oct 2010 07:42:58 +0000 (07:42 +0000)]
shr.el (shr-insert): Use string anchors instead of line anchors.

13 years agoMinor appt.el changes.
Glenn Morris [Mon, 4 Oct 2010 01:19:56 +0000 (18:19 -0700)]
Minor appt.el changes.
* lisp/calendar/appt.el (appt-add): Ensure reminders are enabled.
(appt-activate): Give status messages.

13 years agoProvide GnuTLS API with `gnutls-negotiate' and `open-gnutls-stream'.
Ted Zlatanov [Mon, 4 Oct 2010 01:16:00 +0000 (20:16 -0500)]
Provide GnuTLS API with `gnutls-negotiate' and `open-gnutls-stream'.

* net/gnutls.el: Improve docs.        Remove starttls and ssl emulation.
Provide only `open-gnutls-stream' (formerly `open-ssl-stream') and
`gnutls-negotiate' (formerly `starttls-negotiate').  Remove
trivial wrapper `starttls-open-stream'.

13 years ago* doc/lispref/Makefile.in ($(infodir)/elisp): Fix -I typo.
Glenn Morris [Mon, 4 Oct 2010 00:55:42 +0000 (17:55 -0700)]
* doc/lispref/Makefile.in ($(infodir)/elisp): Fix -I typo.

13 years agoMinor doc Makefile.in clean-up.
Glenn Morris [Mon, 4 Oct 2010 00:49:20 +0000 (17:49 -0700)]
Minor doc Makefile.in clean-up.

* doc/emacs/Makefile.in (SHELL): Set it.
(INFO_TARGETS, DVI_TARGETS): Remove variables.
(info, dvi): Replace above variables with their expansions.
(info): Move mkdir from here...
($(infodir)/emacs): ... to here (for parallel builds).
(pdf): New target.
($(infodir)/emacs): Pass -o option to makeinfo.
(.PHONY): Declare clean rules.
(maintainer-clean): Delete dvi and pdf files.
Guard against cd failures.  Use a more restrictive delete.

* doc/lispref/Makefile.in (dvi, pdf, $(infodir)): New targets.
($(infodir)/elisp): Ensure target directory exists.  Use $@.
(clean): No 'make.out' or 'core' files.
(.PHONY): Declare clean rules.
(maintainer-clean): Delete pdf file.  Guard against cd failures.

13 years agoMention the 'g' binding in VC diff,log, etc.
Dan Nicolaescu [Mon, 4 Oct 2010 00:43:11 +0000 (17:43 -0700)]
Mention the 'g' binding in VC diff,log, etc.

13 years agoMake 'g' (AKA revert-buffer) rerun the VC log, log-incoming and
Dan Nicolaescu [Mon, 4 Oct 2010 00:26:41 +0000 (17:26 -0700)]
Make 'g' (AKA revert-buffer) rerun the VC log, log-incoming and
log-outgoing commands.
* lisp/vc/vc.el (vc-log-internal-common): Add a new argument and use it
to create a buffer local revert-buffer-function variable.
(vc-print-log-internal, vc-log-incoming, vc-log-outgoing): Pass a
revert-buffer-function lambda.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 4 Oct 2010 00:17:16 +0000 (00:17 +0000)]
Merge changes made in Gnus trunk.

shr.el: Rename the tag functions a bit, and add some new ones.
gnus-sum.el (gnus-summary-select-article-buffer): If the article buffer isn't shown, then select the current article first instead of bugging out.
gnus-sum.el (gnus-summary-select-article-buffer): Show both the article and summary buffers again.
shr.el (shr-tag-blockquote): Convert name.
shr.el (shr-rescale-image): Use the right image-size variant.
shr.el (shr-tag-p): Don't insert newlines at the start of the buffer.
shr.el: Implement indentation in blockquotes.
gnus-sum.el (gnus-summary-select-article-buffer): Really select the article buffer again.
shr.el (shr-ensure-paragraph): Don't insert newlines on empty tags at the beginning of the buffer.
gnus-ems.el, gnus-util.el, mm-decode.el, mm-view.el: Add resize for large images in mm.
gnus-html.el (gnus-html-put-image): Use gnus-rescale-image.
shr.el (shr-tag-p): Don't insert newlines on empty tags at the beginning of the buffer.
gnus-ems.el, gnus-html.el, gnus-util.el, mm-decode.el, mm-view.el: Support image resizing.
shr.el: Add headings.
shr.el (shr-ensure-paragraph): Actually work.
shr.el (shr-tag-li): Make <ul> prettier.
shr.el (shr-insert): Get white space at the beginning/end of elements right.
shr.el (shr-tag-li): Tweak <li> rendering.
shr.el (shr-tag-p): Collapse subsequent <p>s.
shr.el (shr-ensure-paragraph): Don't insert double line feeds after blank lines.
shr.el (shr-tag-h6): Add.
shr.el (shr-insert): \t is also space.

13 years agoFix compilation warnings.
Dan Nicolaescu [Sun, 3 Oct 2010 23:35:22 +0000 (16:35 -0700)]
Fix compilation warnings.
* lib-src/test-distrib.c (cool_read):
* lib-src/movemail.c (main, concat):
* lib-src/make-docfile.c (scan_file, write_c_args):
* emacsclient.c (get_server_config): Fix -Wconversion warning.
(egetenv): Move conditional definition earlier.
(progname): Use const.
* lib-src/sorted-doc.c (xstrdup): Use const.

13 years agoRework the gnutls boot interface.
Lars Magne Ingebrigtsen [Sun, 3 Oct 2010 22:37:37 +0000 (00:37 +0200)]
Rework the gnutls boot interface.

From Teodor Zlatanov.

13 years agoCosmetic changes for some lisp/url files.
Glenn Morris [Sun, 3 Oct 2010 21:37:41 +0000 (14:37 -0700)]
Cosmetic changes for some lisp/url files.

* lisp/url/url-util.el (url-get-url-filename-chars): Don't eval-and-compile.
(url-get-url-at-point): Don't use eval-when-compile.

* lisp/url/url-cache.el (url-cache-create-filename-human-readable)
(url-cache-create-filename-using-md5):
* lisp/url/url-util.el (url-file-directory, url-file-nondirectory):
Don't use eval-when-compile and regexp-quote.

13 years ago* src/fileio.c (Vdirectory_sep_char): Remove.
Glenn Morris [Sun, 3 Oct 2010 21:27:04 +0000 (14:27 -0700)]
* src/fileio.c (Vdirectory_sep_char): Remove.

13 years agoRemove directory-sep-char, obsolete since 21.1.
Glenn Morris [Sun, 3 Oct 2010 21:23:13 +0000 (14:23 -0700)]
Remove directory-sep-char, obsolete since 21.1.

* lisp/subr.el (directory-sep-char): Remove obsolete variable.
* lisp/net/tramp-compat.el: Don't mess about with the byte-compiler unless
it is "necessary".

* doc/lispref/files.texi (File Name Components): Remove ignored
section about deleted variable directory-sep-char.

* etc/NEWS: Mention above change.

13 years agoRemove vc-header-alist, obsolete since 21.1.
Glenn Morris [Sun, 3 Oct 2010 21:05:47 +0000 (14:05 -0700)]
Remove vc-header-alist, obsolete since 21.1.

* lisp/vc/vc-hooks.el (vc-header-alist): Remove obsolete variable.
* lisp/vc/vc.el (vc-static-header-alist): Doc fix.
* lisp/vc/vc-cvs.el (vc-cvs-header):
* lisp/vc/vc-rcs.el (vc-rcs-header):
* lisp/vc/vc-sccs.el (vc-sccs-header):
* lisp/vc/vc-svn.el (vc-svn-header): Do not consult vc-header-alist.
* lisp/obsolete/vc-mcvs.el (vc-mcvs-header):
* lisp/progmodes/cperl-mode.el (cperl-mode): Only set vc-header-alist
on XEmacs.

* etc/NEWS: Mention above change.

13 years agoAvoid using plusp; cl may not be loaded.
Chong Yidong [Sun, 3 Oct 2010 19:54:31 +0000 (15:54 -0400)]
Avoid using plusp; cl may not be loaded.

* lisp/gnus/shr.el (shr-insert):
* lisp/gnus/pop3.el (pop3-movemail):
* lisp/gnus/gnus-html.el (gnus-html-wash-tags): Don't use plusp.

13 years agoAdd user option `remote-file-name-inhibit-cache'.
Michael Albinus [Sun, 3 Oct 2010 16:43:22 +0000 (18:43 +0200)]
Add user option `remote-file-name-inhibit-cache'.

13 years ago* src/termhooks.h: Remove #ifdef CONSP.
Dan Nicolaescu [Sun, 3 Oct 2010 16:21:55 +0000 (09:21 -0700)]
* src/termhooks.h: Remove #ifdef CONSP.

13 years ago* files.texi (Magic File Names): New defopt remote-file-name-inhibit-cache.
Michael Albinus [Sun, 3 Oct 2010 15:58:09 +0000 (17:58 +0200)]
* files.texi (Magic File Names): New defopt remote-file-name-inhibit-cache.

13 years ago* lib-src/Makefile.in: Remove ^L, old makes choke on it.
Dan Nicolaescu [Sun, 3 Oct 2010 15:46:41 +0000 (08:46 -0700)]
* lib-src/Makefile.in: Remove ^L, old makes choke on it.

13 years ago* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
Dan Nicolaescu [Sun, 3 Oct 2010 15:39:21 +0000 (08:39 -0700)]
* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
* src/xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.

13 years agoInclude <fcntl.h> unconditionally.
Dan Nicolaescu [Sun, 3 Oct 2010 15:19:34 +0000 (08:19 -0700)]
Include <fcntl.h> unconditionally.
* src/termcap.c:
* src/sysdep.c:
* src/lread.c:
* src/keyboard.c:
* src/filelock.c:
* src/fileio.c:
* src/doc.c:
* src/callproc.c:
* src/alloc.c: Remove include guards for <fcntl.h>, process.c already
does it.

13 years ago* tramp.texi (Frequently Asked Questions): Mention
Michael Albinus [Sun, 3 Oct 2010 15:09:11 +0000 (17:09 +0200)]
* tramp.texi (Frequently Asked Questions): Mention
remote-file-name-inhibit-cache.

13 years ago* src/process.c: Do not include <sys/wait.h>, syswait.h does it.
Dan Nicolaescu [Sun, 3 Oct 2010 14:48:21 +0000 (07:48 -0700)]
* src/process.c: Do not include <sys/wait.h>, syswait.h does it.

13 years ago* src/sysdep.c (flush_pending_output): Remove code, does not do
Dan Nicolaescu [Sun, 3 Oct 2010 14:43:17 +0000 (07:43 -0700)]
* src/sysdep.c (flush_pending_output): Remove code, does not do
anything on any platform.

13 years agoRemove unused code.
Dan Nicolaescu [Sun, 3 Oct 2010 14:16:48 +0000 (07:16 -0700)]
Remove unused code.
* src/sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
select emulation, all systems support select.
(set_exclusive_use): Remove, the only user is in an #if 0 block.
* src/process.c (create_process): Remove #if 0 code.

13 years agoRemove unused arguments for unexec.
Dan Nicolaescu [Sun, 3 Oct 2010 13:59:56 +0000 (06:59 -0700)]
Remove unused arguments for unexec.
The third one is never used, and the last two are always passed as zero.
* src/emacs.c (unexec): Add declaration.
(Fdump_emacs): Only pass the first two arguments to unexec.
Simplify #ifdef.
* src/unexw32.c (unexec):
* src/unexsol.c (unexec):
* src/unexhp9k800.c (unexec):
* src/unexcw.c (unexec): Remove the last 3 arguments, unused.
* src/unexelf.c (unexec): Remove the last 3 arguments, unused.
(find_section): Use const.
* src/unexmacosx.c (unexec): Remove the last 3 arguments, unused.
(unexec_error): Declare it NO_RETURN.
* src/unexcoff.c (make_hdr): Assume bss_start is always zero, remove
it as an argument, remove data_start and entry_address arguments, unused.
(unexec): Remove bss_start, data_start and
entry_address arguments.
* src/unexaix.c (make_hdr): Assume bss_start is always zero, remove
it as an argument, remove data_start and entry_address arguments, unused.
(unexec): Remove bss_start, data_start and
entry_address arguments.

13 years agosrc/gnutls.c: Fix typo in docstring.
Juanma Barranquero [Sun, 3 Oct 2010 12:52:04 +0000 (14:52 +0200)]
src/gnutls.c: Fix typo in docstring.

13 years agourl-vars.el (url-mime-charset-string): Changed the default to nil to
Lars Magne Ingebrigtsen [Sun, 3 Oct 2010 12:43:12 +0000 (14:43 +0200)]
url-vars.el (url-mime-charset-string): Changed the default to nil to
avoid sending 1171 bytes of not very useful data to the HTTP server
every request.

13 years agosrc/makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
Juanma Barranquero [Sun, 3 Oct 2010 12:36:19 +0000 (14:36 +0200)]
src/makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).

13 years agoRemove obsolete use of binary-overwrite-mode in bytecomp (Bug#7001).
Chong Yidong [Sun, 3 Oct 2010 04:31:59 +0000 (00:31 -0400)]
Remove obsolete use of binary-overwrite-mode in bytecomp (Bug#7001).

* emacs-lisp/bytecomp.el (byte-compile-from-buffer): Remove
obsolete use of binary-overwrite-mode (Bug#7001).

13 years agosrc/gnutls.c: Doc fixes. Make some functions static.
Juanma Barranquero [Sun, 3 Oct 2010 04:12:15 +0000 (06:12 +0200)]
src/gnutls.c: Doc fixes.  Make some functions static.

(emacs_gnutls_handshake, gnutls_make_error, gnutls_emacs_global_init)
(gnutls_emacs_global_deinit): Make static.
(Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
 Fix typos in docstrings.
(Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
(Fgnutls_errorp): Doc fix; use ERR for the argument name.

13 years ago* lisp/obsolete/x-menu.el: Remove file, obsolete since 21.1
Glenn Morris [Sun, 3 Oct 2010 02:32:03 +0000 (19:32 -0700)]
* lisp/obsolete/x-menu.el: Remove file, obsolete since 21.1

13 years ago* textmodes/rst.el (rst-font-lock-keywords-function): Drop Emacs 20 code.
Glenn Morris [Sun, 3 Oct 2010 02:26:35 +0000 (19:26 -0700)]
* textmodes/rst.el (rst-font-lock-keywords-function): Drop Emacs 20 code.

13 years ago* lisp/textmodes/artist.el (artist-replace-char): Drop Emacs 20 code.
Glenn Morris [Sun, 3 Oct 2010 02:22:40 +0000 (19:22 -0700)]
* lisp/textmodes/artist.el (artist-replace-char): Drop Emacs 20 code.

13 years ago* lisp/printing.el: Drop Emacs 20 code.
Glenn Morris [Sun, 3 Oct 2010 02:17:47 +0000 (19:17 -0700)]
* lisp/printing.el: Drop Emacs 20 code.

13 years ago* lisp/gnus/nnmairix.el (nnmairix-replace-illegal-chars): Drop Emacs 20 code.
Glenn Morris [Sun, 3 Oct 2010 02:12:55 +0000 (19:12 -0700)]
* lisp/gnus/nnmairix.el (nnmairix-replace-illegal-chars): Drop Emacs 20 code.

13 years ago* lisp/gnus/smime.el (smime-cert-by-ldap-1): Drop Emacs 21 code.
Glenn Morris [Sun, 3 Oct 2010 02:09:53 +0000 (19:09 -0700)]
* lisp/gnus/smime.el (smime-cert-by-ldap-1): Drop Emacs 21 code.

13 years ago* lisp/gnus/gnus-art.el (gnus-next-page-map): Drop Emacs 20 compat cruft.
Glenn Morris [Sun, 3 Oct 2010 02:07:11 +0000 (19:07 -0700)]
* lisp/gnus/gnus-art.el (gnus-next-page-map): Drop Emacs 20 compat cruft.

13 years agoTix fypo in previous change.
Glenn Morris [Sun, 3 Oct 2010 02:03:18 +0000 (19:03 -0700)]
Tix fypo in previous change.

13 years ago* lisp/gnus/gmm-utils.el (gmm-write-region): Drop Emacs 20 compat cruft.
Glenn Morris [Sun, 3 Oct 2010 02:01:07 +0000 (19:01 -0700)]
* lisp/gnus/gmm-utils.el (gmm-write-region): Drop Emacs 20 compat cruft.

13 years agoDo not autoload appt-delete.
Glenn Morris [Sun, 3 Oct 2010 01:56:11 +0000 (18:56 -0700)]
Do not autoload appt-delete.

* lisp/calendar/appt.el (appt-delete): Don't autoload it (you can't use it
without having used appt.el already).

13 years ago* lisp/subr.el (make-local-hook): Remove function obsolete since 21.1.
Glenn Morris [Sun, 3 Oct 2010 01:53:04 +0000 (18:53 -0700)]
* lisp/subr.el (make-local-hook): Remove function obsolete since 21.1.
* lisp/progmodes/cc-mode.el (make-local-hook): Don't do cc-bytecomp stuff.
(c-basic-common-init, c-font-lock-init): Only call make-local-hook on
XEmacs.
* lisp/progmodes/cc-styles.el (make-local-hook): Don't do cc-bytecomp stuff.
(c-make-styles-buffer-local): Only call make-local-hook on XEmacs.

* lisp/gnu/gnus-util.el (gnus-make-local-hook): Simplify.

* etc/NEWS: Mention above change.

13 years agoRemove some unused ps-def definitions.
Glenn Morris [Sun, 3 Oct 2010 01:35:07 +0000 (18:35 -0700)]
Remove some unused ps-def definitions.

* lisp/ps-def.el (leading-code-private-22, charset-bytes, charset-id)
(charset-width, find-charset-region, chars-in-region, forward-point)
(encode-coding-string, coding-system-p, ccl-execute-on-string)
(define-ccl-program, multibyte-string-p, string-make-multibyte):
Remove compatibility cruft (none of these are used by ps*.el).

13 years agourl-http.el comment.
Glenn Morris [Sun, 3 Oct 2010 01:30:51 +0000 (18:30 -0700)]
url-http.el comment.

13 years ago* subr.el (booleanp): Return t instead of a list (Bug#7086).
Kevin Rodgers [Sun, 3 Oct 2010 01:11:20 +0000 (21:11 -0400)]
* subr.el (booleanp): Return t instead of a list (Bug#7086).

13 years ago* keyboard.c (command_loop_1): Make sure the mark is really alive
Chong Yidong [Sun, 3 Oct 2010 00:59:02 +0000 (20:59 -0400)]
* keyboard.c (command_loop_1): Make sure the mark is really alive
before using it (Bug#7044).

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 3 Oct 2010 00:33:27 +0000 (00:33 +0000)]
Merge changes made in Gnus trunk.

shr.el: Start implementation.
shr.el: Continue implementation.
gnus-gravatar.el (gnus-gravatar-insert): Adjust character where we should go backward.
shr.el: Minimally useful state achieved.
mm-decode.el (mm-text-html-renderer): Switch to using shr.el for HTML rendering.
shr.el: (shr-insert): Add a newline after every picture before text.
gnus.texi (Splitting Mail): Really fix the @ref syntax.
shr.el (shr-add-font): Use overlays for combining faces.
shr.el (shr-add-font): Use overlays for combining faces.
shr.el (shr-insert): Pass upwards the text start point.
gnus-util.el: Reintroduce multiple completion functions.

13 years ago* lisp/server.el (server-process-filter, server-return-error): Give
Chong Yidong [Sun, 3 Oct 2010 00:03:44 +0000 (20:03 -0400)]
* lisp/server.el (server-process-filter, server-return-error): Give
emacsclient time to shut down after receiving an error string.

* etc/NEWS: Document tweak to emacsclient exit status.

13 years ago* emacsclient.c (main): Return EXIT_FAILURE if Emacs sends us an error string
Wolfgang Schnerring [Sun, 3 Oct 2010 00:00:01 +0000 (20:00 -0400)]
* emacsclient.c (main): Return EXIT_FAILURE if Emacs sends us an error string
(Bug#6963).

13 years agoAdd minor comment (Bug#7001).
Chong Yidong [Sat, 2 Oct 2010 23:10:41 +0000 (19:10 -0400)]
Add minor comment (Bug#7001).

13 years agolisp/gnus/shr.el (shr): Fix typo in provide call.
Juanma Barranquero [Sat, 2 Oct 2010 18:31:57 +0000 (20:31 +0200)]
lisp/gnus/shr.el (shr): Fix typo in provide call.

13 years agognus.texi (Splitting Mail): Fix @xref syntax.
Lars Magne Ingebrigtsen [Sat, 2 Oct 2010 14:07:02 +0000 (14:07 +0000)]
gnus.texi (Splitting Mail): Fix @xref syntax.

13 years ago* files.el (remote-file-name-inhibit-cache): New defcustom.
Michael Albinus [Sat, 2 Oct 2010 13:21:43 +0000 (15:21 +0200)]
* files.el (remote-file-name-inhibit-cache): New defcustom.

* time.el (display-time-file-nonempty-p): Use
`remote-file-name-inhibit-cache'.

* net/tramp.el (tramp-completion-reread-directory-timeout): Fix
docstring.

* net/tramp-cache.el (tramp-cache-inhibit-cache): Remove.
(tramp-get-file-property): Replace `tramp-cache-inhibit-cache' by
`remote-file-name-inhibit-cache'.  Check also for an integer
value.  Add/increase counter when `tramp-verbose' >= 10.
(tramp-set-file-property): Add/increase counter when
`tramp-verbose' >= 10.

* net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-cleanup-all-buffers): Set tramp-autoload cookie.
(tramp-bug): Set tramp-autoload cookie.  Report all interned
tramp-* variables.  Report also `remote-file-name-inhibit-cache'.
(tramp-reporter-dump-variable): Fix docstring.  Mask non-7bit
characters only in strings.

* net/tramp-compat.el (remote-file-name-inhibit-cache): Define due
to backward compatibility.

* net/tramp-sh.el (tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-name-all-completions)
(tramp-handle-vc-registered): Use
`remote-file-name-inhibit-cache'.
(tramp-open-connection-setup-interactive-shell): Call
`tramp-cleanup-connection' directly.

13 years ago(url-lazy-message): Remove leftover debugging code.
Lars Magne Ingebrigtsen [Sat, 2 Oct 2010 12:34:02 +0000 (14:34 +0200)]
(url-lazy-message): Remove leftover debugging code.

13 years agoRework tags targets in Windows makefiles to protect against old/stupid makes.
Juanma Barranquero [Sat, 2 Oct 2010 12:12:17 +0000 (14:12 +0200)]
Rework tags targets in Windows makefiles to protect against old/stupid makes.

* lib-src/makefile.w32-in (tags): Remove target.
* src/makefile.w32-in (tags): Rename target to full-tags.

13 years agoAdd lisp/gnus/nnregistry.el.
Ludovic Courtes [Sat, 2 Oct 2010 10:35:45 +0000 (10:35 +0000)]
Add lisp/gnus/nnregistry.el.

13 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sat, 2 Oct 2010 10:30:06 +0000 (10:30 +0000)]
Merge changes made in Gnus trunk.

gnus-topic.el (gnus-topic-move-group): Fix the syntax of the completing read.
gnus-html.el (gnus-html-schedule-image-fetching): Be silent.
shr.el: New file.

13 years agoImprove TAGS target on MS-DOS.
Eli Zaretskii [Sat, 2 Oct 2010 09:08:47 +0000 (11:08 +0200)]
Improve TAGS target on MS-DOS.

 msdos/mainmake.v2 (TAGS tags): Use `find' to filter out loaddefs
 files.  Make all file names in TAGS tables absolute.

13 years agoInvoke kill-emacs on SIGINT on Windows as well.
Eli Zaretskii [Sat, 2 Oct 2010 08:24:14 +0000 (10:24 +0200)]
Invoke kill-emacs on SIGINT on Windows as well.

 src/emacs.c (main): Remove !WINDOWSNT conditional.
 (Fkill_emacs): Don't mention exemption on MS-Windows.
 etc/NEWS: Fix the news entry regarding SIGINT in batch mode.

13 years agoRemove some functions, variables and aliases obsolete since at least 21.1.
Glenn Morris [Sat, 2 Oct 2010 02:46:13 +0000 (19:46 -0700)]
Remove some functions, variables and aliases obsolete since at least 21.1.

* doc/misc/misc.texi (Shell Mode): Remove reference to old function name.

* src/character.c (Fchar_bytes): Remove obsolete function.
(syms_of_character): Remove Schar_bytes.
* lisp/subr.el (char-bytes): Remove obsolete function.

* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-keymap): Remove obsolete alias.

* lisp/isearch.el (isearch-return-char): Remove obsolete function.

* lisp/mouse.el: No longer provide mldrag.
(mldrag-drag-mode-line, mldrag-drag-vertical-line):
Remove obsolete aliases.

* lisp/comint.el (comint-kill-output): Remove obsolete alias.

* lisp/shell.el: Comment fix.

* lisp/composite.el (decompose-composite-char): Remove obsolete function.
* lisp/ps-def.el (decompose-composite-char): Remove unused function.

* lisp/iswitchb.el (iswitchb-default-keybindings): Remove obsolete function.

* lisp/outline.el (outline-visible): Remove obsolete function.

* lisp/term/pc-win.el (x-frob-font-slant, x-frob-font-weight):
* lisp/faces.el (internal-find-face, internal-get-face)
(frame-update-faces, frame-update-face-colors)
(x-frob-font-weight, x-frob-font-slant)
(internal-frob-font-weight, internal-frob-font-slant)
(x-make-font-bold, x-make-font-demibold, x-make-font-unbold)
(x-make-font-italic, x-make-font-oblique, x-make-font-unitalic)
(x-make-font-bold-italic): Remove functions and aliases, obsolete
since Emacs 21.1.
* lisp/emulation/viper-util.el (viper-get-face):
* lisp/obsolete/lucid.el (find-face, get-face): Use facep.
* lisp/vc/ediff-init.el (ediff-valid-color-p, ediff-get-face):
Remove unused functions.
* lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.

* etc/NEWS: Mention above changes.

13 years agoRun kill-emacs-hook in batch mode, and on SIGINT in batch mode.
Glenn Morris [Sat, 2 Oct 2010 02:30:11 +0000 (19:30 -0700)]
Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.
See thread http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00795.html

* src/emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
(main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
in batch-mode.
(Fkill_emacs): Doc fix.  Also run the hook in batch mode.
(kill-emacs-hook): Doc fix.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use kill-emacs-hook to
delete tempfile if interrupted during compilation.

* doc/lispref/os.texi (Killing Emacs): Hook now runs in batch mode.

* etc/NEWS: Mention these changes.

13 years agoModify url-retrieve and related functions and structures to respect a
Lars Magne Ingebrigtsen [Sat, 2 Oct 2010 02:04:20 +0000 (04:04 +0200)]
Modify url-retrieve and related functions and structures to respect a
`silent' flag to signal that the operation should be silent.

13 years agoClean up trailing whitespace.
Lars Magne Ingebrigtsen [Sat, 2 Oct 2010 00:39:15 +0000 (02:39 +0200)]
Clean up trailing whitespace.

13 years agoxml.c: Rework the functions to take regions instead of strings,
Lars Magne Ingebrigtsen [Sat, 2 Oct 2010 00:36:47 +0000 (02:36 +0200)]
xml.c: Rework the functions to take regions instead of strings,
and rename the functions to reflect clearly that they come from the
libxml package.

13 years agoUpdate ChangeLog.
Katsumi Yamaoka [Fri, 1 Oct 2010 23:14:58 +0000 (23:14 +0000)]
Update ChangeLog.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Fri, 1 Oct 2010 23:08:25 +0000 (23:08 +0000)]
Merge changes made in Gnus trunk.

gnus-registry.el: Fix and extend header docs.  Move the nnregistry feature check.
nnimap.el (nnimap-update-info): Ignore groups that have no UIDNEXT values.
nnimap.el: Implement nnimap-request-newgroups.
gnus-group.el (gnus-group-completing-read): Return the symbol name, not the value from the collection.
nnimap.el: Don't error out on empty non-UIDNEXT groups.
nnmail.el (nnmail-article-group): Allow using the fancy split method directly.
gnus.el (gnus-continuum-version): Make inactive, since it doesn't really message anything to the user.
gnus-msg.el (gnus-summary-resend-message): When resending, don't externalize attachments.
gnus.el (gnus-large-newsgroup): Mention gnus-large-ephemeral-newsgroup.
gnus-sum.el (gnus-summary-scroll-up): Add more documentation.
message.el (message-shorten-references): Comment on the number "21".
mm-encode.el (mm-content-transfer-encoding-defaults): Try to make the documentation clearer.
ChangeLog: jidanni -> Dan Jacobson.
nnmbox.el (nnmbox-read-mbox): Mark buffer for deletion on Gnus exit.
gnus-sum.el, gnus-win.el: Change the `h' command to only show the article buffer.
gnus-art.el (gnus-summary-save-in-file, gnus-summary-save-in-rmail): Use with-current-buffer instead of gnus-eval-in-buffer-window to avoid popping up frames.
gnus-sum.el (gnus-summary-clear-local-variables): Removed.
gnus-async.el (gnus-async-delete-prefetched-entry): Remove from hash table, too.
gnus-async.el: Try to keep the async hash table size reasonable.
nndoc.el (nndoc-type-alist): Do babyl before mime-parts.
gnus-start.el (gnus-check-bogus-newsgroups): Say how many groups we're being queried about.

13 years agoFix initial frame dimensions on MS-DOS.
Eli Zaretskii [Fri, 1 Oct 2010 20:18:24 +0000 (22:18 +0200)]
Fix initial frame dimensions on MS-DOS.

 term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
 screen dimensions in tty->Wcm.

13 years agoFix the MSDOS build broken by 2010-09-26T15:18:47Z!larsi@gnus.org.
Eli Zaretskii [Fri, 1 Oct 2010 19:20:29 +0000 (21:20 +0200)]
Fix the MSDOS build broken by 2010-09-26T15:18:47Z!larsi@gnus.org.

 sed1v2.inp (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS): Edit to empty.

13 years agoFix bug #6349 with cursor positioning in truncated lines.
Eli Zaretskii [Fri, 1 Oct 2010 17:38:36 +0000 (19:38 +0200)]
Fix bug #6349 with cursor positioning in truncated lines.

 xdisp.c (set_cursor_from_row): When the row is truncated and
 point is outside the range of displayed characters, position the
 cursor inside the scroll margin.

13 years agoUse url-lazy-message for warnings about ignored cookies.
Lars Magne Ingebrigtsen [Fri, 1 Oct 2010 14:49:14 +0000 (16:49 +0200)]
Use url-lazy-message for warnings about ignored cookies.

These messages aren't very interesting for most users.

13 years ago(url-http-async-sentinel): Check that the buffer is still alive before
Lars Magne Ingebrigtsen [Fri, 1 Oct 2010 14:05:25 +0000 (16:05 +0200)]
(url-http-async-sentinel): Check that the buffer is still alive before
switching to it.

13 years agoDo not include stdlib.h and string.h, config.h does it.
Dan Nicolaescu [Fri, 1 Oct 2010 13:56:33 +0000 (06:56 -0700)]
Do not include stdlib.h and string.h, config.h does it.
* src/xfont.c:
* src/w32term.c:
* src/w32reg.c:
* src/w32inevt.c:
* src/w32heap.c:
* src/w32console.c:
* src/w16select.c:
* src/unexsol.c:
* src/term.c:
* src/sound.c:
* src/scroll.c (m):
* src/gtkutil.c:
* src/font.c:
* src/filelock.c:
* src/fileio.c:
* src/dosfns.c:
* src/dbusbind.c:
* src/bidi.c:
* src/callproc.c:
* src/process.c:
* src/msdos.c:
* src/charset.c: Do not include stdlib.h and string.h, config.h does it.

* configure.in: Include stdlib.h and string.h unconditionally.

13 years agognus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid regexp backtrace...
Lars Magne Ingebrigtsen [Fri, 1 Oct 2010 13:33:03 +0000 (13:33 +0000)]
gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid regexp backtrace overflows.

13 years ago* src/callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
Dan Nicolaescu [Fri, 1 Oct 2010 13:06:44 +0000 (06:06 -0700)]
* src/callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.

13 years agoSmall process.c cleanups.
Dan Nicolaescu [Fri, 1 Oct 2010 13:04:07 +0000 (06:04 -0700)]
Small process.c cleanups.
* src/process.c: Move #include <pty.h> earlier.
(SIGCHLD): Remove conditional definition, syssignal.h defines it.
(pty_name): Move definition later.

13 years agoGive up on using gnutls-cli for starttls.
Lars Magne Ingebrigtsen [Fri, 1 Oct 2010 12:56:44 +0000 (12:56 +0000)]
Give up on using gnutls-cli for starttls.

13 years agoUse intern_c_string instead of intern.
Dan Nicolaescu [Fri, 1 Oct 2010 12:25:21 +0000 (05:25 -0700)]
Use intern_c_string instead of intern.
* src/nsselect.m (syms_of_nsselect):
* src/nsmenu.m (syms_of_nsmenu):
* src/nsfns.m (syms_of_nsfns):
* src/msdos.c (syms_of_msdos):
* src/image.c (syms_of_image):
* src/charset.c (syms_of_charset): Use intern_c_string instead of intern.

13 years ago* src/point.h: Remove, unused.
Dan Nicolaescu [Fri, 1 Oct 2010 12:19:52 +0000 (05:19 -0700)]
* src/point.h: Remove, unused.

13 years agont/ChangeLog: Fix last entry.
Eli Zaretskii [Fri, 1 Oct 2010 11:52:23 +0000 (13:52 +0200)]
nt/ChangeLog: Fix last entry.

13 years agoSupport TAGS targets in the w32 build.
Eli Zaretskii [Fri, 1 Oct 2010 11:45:16 +0000 (13:45 +0200)]
Support TAGS targets in the w32 build.

 nt/makefile.w32-in (frc, TAGS, TAGS-gmake, TAGS-nmake): New targets.
 emacs-src.tags: New file.
 src/makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
 lisp/makefile.w32-in (DEST, TAGS, TAGS-LISP, TAGS-nmake)
 (TAGS-LISP-nmake, TAGS-gmake, TAGS-LISP-gmake, TAGS-SH)
 (TAGS-LISP-SH, TAGS-CMD, TAGS-LISP-CMD): New targets.
 lib-src/makefile.w32-in (tags, TAGS): New targets.

13 years agoFlorian Ragwitz' stuff removed because of missing paperwork.
Lars Magne Ingebrigtsen [Fri, 1 Oct 2010 11:15:10 +0000 (11:15 +0000)]
Florian Ragwitz' stuff removed because of missing paperwork.

13 years agoFix bug #7102.
Eli Zaretskii [Fri, 1 Oct 2010 08:16:39 +0000 (10:16 +0200)]
Fix bug #7102.

 gmake.defs: Add a comment with a single quote to fix fontification.

13 years ago* lisp/obsolete/sc.el: Remove file.
Glenn Morris [Fri, 1 Oct 2010 07:24:35 +0000 (00:24 -0700)]
* lisp/obsolete/sc.el: Remove file.

13 years agognus-util.el (gnus-completing-read-function): Exclude gnus-icompleting-read and gnus...
Katsumi Yamaoka [Fri, 1 Oct 2010 06:56:38 +0000 (06:56 +0000)]
gnus-util.el (gnus-completing-read-function): Exclude gnus-icompleting-read and gnus-ido-completing-read from candidates for XEmacs.
Silence the byte compiler.

13 years agogravatar.el (gravatar-create-image): New function.
Katsumi Yamaoka [Fri, 1 Oct 2010 05:50:11 +0000 (05:50 +0000)]
gravatar.el (gravatar-create-image): New function.

13 years agoTweak temporary-file-directory on darwin systems.
Glenn Morris [Fri, 1 Oct 2010 03:57:26 +0000 (20:57 -0700)]
Tweak temporary-file-directory on darwin systems.

* lisp/files.el (temporary-file-directory): On darwin, also try
DARWIN_USER_TEMP_DIR (see discussion in bug#7135).

13 years agolisp/server.el (server-start): For compatibility, revert part of 2010-09-30T02:53...
Juanma Barranquero [Fri, 1 Oct 2010 01:28:45 +0000 (03:28 +0200)]
lisp/server.el (server-start): For compatibility, revert part of 2010-09-30T02:53:26Z!lekktu@gmail.com.

13 years agoFix previous merge from Gnus trunk.
Katsumi Yamaoka [Fri, 1 Oct 2010 00:34:42 +0000 (00:34 +0000)]
Fix previous merge from Gnus trunk.

13 years agonnimap.el (nnimap-request-accept-article): Get the Message-ID without the \r.
Gnus developers [Fri, 1 Oct 2010 00:25:50 +0000 (00:25 +0000)]
nnimap.el (nnimap-request-accept-article): Get the Message-ID without the \r.
nnimap.el (nnimap-find-article-by-message-id): Use EXAMINE instead of SELECT to get the message-id.
gnus-art.el, gnus.el, nnimap.el: Fix up make-obsolete-variable declarations throughout.
gnus.texi (Mail Source Specifiers): Remove webmail.el mentions.
mail-source.el: Removed webmail support.
nntp.el (nntp-server-list-active-group): Document.
gnus.texi (NNTP): Document nntp-server-list-active-group.
gnus.texi (Customizing the IMAP Connection): Remove extra quote.
nnimap.el (nnimap-find-article-by-message-id): Really return the article number.
nnimap.el: Add nnimap-split-fancy.
netrc.el (netrc-credentials, netrc-machine): Return the value of the "default" entry.
nnimap.el: Use tls.el exclusively, and not starttls.el at all.
nnimap.el (nnimap-wait-for-connection): Accept the moronic openssl s_client -starttls output, too.
nnrss.el (nnrss-use-local): Add documentation.
message.el (message-ignored-supersedes-headers): Strip Injection-* headers before superseding.
nnimap.el (nnimap-open-connection): Reinstate the auto-upgrade from unencrypted to STARTTLS, if possible.
nnir.el: Use the server names without suffixes.
gnus-sum.el (gnus-summary-show-thread): Skip past invisible text when expanding threads.
gnus-registry.el: Don't follow nnmairix references.  Install the nnregistry refer method.
gnus.texi (Spam Package Configuration Examples, SpamOracle): Remove nnimap-split-rule from examples.

13 years ago* src/xml.c (parse_string): Use const.
Dan Nicolaescu [Thu, 30 Sep 2010 23:26:40 +0000 (16:26 -0700)]
* src/xml.c (parse_string): Use const.

13 years ago(Fbacktrace): Don't overwrite print-level on exit.
Lars Magne Ingebrigtsen [Thu, 30 Sep 2010 14:28:22 +0000 (16:28 +0200)]
(Fbacktrace): Don't overwrite print-level on exit.

Also only override Vprint_level if it isn't already bound, and
increase the level to 8 to produce more useful backtraces for bug
reports.

13 years agoFix documentation of VC status indicator in mode line.
Eli Zaretskii [Thu, 30 Sep 2010 12:44:25 +0000 (14:44 +0200)]
Fix documentation of VC status indicator in mode line.

 lisp/vc/vc-hooks.el (vc-default-mode-line-string): Doc fix.
 doc/emacs/maintaining.texi (VC Mode Line): Mention all the possible VC
 status indicator characters.

13 years agognus-agent.el (gnus-agent-add-group): Fix call to gnus-completing-read.
Julien Danjou [Thu, 30 Sep 2010 10:25:45 +0000 (10:25 +0000)]
gnus-agent.el (gnus-agent-add-group): Fix call to gnus-completing-read.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 30 Sep 2010 08:39:23 +0000 (08:39 +0000)]
Merge changes made in Gnus trunk.

nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
 gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
 gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
 mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
 Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.

13 years agolisp/server.el: Use just one way to pass the Emacs PID to emacsclient.
Juanma Barranquero [Thu, 30 Sep 2010 02:53:26 +0000 (04:53 +0200)]
lisp/server.el: Use just one way to pass the Emacs PID to emacsclient.

* lib-src/emacsclient.c (get_server_config): Don't read Emacs pid from
  the authentication file.

* lisp/server.el (server-start): Don't write pid to the authentication file.
  (server-create-tty-frame): Don't send pid.
  (server-process-filter): Send pid at the start of every connection.

13 years agoetc/NEWS updates.
Glenn Morris [Thu, 30 Sep 2010 02:23:25 +0000 (19:23 -0700)]
etc/NEWS updates.