bpt/emacs.git
11 years agoMove GC_SETJMP_WORKS, GC_MARK_STACK from src/s to configure
Glenn Morris [Sat, 14 Jul 2012 00:04:10 +0000 (20:04 -0400)]
Move GC_SETJMP_WORKS, GC_MARK_STACK from src/s to configure

* configure.ac (GC_SETJMP_WORKS, GC_MARK_STACK): Move here from src/s.
(AH_BOTTOM): Move GC_SETJMP_WORKS GCC fallback to main body.

* src/s/aix4-2.h, src/s/freebsd.h, src/s/gnu-linux.h, src/s/hpux10-20.h:
* src/s/irix6-5.h, src/s/netbsd.h, src/s/sol2-6.h, src/s/unixware.h:
Let configure set GC_SETJMP_WORKS, GC_MARK_STACK.

11 years agoMove GC_MARK_SECONDARY_STACK from src/s to configure
Glenn Morris [Fri, 13 Jul 2012 21:54:35 +0000 (17:54 -0400)]
Move GC_MARK_SECONDARY_STACK from src/s to configure

* configure.ac (GC_MARK_SECONDARY_STACK): Move here from src/s.

* src/s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it.

11 years agoMove SETUP_SLAVE_PTY from src/s to configure
Glenn Morris [Fri, 13 Jul 2012 21:45:55 +0000 (17:45 -0400)]
Move SETUP_SLAVE_PTY from src/s to configure

* configure.ac (SETUP_SLAVE_PTY): Move here from src/s.
(FIRST_PTY_LETTER, PTY_NAME_SPRINTF): Combine sol2/unixware cases.

* src/s/usg5-4-common.h (SETUP_SLAVE_PTY): Let configure set it.
* src/s/irix6-5.h (SETUP_SLAVE_PTY): No more need to unset it.

11 years agoFixes: debbugs:11938
Andreas Schwab [Fri, 13 Jul 2012 18:15:22 +0000 (20:15 +0200)]
Fixes: debbugs:11938

* emacs-lisp/cl.el (labels): Remove spurious quote.

11 years agoRemove compiler warnings in objective-C files.
Jan Djärv [Fri, 13 Jul 2012 18:03:10 +0000 (20:03 +0200)]
Remove compiler warnings in objective-C files.

* nsfns.m (x_set_icon_name, ns_set_name_internal)
(ns_set_name_as_filename, ns_implicitly_set_icon_type)
(x_set_icon_type, ns_lisp_to_cursor_type, Fns_read_file_name)
(Fns_get_resource, Fns_set_resource, Fx_open_connection)
(Fns_font_name, Fns_perform_service)
(Fns_convert_utf8_nfd_to_nfc, ns_do_applescript)
(Fns_do_applescript, Fx_show_tip): Use SSDATA where appropriate.
(ns_set_name): Remove unused variable view.
(x_set_menu_bar_lines): Remove unused variable olines.
(x_set_tool_bar_lines): Remove unused variable root_window.
(Fns_list_colors): Put () around assignment in while statement.
(Fns_perform_service): Remove unused variable len.
(Fns_display_usable_bounds): Remove unused variable top.
(syms_of_nsfns): Remove unused variable i.

* nsfont.m (ns_get_family, ns_lang_to_script, ns_otf_to_script)
(ns_registry_to_script, ns_get_req_script, nsfont_open): Use SSDATA
where appropriate.
(ns_get_covering_families, ns_findfonts, nsfont_list_family): Put ()
around assignment in loop statement.
(nsfont_open): Remove unused variable i.
(nsfont_open): Remove unused variable len.
(nsfont_draw): Remove unused variable cs.

* nsimage.m (ns_load_image, allocInitFromFile): Use SSDATA where
appropriate.
(setXBMColor): Remove unused variable len.
(setPixmapData): Put () around assignment in loop statement.

* nsmenu.m (ns_update_menubar, ns_menu_show, process_dialog)
(initFromContents): Use SSDATA where appropriate.
(ns_update_menubar): Add braces to ambigous if-else.
(initWithTitle): Put () around assignment in if statement.
(ns_menu_show): Remove unused variables window and keymap.
(update_frame_tool_bar): Remove unused variable selected_p.
(initWithContentRect): Remove unused variable this_cmd_name.

* nsterm.h (menuDown): Add id as type to argument sender.
(ns_display_info_for_name): Add Lisp_Object argument.
(ns_term_init): Add Lisp_Object argument.
(ns_map_event_to_object): Add void argument.
(ns_string_from_pasteboard, ns_string_to_pasteboard): Add correct
prototype with arguments and only declare if __OBJC__.
(nxatoms_of_nsselect): Add void argument.
(ns_lisp_to_cursor_type): Add Lisp_Object argument.
(ns_alloc_autorelease_pool): Add void argument.
(ns_release_autorelease_pool): Add void* argument.
(ns_get_defaults_value): Add const char* argument.

* nsterm.m (uRect): Only define if NS_IMPL_GNUSTEP.
(x_free_frame_resources): Pass x_free_frame_resources to NSTRACE.
(ns_lisp_to_color, ns_string_to_lispmod, ns_term_init)
(ns_term_shutdown, requestService, initFrameFromEmacs): Use SSDATA
where appropriate.
(ns_exec_path, ns_load_path, changeFont): Put () around assignment used
as boolean expression.
(x_set_window_size): Remove unused variable toolbar.
(ns_get_color_default, ns_mod_to_lisp): Remove.
(ns_mouse_position): Remove unused variables xchar and ychar.
(ns_compute_glyph_string_overhangs): Remove unused variable face.
(ns_set_vertical_scroll_bar): Remove unused variable count.
(ns_delete_terminal): Remove unused variable i.
(ns_term_init): Remove unused variables r, g and b.
(mouseDown): Remove unused variable window.
(windowDidResize): Move definition of theWindow inside NS_IMPL_GNUSTEP.
(initFrameFromEmacs): Remove unused variable vbextra.
(mouseEntered): Remove unused variables p and dpyinfo.
(mouseExited): Remove unused variables p and r.
(ns_define_frame_cursor, ns_clear_frame_area)
(ns_draw_window_cursor, ns_initialize_display_info): Make static.
(menuDown): Assign [sender tag] to variable and cast the variable.

