bpt/emacs.git
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.

13 years agoRemove some diary-lib function aliases, obsolete since 22.1.
Glenn Morris [Thu, 30 Sep 2010 02:18:24 +0000 (19:18 -0700)]
Remove some diary-lib function aliases, obsolete since 22.1.

* lisp/calendar/diary-lib.el (view-diary-entries, list-diary-entries)
(show-all-diary-entries): Remove obsolete function aliases.

13 years agoRemove some obsolete appt.el code.
Glenn Morris [Thu, 30 Sep 2010 02:15:17 +0000 (19:15 -0700)]
Remove some obsolete appt.el code.

* lisp/calendar/appt.el (appt-issue-message, appt-visible, appt-msg-window):
Remove options, obsolete since 22.1.
(appt-display-format, appt-display-message): Remove
backwards-compatibility code.
(appt-check): No longer check appt-issue-message.
(appt-make-list): No longer autoload it.  Doc fix.  No longer
activate the package.

13 years ago* src/Makefile.in: ecrt0.c does not exist anymore, do not mention it.
Dan Nicolaescu [Thu, 30 Sep 2010 01:20:51 +0000 (18:20 -0700)]
* src/Makefile.in: ecrt0.c does not exist anymore, do not mention it.

13 years agosrc/w32console.c (vga_stdcolor_name): Remove unused function.
Juanma Barranquero [Thu, 30 Sep 2010 00:09:04 +0000 (02:09 +0200)]
src/w32console.c (vga_stdcolor_name): Remove unused function.

13 years agoconfigure.in: Don't enable ImageMagick unless HAVE_X11.
Romain Francoise [Wed, 29 Sep 2010 18:52:34 +0000 (20:52 +0200)]
configure.in: Don't enable ImageMagick unless HAVE_X11.

13 years agolib-src/makefile.w32-in (../src/config.h): Remove target, it is stale.
Juanma Barranquero [Wed, 29 Sep 2010 15:07:34 +0000 (17:07 +0200)]
lib-src/makefile.w32-in (../src/config.h): Remove target, it is stale.

13 years agoClean up gnutls.c coding style to conform with the Emacs style.
Lars Magne Ingebrigtsen [Wed, 29 Sep 2010 14:30:45 +0000 (16:30 +0200)]
Clean up gnutls.c coding style to conform with the Emacs style.
Remove some debugging messages.
Cast some parameters to avoid compilation warnings.

13 years agont/configure.bat: Fix condition for copying paths.h into ../src/epaths.h.
Eli Zaretskii [Wed, 29 Sep 2010 13:58:11 +0000 (15:58 +0200)]
nt/configure.bat: Fix condition for copying paths.h into ../src/epaths.h.

13 years ago* lisp/gnus/nnmail.el (group, group-art-list, group-art):
Stefan Monnier [Wed, 29 Sep 2010 13:38:27 +0000 (15:38 +0200)]
* lisp/gnus/nnmail.el (group, group-art-list, group-art):
Remove unneeded directives.

13 years agoDo the gnutls handshake from the reader loop, instead of looping over
Lars Magne Ingebrigtsen [Wed, 29 Sep 2010 13:25:24 +0000 (15:25 +0200)]
Do the gnutls handshake from the reader loop, instead of looping over
the handshake from Emacs Lisp.

13 years agoMake sure all reads/writes to gnutls streams go via the gnutls functions.
Lars Magne Ingebrigtsen [Wed, 29 Sep 2010 12:48:29 +0000 (14:48 +0200)]
Make sure all reads/writes to gnutls streams go via the gnutls functions.

13 years agoFix bug #7128.
Eli Zaretskii [Wed, 29 Sep 2010 09:52:43 +0000 (11:52 +0200)]
Fix bug #7128.

 xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to NEUTRAL_DIR.
 (handle_invisible_prop, iterate_out_of_display_property)
 (next_element_from_buffer): If bidi_it.first_elt is set, call
 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.

13 years agoxdisp.c (string_buffer_position): Remove unused variables.
Eli Zaretskii [Wed, 29 Sep 2010 09:11:58 +0000 (05:11 -0400)]
xdisp.c (string_buffer_position): Remove unused variables.

