bpt/emacs.git
13 years agoAdd GnuTLS support for W32.
Ted Zlatanov [Mon, 25 Apr 2011 01:29:31 +0000 (20:29 -0500)]
Add GnuTLS support for W32.

* nt/configure.bat: New options --without-gnutls and --lib, new build
variable USER_LIBS, automatically detect GnuTLS.  Copies the PNG
library setup with trivial modifications.
* nt/INSTALL: Add instructions for GnuTLS support.
* nt/gmake.defs: Prefix USER_LIBS with -l.

13 years agoAdd GnuTLS support for W32.
Ted Zlatanov [Mon, 25 Apr 2011 01:28:55 +0000 (20:28 -0500)]
Add GnuTLS support for W32.

* lib-src/makefile.w32-in (obj): Added gnutls.o.

13 years ago* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
Daniel Colascione [Mon, 25 Apr 2011 00:31:41 +0000 (17:31 -0700)]
* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
correct match group (bug#8438).

13 years agoshr.el (shr-tag-sup, shr-tag-sub): New functions.
Lars Magne Ingebrigtsen [Sun, 24 Apr 2011 22:12:21 +0000 (22:12 +0000)]
shr.el (shr-tag-sup, shr-tag-sub): New functions.

13 years agoRestore ability to show a restricted list of packages in Package Menu.
Chong Yidong [Sun, 24 Apr 2011 20:32:23 +0000 (16:32 -0400)]
Restore ability to show a restricted list of packages in Package Menu.

* emacs-lisp/package.el (package-built-in-p): Fix typo.
(package-menu--generate): New arg specifying packages to show.
(package-menu-refresh, package-menu-execute, list-packages):
Callers changed.
(package-show-package-list): New function.

* finder.el (finder-list-matches): Use package-show-package-list
instead of deleted package--list-packages.

13 years agoAdd vc-annotate-goto-line.
Chong Yidong [Sun, 24 Apr 2011 19:37:47 +0000 (15:37 -0400)]
Add vc-annotate-goto-line.
* vc/vc-annotate.el (vc-annotate-goto-line): New command.  Based
on a previous implementation by Juanma Barranquero (Bug#8366).
(vc-annotate-mode-map): Bind it to RET.

13 years agoFix next-file command in etags.el.
Uday S Reddy [Sun, 24 Apr 2011 18:47:17 +0000 (14:47 -0400)]
Fix next-file command in etags.el.

* lisp/progmodes/etags.el (next-file): Don't use set-buffer to change
buffers (Bug#8478).

* doc/lisp/maintaining.texi (List Tags): Document next-file.

13 years agoRevert undocumented change to .dir-locals.el in 2011-04-01T17:19:52Z!monnier@iro...
Chong Yidong [Sun, 24 Apr 2011 18:34:57 +0000 (14:34 -0400)]
Revert undocumented change to .dir-locals.el in 2011-04-01T17:19:52Z!monnier@iro.umontreal.ca.

This bumped fill-column from 70 to 79, but was not documented in the
commit log, and appears to be a mistake.

13 years agoMinor cleanup in src/xdisp.c.
Eli Zaretskii [Sun, 24 Apr 2011 16:59:37 +0000 (19:59 +0300)]
Minor cleanup in src/xdisp.c.

 src/xdisp.c (handle_single_display_spec): Rename the
 display_replaced_before_p argument into display_replaced_p, to
 make it consistent with the commentary.  Fix typos in the
 commentary.

13 years agoMinor cleanup in src/textprop.c.
Eli Zaretskii [Sun, 24 Apr 2011 16:28:57 +0000 (19:28 +0300)]
Minor cleanup in src/textprop.c.

 src/textprop.c (syms_of_textprop): Remove dead code.
 (copy_text_properties): Delete obsolete commentary about an
 interface that was deleted long ago.  Fix typos in the description
 of arguments.

13 years agoRepair the MSDOS build following latest changes.
Eli Zaretskii [Sun, 24 Apr 2011 12:48:30 +0000 (15:48 +0300)]
Repair the MSDOS build following latest changes.

 msdos/sedlibmk.inp (am_libgnu_a_OBJECTS): Edit out
 allocator.$(OBJEXT).  Add editing for the new GNULIB_* and
 REPLACE_* variables.
 src/msdos.c (XMenuActivate, XMenuAddSelection): Adjust argument list
 to changes in oldXMenu/XMenu.h from 2011-04-16.
 <menu_help_message, prev_menu_help_message>: Constify.
 (IT_menu_make_room): menu->help_text is now `const char **';
 adjust.
 src/msdos.h (XMenuActivate, XMenuAddSelection): Adjust prototypes
 to changes in oldXMenu/XMenu.h from 2011-04-16.
 (struct XMenu): Declare `help_text' `const char **'.
 src/xfaces.c <Qunspecified>: Make extern again.
 src/syntax.c: Include sys/types.h before including regex.h, as
 required by Posix.

13 years agoFallout from resurrecting doprnt.
Eli Zaretskii [Sun, 24 Apr 2011 09:00:03 +0000 (12:00 +0300)]
Fallout from resurrecting doprnt.

 src/doc.c (get_doc_string): Improve the format passed to `error'.
 src/doprnt.c (doprnt): Improve commentary.
 src/term.c (init_tty) [MSDOS]: Fix 1st argument to maybe_fatal.
 src/Makefile.in (TAGS): Depend on $(M_FILE) and $(S_FILE), and scan
 them with etags.
 src/makefile.w32-in (TAGS): Depend on $(CURDIR)/m/intel386.h and
 $(CURDIR)/s/ms-w32.h.
 (TAGS-gmake): Scan $(CURDIR)/m/intel386.h and $(CURDIR)/s/ms-w32.h.

13 years agoFix a minor bug in src/makefile.w32-in.
Eli Zaretskii [Sun, 24 Apr 2011 07:15:17 +0000 (10:15 +0300)]
Fix a minor bug in src/makefile.w32-in.

 src/makefile.w32-in (globals.h): Add a dummy recipe, to make any
 changes in globals.h immediately force recompilation.

13 years agoDelete char-direction-table and char-direction.
Eli Zaretskii [Sun, 24 Apr 2011 07:11:56 +0000 (10:11 +0300)]
Delete char-direction-table and char-direction.

 See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00675.html
 for the reasons.

 src/character.c (Fchar_direction): Function deleted.
 (syms_of_character): Don't defsubr it.
 <char-direction-table>: Deleted.
 etc/NEWS: Document the removal.

13 years ago* files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
Chong Yidong [Sun, 24 Apr 2011 00:24:30 +0000 (20:24 -0400)]
* files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).

13 years agoImprove apropos buffer highlighting.
Chong Yidong [Sun, 24 Apr 2011 00:15:26 +0000 (20:15 -0400)]
Improve apropos buffer highlighting.

* lisp/apropos.el (apropos-label-face): Avoid variable-pitch face.
(apropos-accumulator): Doc fix.
(apropos-function, apropos-macro, apropos-command)
(apropos-variable, apropos-face, apropos-group, apropos-widget)
(apropos-plist): Add face property.
(apropos-symbols-internal): Fix indentation.
(apropos-print): Simplify help, and recognize apropos-multi-type.
(apropos-print-doc): Use button-type-get to extract the button's
face property.  Fill docstring (Bug#8352).

13 years agoFix typos in comments in character.c and textprop.c.
Eli Zaretskii [Sat, 23 Apr 2011 17:19:56 +0000 (20:19 +0300)]
Fix typos in comments in character.c and textprop.c.

13 years agoFix doprnt so it could be used safely in `verror'. (Bug#8435)
Eli Zaretskii [Sat, 23 Apr 2011 10:33:28 +0000 (13:33 +0300)]
Fix doprnt so it could be used safely in `verror'.  (Bug#8435)

 src/doprnt.c: Include limits.h.
 (SIZE_MAX): New macro.
 (doprnt): Return a size_t value.  2nd arg is now size_t.  Many
 local variables are now size_t instead of int or unsigned.
 Improve overflow protection.  Support `l' modifier for integer
 conversions.  Support %l conversion.  Don't assume an EMACS_INT
 argument for integer conversions and for %c.
 src/lisp.h (doprnt): Restore prototype.
 src/makefile.w32-in ($(BLD)/callint.$(O)): Depend on
 $(SRC)/character.h.
 src/Makefile.in (base_obj): Add back doprnt.o.
 src/deps.mk (doprnt.o): Add back prerequisites.
 (callint.o): Depend on character.h.
 src/eval.c (internal_lisp_condition_case): Include the handler
 representation in the error message.
 (verror): Call doprnt instead of vsnprintf.  Fix an off-by-one bug
 when breaking from the loop.
 src/xdisp.c (vmessage): Call doprnt instead of vsnprintf.
 src/callint.c (Fcall_interactively): When displaying error message
 about invalid control letter, pass the character's codepoint, not
 a pointer to its multibyte form.  Improve display of the character
 in octal and display also its hex code.
 src/character.c (char_string): Use %x to display the (unsigned)
 codepoint of an invalid character, to avoid displaying a bogus
 negative value.
 src/font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to
 `error', not SYMBOL_NAME itself.
 src/coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for
 character arguments to `error'.
 src/charset.c (check_iso_charset_parameter): Fix incorrect argument
 to `error' in error message about FINAL_CHAR argument.  Make sure
 FINAL_CHAR is a character, and use %c when it is passed as
 argument to `error'.

13 years agoMerge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef.
Glenn Morris [Sat, 23 Apr 2011 03:07:16 +0000 (20:07 -0700)]
Merge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef.

13 years ago* lisp/gnus/gnus-sum.el (gnus-extra-headers): Bump :version.
Glenn Morris [Sat, 23 Apr 2011 02:18:10 +0000 (19:18 -0700)]
* lisp/gnus/gnus-sum.el (gnus-extra-headers): Bump :version.

13 years agoRevert incorrect change to copyright years.
Glenn Morris [Sat, 23 Apr 2011 02:15:03 +0000 (19:15 -0700)]
Revert incorrect change to copyright years.

13 years agognus-registry.el (gnus-registry-ignore-group-p): Test specifically for the case where...
Teodor Zlatanov [Sat, 23 Apr 2011 00:08:28 +0000 (00:08 +0000)]
gnus-registry.el (gnus-registry-ignore-group-p): Test specifically for the case where `gnus-registry-ignored-groups' is a list of lists, and don't call `gnus-parameter-registry-ignore' otherwise.

13 years agoAdd trailing underscores to appropriate member names, per change 2011-02-14T15:39...
Noah Friedman [Fri, 22 Apr 2011 23:29:02 +0000 (16:29 -0700)]
Add trailing underscores to appropriate member names, per change 2011-02-14T15:39:19Z!tromey@redhat.com of src/lisp.h.

13 years agolisp/eshell/esh-mode.el (find-tag-interactive): Small cleanup.
Juanma Barranquero [Fri, 22 Apr 2011 20:15:21 +0000 (22:15 +0200)]
lisp/eshell/esh-mode.el (find-tag-interactive): Small cleanup.

* eshell/esh-mode.el (find-tag-interactive): Declare function.
  (eshell-find-tag): Remove `with-no-warnings', unneeded now.
  Pass argument NO-DEFAULT to `find-tag-interactive'.

13 years agolisp/buff-menu.el (Buffer-menu--buffers): Fix typo in docstring.
Juanma Barranquero [Fri, 22 Apr 2011 18:49:58 +0000 (20:49 +0200)]
lisp/buff-menu.el (Buffer-menu--buffers): Fix typo in docstring.

Fixes: debbugs:8535

13 years agolisp/progmodes/*.el: Lexical-binding cleanup.
Juanma Barranquero [Fri, 22 Apr 2011 18:44:26 +0000 (20:44 +0200)]
lisp/progmodes/*.el: Lexical-binding cleanup.

13 years agoDoc fixes for package.el.
Chong Yidong [Fri, 22 Apr 2011 02:35:48 +0000 (22:35 -0400)]
Doc fixes for package.el.

* emacs-lisp/package.el (package--builtins, package-alist)
(package-load-descriptor, package-built-in-p, package-activate)
(define-package, package-installed-p)
(package-compute-transaction, package-buffer-info)
(package--push): Doc fix.  Distinguish more clearly between
version strings and version lists.

13 years agonnimap.el (nnimap-user): New backend variable.
Teodor Zlatanov [Fri, 22 Apr 2011 01:01:32 +0000 (01:01 +0000)]
nnimap.el (nnimap-user): New backend variable.
 (nnimap-open-connection-1): Use it.
 (nnimap-credentials): Accept user parameter so it's explicit what user name is desired.

13 years agognus-sum.el (gnus-extra-headers): Add Keywords, Cc, and Gcc to default.
Teodor Zlatanov [Fri, 22 Apr 2011 00:37:01 +0000 (00:37 +0000)]
gnus-sum.el (gnus-extra-headers): Add Keywords, Cc, and Gcc to default.
gnus-registry.el: Mention in comments how to modify `gnus-extra-headers' for proper recipient tracking and that it may already have To and Cc recently, which it does as of this commit.

13 years agognus.el (gnus-registry-ignored-groups): Provide default in gnus.el, not gnus-registry.el.
Teodor Zlatanov [Thu, 21 Apr 2011 22:06:12 +0000 (22:06 +0000)]
gnus.el (gnus-registry-ignored-groups): Provide default in gnus.el, not gnus-registry.el.
gnus-registry.el (gnus-registry-ignored-groups): Remove defcustom.  Explain why in comments.
 (gnus-registry-action): Fix data-header reference to use the extra headers.  Explain in package commentary how to add To and Cc headers to the gnus-extra-headers.
 (gnus-registry-ignored-groups): Adjust defaults to match the parameter.
 (gnus-registry-ignore-group-p): Adjust to take either a group/topic parameter list or a string list in `gnus-registry-ignored-groups'.  Fix logic error.

13 years agolisp/play/*.el: Lexical-binding cleanup.
Juanma Barranquero [Thu, 21 Apr 2011 12:24:46 +0000 (14:24 +0200)]
lisp/play/*.el: Lexical-binding cleanup.

13 years agolisp/play/mpuz.el: Small fixes.
Juanma Barranquero [Thu, 21 Apr 2011 12:06:01 +0000 (14:06 +0200)]
lisp/play/mpuz.el: Small fixes.

* play/mpuz (mpuz-silent): Doc fix.
  (mpuz-mode-map): Move initialization into declaration.
  (mpuz-put-number-on-board): Rename parameter L to COLUMNS.
  (mpuz-letter-to-digit, mpuz-check-all-solved, mpuz-create-buffer):
  Fix typos in docstrings.

13 years agoshr.el (shr-expand-url): Fix typo.
Katsumi Yamaoka [Thu, 21 Apr 2011 02:48:04 +0000 (02:48 +0000)]
shr.el (shr-expand-url): Fix typo.

13 years agolisp/play/doctor.el: Fix typos in docstrings.
Juanma Barranquero [Thu, 21 Apr 2011 02:45:31 +0000 (04:45 +0200)]
lisp/play/doctor.el: Fix typos in docstrings.

13 years agoshr.el (shr-expand-url): Protect against null urls.
Lars Magne Ingebrigtsen [Thu, 21 Apr 2011 02:22:56 +0000 (02:22 +0000)]
shr.el (shr-expand-url): Protect against null urls.

13 years agoshr.el (shr-base): New binding.
Lars Magne Ingebrigtsen [Thu, 21 Apr 2011 00:24:27 +0000 (00:24 +0000)]
shr.el (shr-base): New binding.
 (shr-tag-base): Keep track of <base>.
 (shr-expand-url): New function used throughout.

13 years agolisp/vc/vc.el (ediff-vc-internal): Declare function.
Juanma Barranquero [Wed, 20 Apr 2011 23:34:00 +0000 (01:34 +0200)]
lisp/vc/vc.el (ediff-vc-internal): Declare function.

13 years ago* lisp/shell.el: Use lexical-binding and std completion UI.
Stefan Monnier [Wed, 20 Apr 2011 22:31:06 +0000 (19:31 -0300)]
* lisp/shell.el: Use lexical-binding and std completion UI.
(shell-filter-ctrl-a-ctrl-b): Work as a preoutput filter.
(shell-mode): Put shell-filter-ctrl-a-ctrl-b on
comint-preoutput-filter-functions rather than on
comint-output-filter-functions.
(shell-command-completion, shell--command-completion-data)
(shell-filename-completion, shell-environment-variable-completion)
(shell-c-a-p-replace-by-expanded-directory): New functions.
(shell-dynamic-complete-functions, shell-dynamic-complete-command)
(shell-dynamic-complete-filename, shell-replace-by-expanded-directory)
(shell-dynamic-complete-environment-variable): Use them.
(shell-dynamic-complete-as-environment-variable)
(shell-dynamic-complete-as-command): Remove.
(shell-match-partial-variable): Match past point.
* lisp/comint.el: Clean up use of completion-at-point-functions.
(comint-completion-at-point): New function.
(comint-mode): Use it completion-at-point-functions.
(comint-dynamic-complete): Make it obsolete.
(comint-replace-by-expanded-history-before-point): Add dry-run arg.
(comint-c-a-p-replace-by-expanded-history): New function.
(comint-dynamic-complete-functions)
(comint-replace-by-expanded-history): Use it.
* lisp/minibuffer.el (completion-table-with-terminator): Allow dynamic
termination strings.  Try harder to avoid second try-completion.
(completion-in-region-mode-map): Disable bindings that don't work yet.

13 years agognus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix loop bugs.
Teodor Zlatanov [Wed, 20 Apr 2011 22:12:08 +0000 (22:12 +0000)]
gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix loop bugs.
 (gnus-registry-ignored-groups): New variable.
 (gnus-registry-ignore-group-p): Use it.
 (gnus-registry-handle-action): Use `gnus-registry-ignore-group-p' and set the destination group to nil (same as delete) if it's ignored.

13 years ago* lisp/comint.el: Use lexical-binding. Use std completion UI. Require CL.
Stefan Monnier [Wed, 20 Apr 2011 19:05:50 +0000 (16:05 -0300)]
* lisp/comint.el: Use lexical-binding.  Use std completion UI.  Require CL.
(comint-dynamic-complete-functions): Use comint-filename-completion.
(comint-completion-addsuffix): Tweak custom type.
(comint-filename-completion, comint--common-suffix)
(comint--common-quoted-suffix, comint--table-subvert)
(comint--complete-file-name-data): New functions.
(comint-dynamic-complete-as-filename, comint-dynamic-complete-filename)
(comint-dynamic-list-filename-completions): Use them.
(comint-dynamic-simple-complete): Make obsolete.
* lisp/minibuffer.el (completion-in-region-mode):
Keep completion-in-region-mode--predicate global.
(completion-in-region--postch):
Assume completion-in-region-mode--predicate is not null.

13 years ago* lisp/progmodes/flymake.el (flymake-start-syntax-check-process): Obey `dir'.
Stefan Monnier [Wed, 20 Apr 2011 18:08:21 +0000 (15:08 -0300)]
* lisp/progmodes/flymake.el (flymake-start-syntax-check-process): Obey `dir'.

13 years ago* lisp/vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since
Stefan Monnier [Wed, 20 Apr 2011 17:39:39 +0000 (14:39 -0300)]
* lisp/vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since
we're in VC after all.

13 years ago* lisp/vc/vc.el (vc-diff-build-argument-list-internal)
Christoph Scholtes [Wed, 20 Apr 2011 17:33:09 +0000 (14:33 -0300)]
* lisp/vc/vc.el (vc-diff-build-argument-list-internal)
(vc-version-ediff, vc-ediff): New functions.
(vc-version-diff): Use vc-diff-build-argument-list-internal.
* doc/emacs/maintaining.texi (Old Revisions): Add paragraph on new function
vc-ediff.
* etc/NEWS: Document new function `vc-ediff'.

13 years ago* lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
Stefan Monnier [Wed, 20 Apr 2011 17:28:07 +0000 (14:28 -0300)]
* lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
add sanity check.

13 years ago* Makefile.in (config.status): Don't erase in case of error.
Stefan Monnier [Wed, 20 Apr 2011 17:23:30 +0000 (14:23 -0300)]
* Makefile.in (config.status): Don't erase in case of error.
In case it disappeared, rebuild it with `configure'.

13 years ago* lisp/obsolete/erc-hecomplete.el: Make obsolete.
Stefan Monnier [Wed, 20 Apr 2011 17:18:34 +0000 (14:18 -0300)]
* lisp/obsolete/erc-hecomplete.el: Make obsolete.
* obsolete/: Standardize obsolescence info in the header.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 20 Apr 2011 10:23:12 +0000 (06:23 -0400)]
Auto-commit of loaddefs files.

13 years agoAuto-commit of generated files.
Glenn Morris [Wed, 20 Apr 2011 10:18:10 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years ago* configure.in (use_mmap_for_buffers): Set to yes on Cygwin.
Ken Brown [Wed, 20 Apr 2011 02:18:13 +0000 (22:18 -0400)]
* configure.in (use_mmap_for_buffers): Set to yes on Cygwin.

13 years agoChangeLog whitespace fix (no need to merge to trunk).
Glenn Morris [Wed, 20 Apr 2011 02:11:41 +0000 (19:11 -0700)]
ChangeLog whitespace fix (no need to merge to trunk).

13 years agosolar.el fixes.
Glenn Morris [Wed, 20 Apr 2011 02:09:06 +0000 (19:09 -0700)]
solar.el fixes.

* lisp/calendar/solar.el (solar-horizontal-coordinates):
Use the longitude argument rather than `calendar-longitude' (15yr old bug).
(solar-date-next-longitude): Remove unused locals.

13 years agognus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
Katsumi Yamaoka [Wed, 20 Apr 2011 00:43:48 +0000 (00:43 +0000)]
gnus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
 Don't use mail-header that looks an internal function of mailheader.el.

13 years ago* lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
Stefan Monnier [Tue, 19 Apr 2011 15:33:34 +0000 (12:33 -0300)]
* lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
(octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
multi-line comments as well.

13 years agolisp/*.el: Lexical-binding cleanup.
Juanma Barranquero [Tue, 19 Apr 2011 13:44:55 +0000 (15:44 +0200)]
lisp/*.el: Lexical-binding cleanup.

13 years agoSupport buffers > 2GB on 64-bit hosts.
Eli Zaretskii [Tue, 19 Apr 2011 10:48:30 +0000 (13:48 +0300)]
Support buffers > 2GB on 64-bit hosts.

 src/insdel.c (make_gap_larger): Remove limitation of buffer size
 to <= INT_MAX.
 src/syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of
 gl_state.e_property when gl_state.object is Qt.

13 years agocalendar housekeeping prompted by lexical-binding.
Glenn Morris [Tue, 19 Apr 2011 04:11:01 +0000 (21:11 -0700)]
calendar housekeeping prompted by lexical-binding.

* lisp/calendar/appt.el (appt-make-list):
* lisp/calendar/cal-china.el (calendar-chinese-date-string):
* lisp/calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
(diary-hebrew-yahrzeit):
* lisp/calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
* lisp/calendar/calendar.el (calendar-generate-window):
* lisp/calendar/time-date.el (time-to-days):
Remove unused local variables.

* lisp/calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
optional argument `style'.

* lisp/calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
(cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
(cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
(cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
* lisp/calendar/cal-html.el (cal-html-insert-minical):
* lisp/calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
(calendar-mark-date-pattern):
Prefix "unused" locals.

13 years agoAllow glyphless-char-display to distinguish between X and text terminals.
Chong Yidong [Mon, 18 Apr 2011 23:21:31 +0000 (19:21 -0400)]
Allow glyphless-char-display to distinguish between X and text terminals.
Use this for Tabulated List mode.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom
glyphless-char-display table.
(tabulated-list-glyphless-char-display): New var.

* src/term.c (produce_glyphless_glyph): Handle cons cell entry in
glyphless-char-display.

* src/xdisp.c (lookup_glyphless_char_display)
(produce_glyphless_glyph): Handle cons cell entry in
glyphless-char-display.
(Vglyphless_char_display): Document it.

13 years agognus-registry.el, registry.el: Silence the byte compiler.
Katsumi Yamaoka [Mon, 18 Apr 2011 22:59:02 +0000 (22:59 +0000)]
gnus-registry.el, registry.el: Silence the byte compiler.

gnus-registry.el: Eliminate cl functions.
 (gnus-registry-sort-addresses): New function that replaces mapcan.
 (gnus-registry-action, gnus-registry-spool-action)
 (gnus-registry-split-fancy-with-parent)
 (gnus-registry-fetch-recipients-fast): Use it.
 (gnus-registry-import-eld): Replace delete* with dolist + delq.
registry.el (initialize-instance, registry-lookup)
 (registry-lookup-breaks-before-lexbind, registry-lookup-secondary)
 (registry-lookup-secondary-value, registry-search, registry-delete)
 (registry-insert, registry-reindex, registry-size, registry-prune):
 Use eval-and-compile.

13 years ago* lisp/vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" to acknowledgments.
Sam Steingold [Mon, 18 Apr 2011 20:35:18 +0000 (16:35 -0400)]
* lisp/vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" to acknowledgments.

13 years agoAuto-commit of generated files.
Glenn Morris [Mon, 18 Apr 2011 10:17:49 +0000 (06:17 -0400)]
Auto-commit of generated files.

13 years agoFix a bug in time functions when timezone is changed on Windows.
Eli Zaretskii [Mon, 18 Apr 2011 08:33:58 +0000 (11:33 +0300)]
Fix a bug in time functions when timezone is changed on Windows.

 src/s/ms-w32.h (localtime): Redirect to sys_localtime.
 src/w32.c: Include <time.h>.
 (sys_localtime): New function.

13 years agoMerge from gnulib.
Paul Eggert [Mon, 18 Apr 2011 04:03:18 +0000 (21:03 -0700)]
Merge from gnulib.

13 years agoMinor redisplay cleanups.
Chong Yidong [Sun, 17 Apr 2011 18:40:55 +0000 (14:40 -0400)]
Minor redisplay cleanups.

* src/dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): Add missing
definition for no-X builds.

* src/termhooks.h (FRAME_WINDOW_P): Remove duplicated definitions.

* src/xdisp.c (get_next_display_element): Remove unnecessary ifdefs.

13 years ago* etc/CONTRIBUTE: Recommend bug-gnu-emacs for patches.
Glenn Morris [Sun, 17 Apr 2011 02:30:56 +0000 (19:30 -0700)]
* etc/CONTRIBUTE: Recommend bug-gnu-emacs for patches.

13 years agoReplace stack-trace-on-error usage in calendar.
Glenn Morris [Sun, 17 Apr 2011 02:11:49 +0000 (19:11 -0700)]
Replace stack-trace-on-error usage in calendar.

* lisp/calendar/diary-lib.el (diary-sexp-entry):
* lisp/calendar/holidays.el (holiday-sexp):
Set debug-on-error rather than the removed stack-trace-on-error.

13 years agoChangeLog fix.
Glenn Morris [Sat, 16 Apr 2011 23:31:57 +0000 (16:31 -0700)]
ChangeLog fix.

13 years agoUse lexcical-binding in f90.el.
Glenn Morris [Sat, 16 Apr 2011 23:30:15 +0000 (16:30 -0700)]
Use lexcical-binding in f90.el.

* lisp/progmodes/f90.el: Use lexical-binding.  Use utf-8 coding.
(f90-get-correct-indent): Remove unnecessary local variable `cont'.

13 years agoStatic checks with GCC 4.6.0 and non-default toolkits.
Paul Eggert [Sat, 16 Apr 2011 23:11:35 +0000 (16:11 -0700)]
Static checks with GCC 4.6.0 and non-default toolkits.

13 years ago* xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512).
Paul Eggert [Sat, 16 Apr 2011 22:48:31 +0000 (15:48 -0700)]
* xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512).

13 years ago* pop.c: Undo previous change.
Paul Eggert [Sat, 16 Apr 2011 22:32:35 +0000 (15:32 -0700)]
* pop.c: Undo previous change.

13 years agoMerge from mainline.
Paul Eggert [Sat, 16 Apr 2011 22:30:01 +0000 (15:30 -0700)]
Merge from mainline.

13 years ago* s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl.
Paul Eggert [Sat, 16 Apr 2011 22:06:00 +0000 (15:06 -0700)]
* s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl.

13 years ago* process.c (keyboard_bit_set): Define only if SIGIO.
Paul Eggert [Sat, 16 Apr 2011 22:04:41 +0000 (15:04 -0700)]
* process.c (keyboard_bit_set): Define only if SIGIO.

(send_process_trap): Mark it with NO_RETURN if it doesn't return.
(send_process): Repair possible setjmp clobbering.

13 years ago* s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'.
Paul Eggert [Sat, 16 Apr 2011 21:57:28 +0000 (14:57 -0700)]
* s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'.

13 years ago* eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts.
Paul Eggert [Sat, 16 Apr 2011 21:50:01 +0000 (14:50 -0700)]
* eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts.

13 years ago* data.c (arith_error): Mark with NO_RETURN if it doesn't return.
Paul Eggert [Sat, 16 Apr 2011 21:48:36 +0000 (14:48 -0700)]
* data.c (arith_error): Mark with NO_RETURN if it doesn't return.

13 years ago* alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED):
Paul Eggert [Sat, 16 Apr 2011 21:47:57 +0000 (14:47 -0700)]
* alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED):

Define only if needed.

13 years ago* xterm.c (xembed_send_message): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:29:00 +0000 (14:29 -0700)]
* xterm.c (xembed_send_message): Likewise.

13 years ago* xfaces.c (USG, __TIMEVAL__): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:28:14 +0000 (14:28 -0700)]
* xfaces.c (USG, __TIMEVAL__): Likewise.

13 years ago* termhooks.h (struct terminal): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:27:29 +0000 (14:27 -0700)]
* termhooks.h (struct terminal): Likewise.

13 years ago* sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier
Paul Eggert [Sat, 16 Apr 2011 21:26:33 +0000 (14:26 -0700)]
* sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier

by pacifying GCC about it.  Maybe it's time to retire it?

13 years ago* dispextern.h (struct redisplay_interface): Rename param
Paul Eggert [Sat, 16 Apr 2011 21:24:54 +0000 (14:24 -0700)]
* dispextern.h (struct redisplay_interface): Rename param

to avoid shadowing.

13 years ago* lwlib-utils.c (XtCompositeChildren): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:23:30 +0000 (14:23 -0700)]
* lwlib-utils.c (XtCompositeChildren): Likewise.

13 years ago* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 21:22:40 +0000 (14:22 -0700)]
* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.

(make_menu_in_widget): Add cast to avoid warning.

13 years ago* pop.c (socket_connection): Double-cast to avoid GCC warning
Paul Eggert [Sat, 16 Apr 2011 21:21:24 +0000 (14:21 -0700)]
* pop.c (socket_connection): Double-cast to avoid GCC warning

about alignment.

13 years ago* movemail.c (mail_spool_name): Protoize.
Paul Eggert [Sat, 16 Apr 2011 21:20:25 +0000 (14:20 -0700)]
* movemail.c (mail_spool_name): Protoize.

(main): Remove unused var.  Mark var as initialized.
Move locals to avoid shadowing, and use time_t for times.

13 years ago* fakemail.c (xmalloc, xreallc): Use standard C prototypes
Paul Eggert [Sat, 16 Apr 2011 21:13:07 +0000 (14:13 -0700)]
* fakemail.c (xmalloc, xreallc): Use standard C prototypes

with void *.  This avoids warnings about pointer casts.

13 years ago* emacsclient.c (main): Don't use uninitialized var.
Paul Eggert [Sat, 16 Apr 2011 21:11:28 +0000 (14:11 -0700)]
* emacsclient.c (main): Don't use uninitialized var.

(IS_ANY_SEP): Remove; unused.
(get_current_dir_name): Add an extern decl.

13 years ago* insdel.c (make_gap_smaller): Define only if
Paul Eggert [Sat, 16 Apr 2011 20:32:18 +0000 (13:32 -0700)]
* insdel.c (make_gap_smaller): Define only if

USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC.

13 years ago* keyboard.c (read_char): Make a var volatile so longjmp won't clobber
Paul Eggert [Sat, 16 Apr 2011 20:27:04 +0000 (13:27 -0700)]
* keyboard.c (read_char): Make a var volatile so longjmp won't clobber

it.

13 years ago* emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,
Paul Eggert [Sat, 16 Apr 2011 20:21:26 +0000 (13:21 -0700)]
* emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,

so that we aren't warned about unused symbols.

13 years agoAdd bug#.
Paul Eggert [Sat, 16 Apr 2011 20:09:28 +0000 (13:09 -0700)]
Add bug#.

13 years ago* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 20:07:17 +0000 (13:07 -0700)]
* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.

13 years ago* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
Paul Eggert [Sat, 16 Apr 2011 19:42:09 +0000 (12:42 -0700)]
* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.

13 years agoFix argument to `error' in `gnutls-boot'.
Eli Zaretskii [Sat, 16 Apr 2011 19:16:40 +0000 (15:16 -0400)]
Fix argument to `error' in `gnutls-boot'.

 src/gnutls.c (Fgnutls_boot): Don't pass Lisp_Object to `error'.

13 years agoFix regex.c, syntax.c and friends for buffers > 2GB.
Eli Zaretskii [Sat, 16 Apr 2011 18:26:30 +0000 (21:26 +0300)]
Fix regex.c, syntax.c and friends for buffers > 2GB.

 src/syntax.h (struct gl_state_s): Declare character position members
 EMACS_INT.
 src/syntax.c (update_syntax_table): Declare 2nd argument EMACS_INT.
 src/textprop.c (verify_interval_modification, interval_of): Declare
 arguments EMACS_INT.
 src/intervals.c (adjust_intervals_for_insertion): Declare arguments
 EMACS_INT.
 src/intervals.h (CHECK_TOTAL_LENGTH): Cast to EMACS_INT, not `int'.
 src/indent.c (Fvertical_motion): Local variable it_start is now
 EMACS_INT.
 src/regex.c (re_match, re_match_2, re_match_2_internal)
 (bcmp_translate, regcomp, regexec, print_double_string)
 (group_in_compile_stack, re_search, re_search_2, regex_compile)
 (re_compile_pattern, re_exec): Declare arguments and local
 variables `size_t' and `ssize_t' and return values `regoff_t', as
 appropriate.
 (POP_FAILURE_REG_OR_COUNT) <pfreg>: Declare `long'.
 (CHECK_INFINITE_LOOP) <failure>: Declare `ssize_t'.
 <compile_stack_type>: `size' and `avail' are now `size_t'.
 src/regex.h <regoff_t>: Use ssize_t, not int.
 (re_search, re_search_2, re_match, re_match_2): Arguments that
 specify buffer/string position and length are now ssize_t and
 size_t.  Return type is regoff_t.

13 years ago* xterm.c (x_dispatch_event): More accurate ifdefs.
Paul Eggert [Sat, 16 Apr 2011 16:44:58 +0000 (09:44 -0700)]
* xterm.c (x_dispatch_event): More accurate ifdefs.

13 years ago* lwlib.c (first_child) [USE_MOTIF]: Protoize.
Paul Eggert [Sat, 16 Apr 2011 16:42:58 +0000 (09:42 -0700)]
* lwlib.c (first_child) [USE_MOTIF]: Protoize.

13 years ago* xfns.c (x_real_positions): Mark locals as initialized.
Paul Eggert [Sat, 16 Apr 2011 15:39:35 +0000 (08:39 -0700)]
* xfns.c (x_real_positions): Mark locals as initialized.

13 years ago* xmenu.c (xmenu_show): Don't use uninitialized vars.
Paul Eggert [Sat, 16 Apr 2011 15:38:15 +0000 (08:38 -0700)]
* xmenu.c (xmenu_show): Don't use uninitialized vars.