11 years ago* nsmenu.m (ns_update_menubar): Exchange place of argument 2 and 3 to
Jan Djärv [Fri, 13 Jul 2012 17:07:02 +0000 (19:07 +0200)]
* nsmenu.m (ns_update_menubar): Exchange place of argument 2 and 3 to
memcpy.

Fixes: debbugs:11907

11 years agolisp/bindings.el (top): Use `mapc' instead of `mapcar'.
Juanma Barranquero [Fri, 13 Jul 2012 17:02:18 +0000 (19:02 +0200)]
lisp/bindings.el (top): Use `mapc' instead of `mapcar'.

11 years agolisp/loadup.el (top): Remove bogus `if' choice (brought by 2008-06-21T01:38:39Z!monni...
Juanma Barranquero [Fri, 13 Jul 2012 16:50:21 +0000 (18:50 +0200)]
lisp/loadup.el (top): Remove bogus `if' choice (brought by 2008-06-21T01:38:39Z!monnier@iro.umontreal.ca).

11 years ago* progmodes/sql.el (sql-comint): Suppress the check for program on
Michael Albinus [Fri, 13 Jul 2012 14:58:12 +0000 (16:58 +0200)]
* progmodes/sql.el (sql-comint): Suppress the check for program on
remote hosts.  Reported by Francis Devereux <francis@devrx.org>.
(Bug#11908)

11 years agoGive permanent-local property to per-buffer variables without defaults.
Chong Yidong [Fri, 13 Jul 2012 14:25:59 +0000 (22:25 +0800)]
Give permanent-local property to per-buffer variables without defaults.

* doc/emacs/custom.texi (Examining): Update C-h v message.

* lisp/bindings.el: Assign a non-nil permanent-local property to
per-buffer variables which lack a default value.

* lisp/help-fns.el (describe-variable): In the "automatically becomes
local" notice, take note of permanent-local variables.

Fixes: debbugs:11930

11 years ago* image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo
Jan Djärv [Fri, 13 Jul 2012 12:20:07 +0000 (14:20 +0200)]
* image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo
and free it with DestroyExceptionInfo.

Fixes: debbugs:11558

11 years ago* nt/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Fri, 13 Jul 2012 11:49:26 +0000 (13:49 +0200)]
* nt/config.nt: Sync with autogen/config.in.
(BROKEN_FIONREAD, BROKEN_GET_CURRENT_DIR_NAME)
(BROKEN_PTY_READ_AFTER_EAGAIN, BROKEN_SIGAIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY, BSD4_2, BSD_SYSTEM, BSD_SYSTEM_AHB, CYGWIN, DARWIN_OS)
(FIRST_PTY_LETTER, GNU_LINUX, G_SLICE_ALWAYS_MALLOC, HAVE_PTYS)
(HAVE_SOCKETS, HPUX, INTERRUPT_INPUT, IRIX6_5, NARROWPROTO, NO_ABORT)
(NO_EDITRES, NSIG_MINIMUM, PREFER_VSUSP, PTY_ITERATION
(PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF, RUN_TIME_REMAP)
(SETPGRP_RELEASES_CTTY, SOLARIS2, TAB3, TABDLY, ULIMIT_BREAK_VALUE)
(UNIX98_PTYS, USG, USG5, XOS_NEEDS_TIME_H, _AIX): New macros.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT):
Set in src/s/ms-w32.h, not here.