13 years agoFix int/EMACS_INT use in xdisp.c and print.c.
Eli Zaretskii [Wed, 29 Sep 2010 09:06:53 +0000 (05:06 -0400)]
Fix int/EMACS_INT use in xdisp.c and print.c.

 print.c (print_object): Fix format string and argument types for
 printing a Lisp_Misc_Marker.
 xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
 (load_overlay_strings, get_overlay_strings_1)
 (get_overlay_strings, forward_to_next_line_start)
 (back_to_previous_visible_line_start, reseat, reseat_to_string)
 (get_next_display_element, next_element_from_string)
 (next_element_from_c_string, next_element_from_buffer)
 (move_it_vertically_backward, move_it_by_lines, add_to_log)
 (message_dolog, message_log_check_duplicate, message2_nolog)
 (message3, message3_nolog, vmessage, set_message, set_message_1)
 (hscroll_window_tree, text_outside_line_unchanged_p)
 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
 (find_last_unchanged_at_beg_row)
 (find_first_unchanged_at_end_row, row_containing_pos)
 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
 EMACS_INT for buffer and string positions.
 dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
 (row_containing_pos): Adjust prototype.
 lisp.h (pos_visible_p, message2, message2_nolog, message3)
 (message2_nolog, set_message): Adjust prototypes.

13 years ago* epa.texi (Bug Reports): New section.
Daiki Ueno [Wed, 29 Sep 2010 08:36:38 +0000 (17:36 +0900)]
* epa.texi (Bug Reports): New section.

13 years ago* emacsclient.c (main): Remove unused variables.
Juanma Barranquero [Wed, 29 Sep 2010 08:18:40 +0000 (10:18 +0200)]
* emacsclient.c (main): Remove unused variables.
  (start_daemon_and_retry_set_socket): Use EXIT_FAILURE.

13 years agoRemove unused variable top_srcdir from doc Makefiles.
Glenn Morris [Wed, 29 Sep 2010 04:25:59 +0000 (21:25 -0700)]
Remove unused variable top_srcdir from doc Makefiles.

* doc/emacs/Makefile.in (top_srcdir): Remove unused variable.
* doc/misc/Makefile.in (top_srcdir): Remove unused variable.

13 years agoUse temp-buffers when not displaying the diary.
Glenn Morris [Wed, 29 Sep 2010 04:19:30 +0000 (21:19 -0700)]
Use temp-buffers when not displaying the diary.

* lisp/calendar/diary-lib.el (diary-list-entries): Use temp buffers when
not displaying the diary.
(diary-add-to-list): If no buffer-file-name, fall back to diary-file.
* lisp/calendar/appt.el (appt-check): No longer need to kill diary.

13 years agoMinor diary-lib change.
Glenn Morris [Wed, 29 Sep 2010 04:10:34 +0000 (21:10 -0700)]
Minor diary-lib change.

* lisp/calendar/diary-lib.el (diary-list-entries): Move the
"Preparing..." message entirely here.
(diary-simple-display, diary-fancy-display): Move "Preparing..."
messages to diary-list-entries.
(diary-include-other-diary-files): Use LIST-ONLY rather than setting
diary-display-function.

13 years agoMinor diary include improvement.
Glenn Morris [Wed, 29 Sep 2010 04:00:50 +0000 (21:00 -0700)]
Minor diary include improvement.
* lisp/calendar/diary-lib.el (diary-include-other-diary-files):
Trap some recursive includes.

13 years ago* lisp/calendar/appt.el (appt-activate): Check diary file.
Glenn Morris [Wed, 29 Sep 2010 03:54:03 +0000 (20:54 -0700)]
* lisp/calendar/appt.el (appt-activate): Check diary file.

13 years agoRemove Emacs 21 stuff.
Katsumi Yamaoka [Wed, 29 Sep 2010 01:09:50 +0000 (01:09 +0000)]
Remove Emacs 21 stuff.

mm-util.el (mm-codepage-iso-8859-list, mm-charset-eval-alist, mm-mime-charset): Comment fix.
rfc2047.el (rfc2047-syntax-table): Comment fix.
utf7.el (utf7-utf-16-coding-system): Comment fix.
nnrss.el (nnrss-read-server-data, nnrss-read-group-data): Use `load' rather than `insert-file-contents' and `eval-region'.
pgg.el (pgg-run-at-time-1): Define it for XEmacs only; fix if/else construction.
time-date.el: No need to require cl for Emacs 21.

13 years ago* src/gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
Stefan Monnier [Tue, 28 Sep 2010 21:55:34 +0000 (23:55 +0200)]
* src/gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
(Fgnutls_boot): Use SDATA.
(Fgnutls_handshake): Remove unused var `max_log_level'.

13 years agoFix comments; remove Emacs 21 stuff.
Katsumi Yamaoka [Tue, 28 Sep 2010 12:35:18 +0000 (12:35 +0000)]
Fix comments; remove Emacs 21 stuff.

mail-source.el (mail-source-report-new-mail)
message.el (message-default-mail-headers)
mm-decode.el (mm-valid-image-format-p): Comment fix.
mml2015.el (mml2015-use): Don't bind recursive-load-depth-limit.

13 years agoMerge changes made in Gnus trunk.
Julien Danjou [Tue, 28 Sep 2010 11:47:12 +0000 (11:47 +0000)]
Merge changes made in Gnus trunk.

gnus-gravatar.el (gnus-gravatar-insert): Fix search backward.
gnus-gravatar.el (gnus-gravatar-insert): Fix search in case mail-address contains the same string as real-name.
gnus-gravatar.el (gnus-gravatar-insert): More robust search.
gnus-ems.el (gnus-put-image): Revert Lars, change and insert non-blank in header, otherwise it'll get stripped.

13 years agonnimap.el (auth-source-forget-user-or-password, auth-source-user-or-password): Autoload.
Katsumi Yamaoka [Tue, 28 Sep 2010 05:12:21 +0000 (05:12 +0000)]
nnimap.el (auth-source-forget-user-or-password, auth-source-user-or-password): Autoload.

13 years ago* lisp/calendar/appt.el (appt-check): Minor simplification.
Glenn Morris [Tue, 28 Sep 2010 03:00:09 +0000 (20:00 -0700)]
* lisp/calendar/appt.el (appt-check): Minor simplification.

13 years agoMinor NEWS fix.
Glenn Morris [Tue, 28 Sep 2010 02:41:18 +0000 (19:41 -0700)]
Minor NEWS fix.

13 years ago* configure.in (HAVE_GNUTLS): Add a description to make autoheader happy.
Glenn Morris [Tue, 28 Sep 2010 02:22:37 +0000 (19:22 -0700)]
* configure.in (HAVE_GNUTLS): Add a description to make autoheader happy.

13 years agoFix message-* user options that differ from Gnus trunk.
Katsumi Yamaoka [Tue, 28 Sep 2010 02:13:41 +0000 (02:13 +0000)]
Fix message-* user options that differ from Gnus trunk.

message.el (message-from-style, message-interactive, message-signature): Remove comment.
message.el (message-cite-prefix-regexp): Default to mail-citation-prefix-regexp always.
message.el (message-sendmail-envelope-from): Comment fix.
message.el (message-yank-prefix): Default to mail-yank-prefix always.
message.el (message-indentation-spaces): Default to mail-indentation-spaces always.
message.el (message-signature-file): Default to mail-signature-file always.
sendmail.el (mail-citation-prefix-regexp): Remove "}" from citation prefix.

13 years agont/*.c: Use const char*; remove unused code.
Juanma Barranquero [Tue, 28 Sep 2010 00:55:08 +0000 (02:55 +0200)]
nt/*.c: Use const char*; remove unused code.

* addpm.c (entry, add_registry, main):
* addsection.c (file_data, open_input_file, open_output_file)
  (find_section, PTR_TO_OFFSET, copy_executable_and_add_section)
  (COPY_CHUNK):
* cmdproxy.c (vfprintf, fprintf, printf, fail, warn, skip_space)
  (skip_nonspace, get_next_token, search_dir, make_absolute)
  (spawn, main):
* preprep.c (file_data, open_input_file, open_output_file)
  (open_inout_file, find_section, PTR_TO_OFFSET, COPY_CHUNK, main):
  Use const char*.

* cmdproxy.c (stdin): Don't define, not used.
  (main): Don't assign remlen after last use.

13 years agoMerge changes from emacs-23 branch.
Juanma Barranquero [Mon, 27 Sep 2010 23:25:27 +0000 (01:25 +0200)]
Merge changes from emacs-23 branch.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 27 Sep 2010 23:07:47 +0000 (23:07 +0000)]
Merge changes made in Gnus trunk.

sieve-manage.el (sieve-manage-default-stream): Make default stream customizable.
nnimap.el (nnimap-request-accept-article): Send a "." at the end, which may or may not help.
nnimap.el (nnimap-open-connection): Have the `network' nnimap connection use STARTTLS opportunistically.
gnus-sum.el (gnus-summary-insert-new-articles): Copy the old-high watermark so that nothing alters it while scanning for new messages.
nnimap.el (nnimap-request-accept-article): Remove the "." at the end, since some servers don't like it.
nnimap.el (nnimap-open-connection): Forget credentials if the server says the password was wrong.
nnimap.el (nnimap-parse-line): Protect against invalid data.
gnus-art.el, gnus-sum.el, nnimap.el: Allow setting the partial fetch per server instead of globally.
message.el (message-cite-prefix-regexp): Revert last edit.
nnmairix.el: Make it work with latest changes in nnimap.
gnus-sum.el (gnus-summary-move-article): Don't alter gnus-newsgroup-active.
gnus-sum.el (gnus-summary-exit): Kill the article buffer later, so that you don't get flashes of other buffers.
nnimap.el: Fix up partial nnimap fetching.
gnus-sum.el: Rework the `/ N' based on the new gnus-newsgroup-highest variable.

13 years ago* Makefile.in (ELCFILES): Update.
Andreas Schwab [Mon, 27 Sep 2010 21:32:36 +0000 (23:32 +0200)]
* Makefile.in (ELCFILES): Update.

13 years agoCompile with imagemagick support by default.
Lars Magne Ingebrigtsen [Mon, 27 Sep 2010 20:53:35 +0000 (22:53 +0200)]
Compile with imagemagick support by default.

13 years ago* process.c (wait_reading_process_output): Add missing FD_CLR
Jan D [Mon, 27 Sep 2010 20:43:03 +0000 (22:43 +0200)]
* process.c (wait_reading_process_output): Add missing FD_CLR
for write_mask (must mirror connect_wait_mask).

13 years ago* lisp/emacs-lisp/float-sup.el (e): Remove.
Stefan Monnier [Mon, 27 Sep 2010 20:11:33 +0000 (22:11 +0200)]
* lisp/emacs-lisp/float-sup.el (e): Remove.

13 years ago* emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Avoid
Andreas Schwab [Mon, 27 Sep 2010 17:14:58 +0000 (19:14 +0200)]
* emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Avoid
infinite recursion on erroneous lambda form.  (Bug#7114)

13 years agoAdd gnutls logging and clean up various gnutls bits.
Lars Magne Ingebrigtsen [Mon, 27 Sep 2010 16:44:31 +0000 (18:44 +0200)]
Add gnutls logging and clean up various gnutls bits.

From: Teodor Zlatanov  <tzz@lifelogs.com>

13 years agosrc/w32.c: Remove unused code and make static many functions.
Juanma Barranquero [Mon, 27 Sep 2010 16:27:37 +0000 (18:27 +0200)]
src/w32.c: Remove unused code and make static many functions.

(g_b_init_get_sid_identifier_authority, GetSidIdentifierAuthority_Proc)
(get_sid_identifier_authority): Remove, not used.
(globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
(init_winsock): Remove useless assignment.
(open_process_token, get_token_information, lookup_account_sid)
(get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
(get_security_descriptor_owner, get_security_descriptor_group)
(is_valid_sid, equal_sid, get_length_sid, copy_sid)
(get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
(is_unc_volume, GetCachedVolumeInformation, get_volume_info)
(is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
(unc_volume_file_attributes, convert_from_time_t)
(create_toolhelp32_snapshot, process32_first, process32_next)
(open_thread_token, impersonate_self, revert_to_self)
(get_process_memory_info, get_process_working_set_size)
(global_memory_status, global_memory_status_ex, socket_to_fd)
(shutdown_handler): Make static.

13 years ago* dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
Michael Albinus [Mon, 27 Sep 2010 15:34:04 +0000 (17:34 +0200)]
* dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
(xd_pending_messages): Functions removed.
(xd_read_queued_messages): Add parameters fd, *data, for_read in
order to be compatible with add_read_fd.  Determine bus from data,
and call xd_read_message just for this bus.
(xd_add_watch): Use xd_read_queued_messages as callback function.
Add data.

* lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.

13 years ago(emacs_gnutls_read): Don't infloop while reading.
Lars Magne Ingebrigtsen [Mon, 27 Sep 2010 15:03:58 +0000 (17:03 +0200)]
(emacs_gnutls_read): Don't infloop while reading.

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Mon, 27 Sep 2010 14:56:27 +0000 (16:56 +0200)]
Fix typos in ChangeLogs.

13 years agoAdd debugging to the gnutls library, and finish handshaking when it's done.
Lars Magne Ingebrigtsen [Mon, 27 Sep 2010 14:35:22 +0000 (16:35 +0200)]
Add debugging to the gnutls library, and finish handshaking when it's done.

13 years ago* dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
Michael Albinus [Mon, 27 Sep 2010 13:27:54 +0000 (15:27 +0200)]
* dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
(Bug#7113)

13 years agonnimap.el (utf7): Required.
Lars Magne Ingebrigtsen [Mon, 27 Sep 2010 13:22:21 +0000 (13:22 +0000)]
nnimap.el (utf7): Required.

13 years ago* dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
Michael Albinus [Mon, 27 Sep 2010 12:44:26 +0000 (14:44 +0200)]
* dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
(Bug#7113)

13 years agognus-html.el (gnus-html-wash-tags): Decode URL entities to avoid handing broken links...
Gnus developers [Mon, 27 Sep 2010 12:22:22 +0000 (12:22 +0000)]
gnus-html.el (gnus-html-wash-tags): Decode URL entities to avoid handing broken links to browse-url.
nnimap.el (nnimap-request-accept-article): Message the error on error.

13 years agoFix typos.
Juanma Barranquero [Mon, 27 Sep 2010 11:53:44 +0000 (13:53 +0200)]
Fix typos.

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Mon, 27 Sep 2010 10:25:04 +0000 (12:25 +0200)]
Fix typos in ChangeLogs.

13 years ago* dbusbind.c (syms_of_dbusbind): Unset $DBUS_FATAL_WARNINGS.
Michael Albinus [Mon, 27 Sep 2010 08:59:16 +0000 (10:59 +0200)]
* dbusbind.c (syms_of_dbusbind): Unset $DBUS_FATAL_WARNINGS.
(Bug#7113)

13 years agomerge trunk
Kenichi Handa [Mon, 27 Sep 2010 05:42:43 +0000 (14:42 +0900)]
merge trunk

13 years agoRemove restriction on the number of glyphs in one composition.
Kenichi Handa [Mon, 27 Sep 2010 05:27:28 +0000 (14:27 +0900)]
Remove restriction on the number of glyphs in one composition.

13 years agotar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format.
Kenichi Handa [Mon, 27 Sep 2010 05:00:46 +0000 (14:00 +0900)]
tar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format.

13 years agointernational/mule-diag.el (describe-character-set): Use princ with proper print...
Kenichi Handa [Mon, 27 Sep 2010 04:52:56 +0000 (13:52 +0900)]
international/mule-diag.el (describe-character-set): Use princ with proper print-length and print-level instead of insert.

13 years agognus-art.el (gnus-mime-delete-part): Fix Lisp type of byte(s).
Katsumi Yamaoka [Mon, 27 Sep 2010 03:16:55 +0000 (03:16 +0000)]
gnus-art.el (gnus-mime-delete-part): Fix Lisp type of byte(s).

13 years agoUpdate ChangeLogs.
Katsumi Yamaoka [Sun, 26 Sep 2010 23:15:50 +0000 (23:15 +0000)]
Update ChangeLogs.

13 years agomail-source.el (mail-source-value): Revert previous patch.
Gnus developers [Sun, 26 Sep 2010 23:01:31 +0000 (23:01 +0000)]
mail-source.el (mail-source-value): Revert previous patch.
gnus-picon.el: Inhibit showing picons for top level domains.
gnus-art.el (gnus-article-treat-body-boundary): Fix length computing.
gnus-news.texi: Mention nnimap-inbox.
nnimap.el (nnimap-request-expire-articles): Compress ranges before deletion.
nnimap.el (nnimap-retrieve-headers): Don't select the group, because that's already done by nnimap-possibly-change-group.
gnus-html.el (gnus-html-show-images): Fix gnus-html-display-image arguments.
gnus-html.el (gnus-html-wash-images): Fix spec computing to include start/end.
nnimap.el: Store the IMAP greeting, so that we can tell what kind of server we're talking to.
gnus.el (gnus): Give a final warning after startup.
gnus-ems.el (gnus-create-image): Ignore all image-creation errors.
nndraft.el (nndraft-request-expire-articles): Fetch the expiry target for the correct group.
nnmh.el (nnmh-request-expire-articles): Don't try to fetch the expiry target here, because we don't know the Gnus name of the group.
nnimap.el (nnimap-get-whole-article): Remove the data that may have arrived before the FETCH data.
gnus-agent.el (gnus-agent-retrieve-headers): Don't propagate `fetch-old'.
gnus-agent.el (gnus-agent-read-servers-validate): Change the level for the "Ignoring disappeared server" to something low.
nndoc.el (nndoc-request-list): Return success always.