* src/s/ms-w32.h (FIRST_PTY_LETTER, HAVE_SOCKETS): Move to nt/config.nt.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT):
Set here, not in nt/config.nt.

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 13 Jul 2012 10:17:28 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoFix bs-show when the right fringe is off.
Eli Zaretskii [Fri, 13 Jul 2012 10:11:37 +0000 (13:11 +0300)]
Fix bs-show when the right fringe is off.

 src/xdisp.c (move_it_in_display_line_to): On GUI terminals, allow
 cursor overflow into the last glyph on display line when the right
 fringe is off.  (Bug#11832)

11 years agoDon't warn on toggle-read-only calls.
Chong Yidong [Fri, 13 Jul 2012 07:06:09 +0000 (15:06 +0800)]
Don't warn on toggle-read-only calls.

Clarify the documentation of toggle-read-only, and audit the code tree
for uses of toggle-read-only; where appropriate, switch to setting the
variable buffer-read-only or calling toggle-read-only with a (new)
second arg.

* lisp/files.el (toggle-read-only): Doc fix and code cleanup.  New arg
to allow printing the message when called from Lisp.

* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Remove toggle-read-only.

* lisp/bindings.el (mode-line-toggle-read-only):
* lisp/dired.el (dired-toggle-read-only):
* lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call toggle-read-only
with non-nil second arg.

* lisp/bs.el (bs-toggle-readonly):
* lisp/buff-menu.el (Buffer-menu-toggle-read-only): Remove
with-no-warnings around toggle-read-only.

* lisp/ffap.el (ffap--toggle-read-only): Accept a list of buffers.
Remove with-no-warnings around toggle-read-only.
(ffap-read-only, ffap-read-only-other-window)
(ffap-read-only-other-frame): Callers changed.

* lisp/help-mode.el: Don't require view package.
(help-mode-finish): Set buffer-read-only instead of calling
toggle-read-only.

* lisp/emacs-lisp/eieio-custom.el (eieio-customize-object):
* lisp/vc/ediff.el (ediff-set-read-only-in-buf-A): Set buffer-read-only
directly.

* lisp/gnus/smime.el (smime-certificate-info): Set buffer-read-only directly,
instead of calling toggle-read-only with a (bogus) argument.

* doc/emacs/buffers.texi (Misc Buffer): Document view-read-only.

* doc/lispref/buffers.texi (Read Only Buffers): Document toggle-read-only
changes.  Reword to account for the fact that read-only is currently not
supported in overlay properties.

11 years ago* xdisp.c (produce_special_glyphs): Now static.
Paul Eggert [Fri, 13 Jul 2012 03:50:58 +0000 (20:50 -0700)]
* xdisp.c (produce_special_glyphs): Now static.

* dispextern.h (produce_special_glyphs): Remove decl.

11 years agoRemove some src/s files that are now empty
Glenn Morris [Fri, 13 Jul 2012 02:38:30 +0000 (19:38 -0700)]
Remove some src/s files that are now empty

* configure.ac (opsysfile): Set to empty on gnu, cygwin.

* src/s/bsd-common, src/s/cygwin.h: Remove empty files.
* src/s/freebsd.h, src/s/netbsd.h: Do not include bsd-common.h.

11 years agoMove "system type" macros from src/s to configure
Glenn Morris [Fri, 13 Jul 2012 02:34:05 +0000 (19:34 -0700)]
Move "system type" macros from src/s to configure

* configure.ac (BSD4_2, BSD_SYSTEM, USG, USG5, _AIX, CYGWIN)
(DARWIN_OS, GNU_LINUX, HPUX, IRIX6_5, SOLARIS2):
Move "system type" macros here from src/s.
(BSD_SYSTEM_AHB): New hack macro.
(AH_BOTTOM): Set BSD_SYSTEM, using BSD_SYSTEM_AHB.

* src/s/usg5-4-common.h (USG, USG5):
* src/s/template.h (USG5, USG, HPUX, BSD4_2, BSD_SYSTEM):
* src/s/sol2-6.h (SOLARIS2):
* src/s/irix6-5.h (IRIX6_5):
* src/s/hpux10-20.h (USG, USG5, HPUX):
* src/s/gnu-linux.h (USG, GNU_LINUX):
* src/s/freebsd.h (BSD_SYSTEM):
* src/s/darwin.h (BSD4_2, BSD_SYSTEM, DARWIN_OS):
* src/s/cygwin.h (CYGWIN):
* src/s/bsd-common.h (BSD_SYSTEM, BSD4_2):
* src/s/aix4-2.h (USG, USG5, _AIX): Move "system type" macros to configure.

11 years agoChangeLog fix
Glenn Morris [Fri, 13 Jul 2012 02:23:57 +0000 (19:23 -0700)]
ChangeLog fix

11 years ago* nsfont.m (ns_charset_covers): Don't abort if no bitmap.
Paul Eggert [Fri, 13 Jul 2012 01:37:11 +0000 (18:37 -0700)]
* nsfont.m (ns_charset_covers): Don't abort if no bitmap.

Fixes: debbugs:11853

11 years agoMove NSIG_MINIMUM from src/s to configure
Glenn Morris [Fri, 13 Jul 2012 01:19:06 +0000 (21:19 -0400)]
Move NSIG_MINIMUM from src/s to configure

* configure.ac (NSIG_MINIMUM): Move here from src/s.

* src/s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.

11 years agoMove ULIMIT_BREAK_VALUE from src/s to configure
Glenn Morris [Fri, 13 Jul 2012 00:19:10 +0000 (20:19 -0400)]
Move ULIMIT_BREAK_VALUE from src/s to configure

* configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s.

* src/s/gnu-linux.h, src/s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.

11 years agoRemove macro MIN_PTY_KERNEL_VERSION, only used in one place
Glenn Morris [Fri, 13 Jul 2012 00:07:29 +0000 (20:07 -0400)]
Remove macro MIN_PTY_KERNEL_VERSION, only used in one place

* src/process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION.
* src/s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro.

11 years agoMove darwin.h's SYSTEM_PURESIZE_EXTRA setting to configure
Glenn Morris [Fri, 13 Jul 2012 00:00:23 +0000 (20:00 -0400)]
Move darwin.h's SYSTEM_PURESIZE_EXTRA setting to configure

* configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA
setting here from src/s/darwin.h.

* src/s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure.

11 years agoRename init_process rather than working around it on Darwin
Glenn Morris [Thu, 12 Jul 2012 23:56:39 +0000 (19:56 -0400)]
Rename init_process rather than working around it on Darwin

The old name is also the name of a Mach system call.

* src/process.c (init_process_emacs): Rename from init_process.

* src/lisp.h, src/emacs.c: Update for this name change.

* src/nsgui.h, src/sysselect.h, src/s/darwin.h:
Remove workaround that is no longer needed.

11 years agoMove NO_EDITRES from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 21:14:13 +0000 (17:14 -0400)]
Move NO_EDITRES from src/s to configure

* configure.ac (NO_EDITRES): Move here from src/s.

* src/s/aix4-2.h, src/s/hpux10-20.h: Let configure set NO_EDITRES.

11 years agoDo not unconditionally define HAVE_XRMSETDATABASE on some systems
Glenn Morris [Thu, 12 Jul 2012 20:53:41 +0000 (16:53 -0400)]
Do not unconditionally define HAVE_XRMSETDATABASE on some systems

* src/s/gnu-linux.h, src/s/hpux10-20.h:
Do not unconditionally define HAVE_XRMSETDATABASE.

Maybe there was a time when this made sense, but in the current tree
it is totally illogical.  This is only used in xterm.c.  If it is set
we call XrmSetDatabase, if not we do something else.  Configure tests
for XrmSetDatabase and sets HAVE_XRMSETDATABASE accordingly.  The only
possibility that is not totally nonsensical is that the system does in
fact have XrmSetDatabase but configure failed to find it (I don't see
how this could happen though...); in which case we should fix the
configure test rather than force the results.  But this is not what
the (vague) comments say was happending.

The gnu-linux piece dates from 1995, the hpux one from 2000.

https://groups.google.com/forum/?fromgroups#!topic/gnu.emacs.bug/H24wEM8Vp9A
From: rainer@displaytech.com (Rainer Malzbender)
Subject: Compiling emacs 20.4 on HP-UX 10.20 with gcc
Date: 2000/02/01
Newsgroups: gnu.emacs.bug

11 years agoImprove fix for bug #11832 with truncated/continued lines w/o margins.
Eli Zaretskii [Thu, 12 Jul 2012 19:55:01 +0000 (22:55 +0300)]
Improve fix for bug #11832 with truncated/continued lines w/o margins.

 src/xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in
 memmove call that removes glyphs covered by the left truncation
 glyph.  Improve commentary.
 (display_line): Fix display of continuation glyphs on GUI frames
 when the right fringe is turned off and variable-size fonts are
 used in the window.  Move the code that appends a stretch glyph to
 produce_special_glyphs, so that it could be used for truncation
 and continuation glyphs alike.
 (produce_special_glyphs) [HAVE_WINDOW_SYSTEM]: Produce a stretch
 glyph of a suitably computed width, to align the special glyphs at
 the window margin.  Code moved from display_line.

11 years agoMove UNIX98_PTYS from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 19:48:21 +0000 (15:48 -0400)]
Move UNIX98_PTYS from src/s to configure

* configure.ac (UNIX98_PTYS): Move here from src/s.

* src/s/gnu-linux.h (UNIX98_PTYS): Let configure set it.

11 years agoFix typos that broke OS X build.
Paul Eggert [Thu, 12 Jul 2012 16:58:37 +0000 (09:58 -0700)]
Fix typos that broke OS X build.

Reported by Randal L. Schwartz in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00225.html>.
* nsterm.m (ns_timeout): Add missing local decl.
(ns_get_color): snprintf -> sprintf, to fix typo.

11 years ago* movemail.c: Add missing 'defined'.
Paul Eggert [Thu, 12 Jul 2012 15:20:39 +0000 (08:20 -0700)]
* movemail.c: Add missing 'defined'.

Suggested by Sven Joachim in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00218.html>.

11 years agoFix byte-recompile-directory.
Eli Zaretskii [Thu, 12 Jul 2012 11:33:55 +0000 (14:33 +0300)]
Fix byte-recompile-directory.

 lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Use cl-incf,
 not incf.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 12 Jul 2012 10:20:34 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 12 Jul 2012 10:17:28 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoMove PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 07:43:05 +0000 (00:43 -0700)]
Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF from src/s to configure

* configure.ac (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Move here from src/s.

* src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h:
* src/s/sol2-6.h, src/s/unixware.h, src/s/usg5-4-common.h:
Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF to configure.

11 years agoFixes: debbugs:11917
Andreas Schwab [Thu, 12 Jul 2012 07:12:24 +0000 (09:12 +0200)]
Fixes: debbugs:11917

Fix crash when creating indirect buffer
* buffer.c (buffer_lisp_local_variables): Add argument CLONE.
Don't handle unbound variables specially if non-zero.
(Fbuffer_local_variables): Pass zero.
(clone_per_buffer_values): Pass non-zero.

11 years agoMove PTY_OPEN from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 07:10:44 +0000 (00:10 -0700)]
Move PTY_OPEN from src/s to configure

* configure.ac (PTY_OPEN) Move here from src/s.

* src/s/cygwin.h, src/s/darwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
Move PTY_OPEN to configure.

11 years agoMove FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 06:34:40 +0000 (23:34 -0700)]
Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure

* configure.ac (FIRST_PTY_LETTER PTY_ITERATION): Move here from src/s.

* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h, src/s/template.h:
* src/s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure.

11 years agoUse empty_unibyte_string where applicable.
Dmitry Antipov [Thu, 12 Jul 2012 03:45:46 +0000 (07:45 +0400)]
Use empty_unibyte_string where applicable.
* keyboard.c (parse_tool_bar_item): Use empty_unibyte_string.
* lread.c (read1): Likewise.
* xsettings.c (syms_of_xsettings): Likewise.

11 years agoMove more things from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 02:14:29 +0000 (22:14 -0400)]
Move more things from src/s to configure

* configure.ac (BROKEN_GET_CURRENT_DIR_NAME, BROKEN_PTY_READ_AFTER_EAGAIN)
(G_SLICE_ALWAYS_MALLOC): Move here from src/s.

* src/s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN):
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC):
* src/s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Let configure set them.

11 years agoMove more stuff from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 01:49:28 +0000 (21:49 -0400)]
Move more stuff from src/s to configure

* configure.ac (PREFER_VSUSP, RUN_TIME_REMAP, SETPGRP_RELEASES_CTTY)
(TAB3, TABDLY, RUN_TIME_REMAP, XOS_NEEDS_TIME_H): Move here from src/s.

* src/s/bsd-common.h, src/s/darwin.h: Move TAB3 to configure.

* src/s/hpux10-20.h, src/s/sol2-6.h: Move XOS_NEEDS_TIME_H to configure.

* src/s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP):
* src/s/hpux10-20.h (RUN_TIME_REMAP):
* src/s/bsd-common.h (TABDLY): Move to configure.

11 years agoMove some AIX defines from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 01:18:45 +0000 (21:18 -0400)]
Move some AIX defines from src/s to configure

* configure.ac (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY): Move here from src/s.

* src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
(BROKEN_SIGPOLL): Let configure set them.

* src/s/syssignal.h: Comment fix.

11 years agoMove NO_ABORT from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 01:14:56 +0000 (21:14 -0400)]
Move NO_ABORT from src/s to configure

* configure.ac (NO_ABORT): Move here from src/s.

* src/s/darwin.h (NO_ABORT): Let configure set it.

11 years agoMove setting of NO_MATHERR for Darwin from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 01:11:37 +0000 (21:11 -0400)]
Move setting of NO_MATHERR for Darwin from src/s to configure

* configure.ac (NO_MATHERR): Unconditionally define for Darwin;
as src/s/darwin.h used to.

* src/s/darwin.h (NO_MATHERR): Let configure set it.

11 years agoMove NARROWPROTO from src/s to configure
Glenn Morris [Thu, 12 Jul 2012 00:49:24 +0000 (20:49 -0400)]
Move NARROWPROTO from src/s to configure

* configure.ac (NARROWPROTO): Move here from src/s.

* src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
* src/s/template.h: Move NARROWPROTO to configure.

11 years agoRemove unneeded #define POSIX
Glenn Morris [Wed, 11 Jul 2012 23:44:03 +0000 (19:44 -0400)]
Remove unneeded #define POSIX

* src/s/gnu-linux.h, src/s/sol2-6.h: No longer define POSIX,
unused since 2011-01-17 change to systty.h.

* admin/CPP-DEFINES: Related edit.

11 years agoAll platforms using configure support HAVE_PTYS and HAVE_SOCKETS
Glenn Morris [Wed, 11 Jul 2012 23:40:59 +0000 (19:40 -0400)]
All platforms using configure support HAVE_PTYS and HAVE_SOCKETS

* configure.ac (HAVE_PTYS, HAVE_SOCKETS): Define unconditionally.

* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/template.h:
* src/s/usg5-4-common.h: Move HAVE_PTYS and HAVE_SOCKETS to configure.

11 years agoMore CL cleanups and reduction of use of cl.el.
Stefan Monnier [Wed, 11 Jul 2012 23:13:41 +0000 (19:13 -0400)]
More CL cleanups and reduction of use of cl.el.
* woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
* vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
* textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
* strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
* progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
* play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
* play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
* net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
* image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
* eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
* eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
* eshell/em-cmpl.el, eshell/em-banner.el:
* url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
* url/url-future.el, url/url-dav.el, url/url-cookie.el:
* calendar/parse-time.el, test/eshell.el: Use cl-lib.
* wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
* vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
* textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
* term/ns-win.el, term.el, shell.el, ps-samp.el:
* progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
* progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
* play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
* net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
* net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
* mail/mailheader.el, mail/feedmail.el:
* url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
* url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
Dont use CL.
* ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
* eshell/esh-opt.el (eshell-eval-using-options): Quote code with
`lambda' rather than with `quote'.
(eshell-do-opt): Adjust accordingly.
(eshell-process-option): Simplify.
* eshell/esh-var.el:
* eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
* emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
(pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
to `pcase--dontcare'.
* emacs-cl.el (labels): Mark obsolete.
(cl--letf, letf): Move to cl-lib.
(cl--letf*, letf*): Remove.
* emacs-cl-lib.el (cl-nth-value): Use defalias.
* emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
(cl-progv): Rewrite.
(cl--letf, cl-letf): Move from cl.el.
(cl-letf*): New macro.
* emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.

11 years agoPort 'movemail' again to Solaris and similar hosts.
Paul Eggert [Wed, 11 Jul 2012 22:44:07 +0000 (15:44 -0700)]
Port 'movemail' again to Solaris and similar hosts.

See Susan Cragin's report in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00199.html>.
* movemail.c (xmalloc): Also define if !DISABLE_DIRECT_ACCESS &&
!MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.  Move up, so it doesn't
need a forward declaration.
(main): Rewrite to avoid no-longer-present function 'concat', if
!DISABLE_DIRECT_ACCESS && !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.

11 years ago* s/sol2-6.h (HAVE_LIBKSTAT): Remove.
Paul Eggert [Wed, 11 Jul 2012 20:40:18 +0000 (13:40 -0700)]
* s/sol2-6.h (HAVE_LIBKSTAT): Remove.

Fixes: debbugs:11914

11 years agoTrivial re-ordering and comment updating
Glenn Morris [Wed, 11 Jul 2012 18:39:44 +0000 (14:39 -0400)]
Trivial re-ordering and comment updating

11 years agoetc/NEWS: Move announcement of tty-top-frame out of non-free section.
Eli Zaretskii [Wed, 11 Jul 2012 17:42:24 +0000 (20:42 +0300)]
etc/NEWS: Move announcement of tty-top-frame out of non-free section.

11 years agoMove INTERRUPT_INPUT from src/s to configure
Glenn Morris [Wed, 11 Jul 2012 17:04:19 +0000 (13:04 -0400)]
Move INTERRUPT_INPUT from src/s to configure

* configure.ac (INTERRUPT_INPUT): Move here from src/s.

* src/s/darwin.h, src/s/gnu-linux.h, src/s/template.h:
Move INTERRUPT_INPUT to configure.

11 years ago* net/ange-ftp.el (ange-ftp-cf1): Update the files cache.
Michael Albinus [Wed, 11 Jul 2012 12:03:19 +0000 (14:03 +0200)]
* net/ange-ftp.el (ange-ftp-cf1): Update the files cache.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Wed, 11 Jul 2012 11:44:31 +0000 (13:44 +0200)]
nt/config.nt: Sync with autogen/config.in.
(CLASH_DETECTION, DEFAULT_SOUND_DEVICE, DONT_REOPEN_PTY)
(GNU_LIBRARY_PENDING_OUTPUT_COUNT, SIGNALS_VIA_CHARACTERS): New macros.
(HAVE_MKDIR, HAVE_RENAME, HAVE_RMDIR, HAVE_STRERROR): Remove.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 11 Jul 2012 10:17:32 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoSimplify Vobarray checking in oblookup.
Dmitry Antipov [Wed, 11 Jul 2012 08:33:04 +0000 (12:33 +0400)]
Simplify Vobarray checking in oblookup.
* lread.c (oblookup): Simplify Vobarray checking.

11 years agoRemoved some unnecessary undef INTERRUPT_INPUTs from src/s
Glenn Morris [Wed, 11 Jul 2012 07:38:33 +0000 (00:38 -0700)]
Removed some unnecessary undef INTERRUPT_INPUTs from src/s

* src/s/bsd-common.h, src/s/cygwin.h: No need to undefine INTERRUPT_INPUT,
since nothing has defined it on these platforms.

11 years agoMinor adjustments to interning code.
Dmitry Antipov [Wed, 11 Jul 2012 07:37:39 +0000 (11:37 +0400)]
Minor adjustments to interning code.
* lisp.h (intern, intern_c_string): Redefine as static inline
wrappers for intern_1 and intern_c_string_1, respectively.
(intern_1, intern_c_string_1): Rename prototypes.
* lread.c (intern_1, intern_c_string_1): Simplify Vobarray checking.
* font.c (font_intern_prop): Likewise.  Adjust comment.
* w32font.c (intern_font_name): Likewise.

11 years agoMove SIGNALS_VIA_CHARACTERS from src/s to configure
Glenn Morris [Wed, 11 Jul 2012 07:28:27 +0000 (00:28 -0700)]
Move SIGNALS_VIA_CHARACTERS from src/s to configure

* configure.ac (SIGNALS_VIA_CHARACTERS): Move here from src/s.

* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h:
* src/s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure.

11 years ago* configure.ac (tzset): Remove redundant check.
Paul Eggert [Wed, 11 Jul 2012 07:23:59 +0000 (00:23 -0700)]
* configure.ac (tzset): Remove redundant check.

11 years ago* gnutls.c (Fgnutls_boot): Properly parse :keylist argument.
Andreas Schwab [Wed, 11 Jul 2012 07:20:14 +0000 (09:20 +0200)]
* gnutls.c (Fgnutls_boot): Properly parse :keylist argument.

11 years ago* coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead
Andreas Schwab [Wed, 11 Jul 2012 07:19:44 +0000 (09:19 +0200)]
* coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead
of Fcar/Fcdr if possible.
* font.c (check_otf_features): Likewise.
* fontset.c (Fnew_fontset): Likewise.
* gnutls.c (Fgnutls_boot): Likewise.
* minibuf.c (read_minibuf): Likewise.
* msdos.c (IT_set_frame_parameters): Likewise.
* xmenu.c (Fx_popup_dialog): Likewise.
* w32menu.c (Fx_popup_dialog): Likewise.

11 years agoAll the cool platforms support CLASH_DETECTION...
Glenn Morris [Wed, 11 Jul 2012 07:07:19 +0000 (00:07 -0700)]
All the cool platforms support CLASH_DETECTION...

* configure.ac (CLASH_DETECTION): Define unconditionally.
Every platform using configure supports it.

* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/template.h:
* src/s/usg5-4-common.h: Move CLASH_DETECTION to configure.

* etc/PROBLEMS: Recommend customizing create-lockfiles rather than
recompiling with CLASH_DETECTION unset.

11 years agoAssume mkdir, rmdir.
Paul Eggert [Wed, 11 Jul 2012 07:05:21 +0000 (00:05 -0700)]
Assume mkdir, rmdir.

11 years agoRemove src/s/gnu.h
Glenn Morris [Wed, 11 Jul 2012 06:55:30 +0000 (23:55 -0700)]
Remove src/s/gnu.h

* configure.ac (opsysfile): Use bsd-common on gnu systems.

* src/s/gnu.h: Remove file, which is now empty.

11 years agoMove GNU_LIBRARY_PENDING_OUTPUT_COUNT from src/s to configure
Glenn Morris [Wed, 11 Jul 2012 06:52:48 +0000 (23:52 -0700)]
Move GNU_LIBRARY_PENDING_OUTPUT_COUNT from src/s to configure

* configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Move here from src/s.

* src/s/gnu.h, src/s/gnu-linux.h:
Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure.

11 years agoalloc.c (mark_memory): Guard the "no_address_safety_analysis" function
John Wiegley [Wed, 11 Jul 2012 06:14:27 +0000 (01:14 -0500)]
alloc.c (mark_memory): Guard the "no_address_safety_analysis" function
attribute, so we only use it if it exists in the compiler.

11 years agoAvoid call to strlen in fast_c_string_match_ignore_case.
Dmitry Antipov [Wed, 11 Jul 2012 06:14:19 +0000 (10:14 +0400)]
Avoid call to strlen in fast_c_string_match_ignore_case.
* search.c (fast_c_string_match_ignore_case): Change to use
length argument.  Adjust users accordingly.
* lisp.h (fast_c_string_match_ignore_case): Adjust prototype.

11 years agoAssume rename.
Paul Eggert [Wed, 11 Jul 2012 06:09:09 +0000 (23:09 -0700)]
Assume rename.

11 years agoAssume perror.
Paul Eggert [Wed, 11 Jul 2012 05:57:03 +0000 (22:57 -0700)]
Assume perror.

11 years agoAssume strerror.
Paul Eggert [Wed, 11 Jul 2012 05:44:06 +0000 (22:44 -0700)]
Assume strerror.

11 years agoAllow use of vc-root-* commands in *vc-log* buffers.
Chong Yidong [Wed, 11 Jul 2012 04:35:13 +0000 (12:35 +0800)]
Allow use of vc-root-* commands in *vc-log* buffers.

* lisp/vc/log-edit.el (log-edit-vc-backend): New variable.
(log-edit): Doc fix.

* lisp/vc/log-view.el (log-view-vc-fileset, log-view-vc-backend): Doc fix.

* lisp/vc/vc-dispatcher.el (vc-log-edit): New args.  Use PARAMS
argument of log-edit to set up all local variables.
(vc-start-logentry): New optional arg specifying VC backend.

* lisp/vc/vc.el (vc-checkin): Use it.
(vc-deduce-fileset): Handle Log Edit buffers.
(vc-diff): Make first argument optional too.

11 years agoAvoid calls to strlen in font processing functions.
Dmitry Antipov [Wed, 11 Jul 2012 04:31:53 +0000 (08:31 +0400)]
Avoid calls to strlen in font processing functions.
* font.c (font_parse_name, font_parse_xlfd, font_parse_fcname)
(font_open_by_name): Changed to use length argument.  Adjust
users accordingly.
* font.h (font_open_by_name, font_parse_xlfd): Adjust prototypes.
* xfont.c (xfont_decode_coding_xlfd): Changed to return ptrdiff_t.
(xfont_list_pattern, xfont_match): Use length returned by
xfont_decode_coding_xlfd.
* xfns.c (x_default_font_parameter): Omit useless xstrdup.

11 years agoMove DONT_REOPEN_PTY from src/s to configure
Glenn Morris [Wed, 11 Jul 2012 02:29:13 +0000 (22:29 -0400)]
Move DONT_REOPEN_PTY from src/s to configure

* configure.ac (DONT_REOPEN_PTY): Move here from src/s.

* src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
Move DONT_REOPEN_PTY to configure.

11 years agoLet configure set DEFAULT_SOUND_DEVICE
Glenn Morris [Wed, 11 Jul 2012 02:16:25 +0000 (22:16 -0400)]
Let configure set DEFAULT_SOUND_DEVICE

* configure.ac (DEFAULT_SOUND_DEVICE): New definition.

* src/sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
* src/s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.

11 years agoRemove "#define unix" that is no longer needed (Bug#11905).
Paul Eggert [Wed, 11 Jul 2012 00:01:21 +0000 (17:01 -0700)]
Remove "#define unix" that is no longer needed (Bug#11905).

Merge from gnulib to make "#define unix" unnecessary, incorporating:
2012-07-10 getloadavg: clean out old Emacs and Autoconf cruft
2012-07-09 getopt: Simplify after Emacs changed.
* src/s/aix4-2.h (unix): Remove; no longer needed.

11 years agoEMACS_TIME simplification (Bug#11875).
Paul Eggert [Tue, 10 Jul 2012 23:24:36 +0000 (16:24 -0700)]
EMACS_TIME simplification (Bug#11875).

This replaces macros (which typically do not work in GDB)
with functions, typedefs and enums, making the code easier to debug.
The functional style also makes code easier to read and maintain.
* lib-src/profile.c (TV2): Remove no-longer-needed static var.
* src/systime.h: Include <sys/time.h> on all hosts, not just if
WINDOWSNT, since 'struct timeval' is needed in general.
(EMACS_TIME): Now a typedef, not a macro.
(EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): Now constants,
not macros.
(EMACS_SECS, EMACS_NSECS, EMACS_TIME_SIGN, EMACS_TIME_VALID_P)
(EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE, EMACS_TIME_EQ)
(EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT)
(EMACS_TIME_LE): Now functions, not macros.
(EMACS_SET_SECS, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS)
(EMACS_SET_USECS, EMACS_SET_SECS_USECS): Remove these macros,
which are not functions.  All uses rewritten to use:
(make_emacs_time): New function.
(EMACS_SECS_ADDR, EMACS_SET_INVALID_TIME, EMACS_GET_TIME)
(EMACS_ADD_TIME, EMACS_SUB_TIME): Remove these macros, which are
not functions.  All uses rewritten to use the following, respectively:
(emacs_secs_addr, invalid_emacs_time, get_emacs_time)
(add_emacs_time, sub_emacs_time): New functions.
* src/atimer.c: Don't include <sys/time.h>, as "systime.h" does this.
* src/fileio.c (Fcopy_file):
* src/xterm.c (XTflash): Get the current time closer to when it's used.
* src/makefile.w32-in ($(BLD)/atimer.$(O)): Update dependencies.

11 years ago* bytecode.c (targets): Suppress -Woverride-init warnings.
Paul Eggert [Tue, 10 Jul 2012 22:40:34 +0000 (15:40 -0700)]
* bytecode.c (targets): Suppress -Woverride-init warnings.

11 years agoNEWS copyedits
Glenn Morris [Tue, 10 Jul 2012 22:38:06 +0000 (18:38 -0400)]
NEWS copyedits

11 years agoSimplify by avoiding confusing use of strncpy etc.
Paul Eggert [Tue, 10 Jul 2012 21:48:34 +0000 (14:48 -0700)]
Simplify by avoiding confusing use of strncpy etc.

11 years ago* dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]: Clarify fallback case.
Glenn Morris [Tue, 10 Jul 2012 19:04:14 +0000 (15:04 -0400)]
* dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]: Clarify fallback case.

11 years agoUse XCAR and XCDR instead of Fcar and Fcdr where possible.
Dmitry Antipov [Tue, 10 Jul 2012 16:53:26 +0000 (20:53 +0400)]
Use XCAR and XCDR instead of Fcar and Fcdr where possible.
* admin/coccinelle/list_loop.cocci: Semantic patch to convert from Fcdr
to XCDR and consistently use CONSP in the list iteration loops.
* admin/coccinelle/vector_contents.cocci: Fix indentation.
* src/callint.c, src/coding.c, src/doc.c, src/editfns.c, src/eval.c,
* src/font.c, src/fontset.c, src/frame.c, src/gnutls.c, src/minibuf.c,
* src/msdos.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/window.c,
* src/xmenu.c: Changed to use XCAR and XCDR where argument type is known
to be a Lisp_Cons.

11 years agoImplement token threading
Tom Tromey [Tue, 10 Jul 2012 14:25:22 +0000 (08:25 -0600)]
Implement token threading

* bytecode.c (BYTE_CODE_THREADED): New macro.
(BYTE_CODES): New macro.  Replaces all old byte-code defines.
(enum byte_code_op): New type.
(CASE, NEXT, FIRST, CASE_DEFAULT, CASE_ABORT): New macros.
(exec_byte_code): Use them.  Use token threading when applicable.

11 years ago* eshell/esh-ext.el (eshell-remote-command): Remove remote part of
Michael Albinus [Tue, 10 Jul 2012 12:16:40 +0000 (14:16 +0200)]
* eshell/esh-ext.el (eshell-remote-command): Remove remote part of
command, just in case.  The function is not needed anymore.
(eshell-external-command): Do not call `eshell-remote-command'

11 years agoReduce use of (require 'cl).
Stefan Monnier [Tue, 10 Jul 2012 11:51:54 +0000 (07:51 -0400)]
Reduce use of (require 'cl).
* admin/bzrmerge.el: Use cl-lib.
* leim/quail/hangul.el: Don't require CL.
* leim/quail/ipa.el: Use cl-lib.
* vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
* vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
* register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
* msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
* international/quail.el, info-xref.el, imenu.el, image-mode.el:
* font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
* battery.el, avoid.el, abbrev.el: Use cl-lib.
* vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
* vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
* jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
* emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
* calculator.el, autorevert.el, apropos.el: Don't require CL.
* emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
(byte-compile-unfold-bcf, byte-compile-check-variable):
* emacs-byte-opt.el (byte-compile-trueconstp)
(byte-compile-nilconstp):
* emacs-autoload.el (make-autoload): Use pcase.
* face-remap.el (text-scale-adjust): Simplify pcase patterns.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Tue, 10 Jul 2012 11:46:31 +0000 (13:46 +0200)]
nt/config.nt: Sync with autogen/config.in.

11 years ago* lisp/emacs-lisp/gv.el (cond): Make it a valid place.
Stefan Monnier [Tue, 10 Jul 2012 11:27:27 +0000 (07:27 -0400)]
* lisp/emacs-lisp/gv.el (cond): Make it a valid place.
(if): Simplify slightly.

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 10 Jul 2012 10:17:29 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* shr.el (shr-expand-url): Handle URL starting with `//'.
Andreas Schwab [Tue, 10 Jul 2012 09:42:48 +0000 (11:42 +0200)]
* shr.el (shr-expand-url): Handle URL starting with `//'.

11 years ago* lisp/emacs-lisp/pcase.el (pcase): Accept self-quoting exps as "upatterns".
Stefan Monnier [Tue, 10 Jul 2012 09:26:04 +0000 (05:26 -0400)]
* lisp/emacs-lisp/pcase.el (pcase): Accept self-quoting exps as "upatterns".
(pcase--self-quoting-p): New function.
(pcase--u1): Use it.

11 years agoOptimize pure C strings initialization.
Dmitry Antipov [Tue, 10 Jul 2012 08:43:46 +0000 (12:43 +0400)]
Optimize pure C strings initialization.
* lisp.h (make_pure_string): Fix prototype.
(build_pure_c_string): New function, defined as static inline.  This
provides a better opportunity to optimize away calls to strlen when
the function is called with compile-time constant argument.
* alloc.c (make_pure_c_string): Fix comment.  Change to add nchars
argument, adjust users accordingly.  Use build_pure_c_string where
appropriate.
* buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c,
* keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c,
* xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate.

11 years agoAvoid calls to strlen in miscellaneous functions.
Dmitry Antipov [Tue, 10 Jul 2012 07:59:31 +0000 (11:59 +0400)]
Avoid calls to strlen in miscellaneous functions.
* buffer.c (init_buffer): Use precalculated len, adjust if needed.
* font.c (Ffont_xlfd_name): Likewise.  Change to call make_string.
* lread.c (openp): Likewise.

11 years agoMove PENDING_OUTPUT_COUNT from src/s to configure
Glenn Morris [Tue, 10 Jul 2012 07:37:17 +0000 (00:37 -0700)]
Move PENDING_OUTPUT_COUNT from src/s to configure

* configure.ac (PENDING_OUTPUT_COUNT): Move here from src/s.

* src/s/cygwin.h, src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
* src/s/unixware.h: Move PENDING_OUTPUT_COUNT definition to configure.

11 years agoMove DATA_START, DATA_SEG_BITS from src/s to configure
Glenn Morris [Tue, 10 Jul 2012 07:15:05 +0000 (00:15 -0700)]
Move DATA_START, DATA_SEG_BITS from src/s to configure

* configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s.

* src/s/irix6-5.h (DATA_START, DATA_SEG_BITS):
* src/s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
* src/s/gnu.h (DATA_START): Move definitions to configure.

11 years agoAvoid calls to strlen in path processing functions.
Dmitry Antipov [Tue, 10 Jul 2012 06:23:45 +0000 (10:23 +0400)]
Avoid calls to strlen in path processing functions.
* fileio.c (file_name_as_directory): Add comment.  Change to add
srclen argument and return the length of result.  Adjust users
accordingly.
(directory_file_name): Fix comment.  Change to add srclen argument,
swap 1nd and 2st arguments to obey the common convention.  Adjust
users accordingly.
* filelock.c (fill_in_lock_file_name): Avoid calls to strlen.

11 years ago* src/s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards.
Glenn Morris [Tue, 10 Jul 2012 01:49:46 +0000 (21:49 -0400)]
* src/s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards.
We include usg5-4-common.h, which defines them both.

11 years ago* src/s/gnu.h: Don't include fcntl.h
Glenn Morris [Tue, 10 Jul 2012 01:33:53 +0000 (21:33 -0400)]
* src/s/gnu.h: Don't include fcntl.h
(every file in Emacs that uses O_RDONLY already includes it; and this
does not seem like the problem a src/s file should be trying to solve).

11 years ago* src/nsterm.m (ns_exec_path): Fix typo in previous
Glenn Morris [Tue, 10 Jul 2012 01:25:07 +0000 (21:25 -0400)]
* src/nsterm.m (ns_exec_path): Fix typo in previous

11 years agoauthors.el update for configure.ac renaming
Glenn Morris [Tue, 10 Jul 2012 01:11:08 +0000 (21:11 -0400)]
authors.el update for configure.ac renaming

* lisp/emacs-lisp/authors.el (authors-fixed-entries):
(authors-renamed-files-alist): Update for configure.in -> configure.ac.