]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years agoRevert bogus change in 2011-07-28T21:49:16Z!eggert@cs.ucla.edu.
Chong Yidong [Wed, 18 Jul 2012 08:11:08 +0000 (16:11 +0800)]
Revert bogus change in 2011-07-28T21:49:16Z!eggert@cs.ucla.edu.

* src/frame.c (x_set_frame_parameters): Revert bogus change introduced
in 2012-05-25 commit by Paul Eggert.

Fixes: debbugs:11738
12 years ago* lisp/emacs-lisp/eieio.el: Adapt further to gv.el.
Stefan Monnier [Wed, 18 Jul 2012 07:20:04 +0000 (03:20 -0400)]
* lisp/emacs-lisp/eieio.el: Adapt further to gv.el.
(eieio-defclass): Use gv-define-setter when possible.

Fixes: debbugs:11970
12 years agoReturn more descriptive data from Fgarbage_collect.
Dmitry Antipov [Wed, 18 Jul 2012 05:44:36 +0000 (09:44 +0400)]
Return more descriptive data from Fgarbage_collect.
Suggested by Stefan Monnier in
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00369.html.
* src/alloc.c (bounded_number): New function.
(total_buffers, total_vectors): New variable.
(total_string_size): Rename to total_string_bytes, adjust users.
(total_vector_size): Rename to total_vector_bytes, adjust users.
(sweep_vectors): Account total_vectors and total_vector_bytes.
(Fgarbage_collect): New return value.  Adjust documentation.
(gc_sweep): Account total_buffers.
(Fmemory_free, Fmemory_use_counts): Use bounded_number.
(VECTOR_SIZE): Remove.
* src/data.c (Qfloat, Qvector, Qsymbol, Qstring, Qcons): Make global.
(Qinterval, Qmisc): New symbols.
(syms_of_data): Initialize them.
* src/lisp.h (Qinterval, Qsymbol, Qstring, Qmisc, Qvector, Qfloat)
(Qcons, Qbuffer): New declarations.
* lisp/emacs-lisp/chart.el (chart-emacs-storage): Change to
reflect new format of data returned by Fgarbage_collect.

12 years agoNew utility functions + python-info-ppss-context fix.
Fabián Ezequiel Gallina [Tue, 17 Jul 2012 20:27:49 +0000 (17:27 -0300)]
New utility functions + python-info-ppss-context fix.
* progmodes/python.el (python-info-beginning-of-block-statement-p)
(python-info-ppss-comment-or-string-p): New functions.
(python-info-ppss-context): Small fix for string check.

Fixes: debbugs:11910
12 years ago* lisp/dired-aux.el (dired-do-async-shell-command): Doc fix.
Juri Linkov [Tue, 17 Jul 2012 18:40:15 +0000 (21:40 +0300)]
* lisp/dired-aux.el (dired-do-async-shell-command): Doc fix.
(dired-do-async-shell-command): Don't add `*' at the end of the
command (Bug#11815).
(dired-do-shell-command): Doc fix.
(dired-shell-stuff-it): Strip the trailing "&" and ";" if any.
Join the individual commands using either "&" or ";" as the
separator depending on the values of these trailing characters.
At the end re-add the trailing "&".  (Bug#10598)

* lisp/simple.el (async-shell-command): Sync the interactive spec with
`shell-command'.  Doc fix.
(shell-command): Doc fix.

12 years ago* lisp/descr-text.el (describe-char): Fix format args.
Juri Linkov [Tue, 17 Jul 2012 18:15:02 +0000 (21:15 +0300)]
* lisp/descr-text.el (describe-char): Fix format args.

Fixes: debbugs:10129
12 years agoFinal renames and doc fixes for movement commands.
Fabián Ezequiel Gallina [Tue, 17 Jul 2012 18:02:53 +0000 (15:02 -0300)]
Final renames and doc fixes for movement commands.
* progmodes/python.el (python-nav-beginning-of-statement): Rename
from python-nav-statement-start.
(python-nav-end-of-statement): Rename from
python-nav-statement-end.
(python-nav-beginning-of-block): Rename from
python-nav-block-start.
(python-nav-end-of-block): Rename from python-nav-block-end.

Fixes: debbugs:11899
12 years ago* progmodes/python.el (python-shell-send-string-no-output): Allow
Fabián Ezequiel Gallina [Tue, 17 Jul 2012 16:47:58 +0000 (13:47 -0300)]
* progmodes/python.el (python-shell-send-string-no-output): Allow
accept-process-output to quit, keeping shell process ready for
future interactions.

Fixes: debbugs:11868
12 years ago* alloc.c (Fmemory_free): Account for memory-free's own storage.
Paul Eggert [Tue, 17 Jul 2012 16:24:57 +0000 (09:24 -0700)]
* alloc.c (Fmemory_free): Account for memory-free's own storage.

Round up, not down.  Improve doc.

12 years ago* lisp/emacs-lisp/cl-macs.el (cl-progv): Use a properly prefixed var name.
Stefan Monnier [Tue, 17 Jul 2012 12:58:25 +0000 (08:58 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-progv): Use a properly prefixed var name.

12 years ago* lisp/emacs-lisp/elint.el (elint-find-args-in-code):
Stefan Monnier [Tue, 17 Jul 2012 12:30:48 +0000 (08:30 -0400)]
* lisp/emacs-lisp/elint.el (elint-find-args-in-code):
Use help-function-arglist, so as to handle lexical byte-code.

12 years agoRestore old code in allocate_string_data to avoid Faset breakage.
Dmitry Antipov [Tue, 17 Jul 2012 12:31:29 +0000 (16:31 +0400)]
Restore old code in allocate_string_data to avoid Faset breakage.
Reported by Julien Danjou <julien@danjou.info> in
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00371.html.
* alloc.c (allocate_string_data): Restore old code with minor
adjustments, fix comment to explain this subtle issue.

12 years agoMerge from emacs-24
Stefan Monnier [Tue, 17 Jul 2012 11:52:00 +0000 (07:52 -0400)]
Merge from emacs-24

12 years ago* lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws):
Stefan Monnier [Tue, 17 Jul 2012 11:40:23 +0000 (07:40 -0400)]
* lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws):
Avoid spuriously marking the buffer as modified because of c-is-sws.

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

12 years agoCleanup and convert miscellaneous checks to eassert.
Dmitry Antipov [Tue, 17 Jul 2012 09:12:24 +0000 (13:12 +0400)]
Cleanup and convert miscellaneous checks to eassert.
* alloc.c (mark_interval): Fix comment, partially rephrase
old comment from intervals.h (see below).
* intervals.c (find_interval, adjust_intervals_for_insertion)
(delete_interval, adjust_intervals_for_deletion)
(graft_intervals_into_buffer, temp_set_point_both, copy_intervals):
Convert to eassert.
(adjust_intervals_for_insertion, make_new_interval):
Remove obsolete and unused code.
* intervals.h (struct interval): Remove obsolete comment.
* textprotp.c (erase_properties): Remove unused code.
(Fadd_text_properties, set_text_properties_1, Fremove_text_properties)
(Fremove_list_of_text_properties): Convert to eassert.

12 years ago* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR"
Stefan Monnier [Tue, 17 Jul 2012 08:38:12 +0000 (04:38 -0400)]
* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR"
as not-a-comment.
* test/indent/shell.sh: Add test case for ${#VAR}.

Fixes: debbugs:11946
12 years agoMisc minor changes.
Stefan Monnier [Tue, 17 Jul 2012 08:15:06 +0000 (04:15 -0400)]
Misc minor changes.
* lisp/xt-mouse.el (xterm-mouse-translate-1, xterm-mouse-event-read):
Use read-event since we don't really want to read chars but bytes.
* lisp/emacs-lisp/macroexp.el (macroexp-let2): Use more informative names
for uninterned vars.

12 years ago* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only
Stefan Monnier [Tue, 17 Jul 2012 08:11:31 +0000 (04:11 -0400)]
* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only
$$..$$ but also $..$ using regexps.
Use tex-verbatim for \url and \path.
(tex-font-lock-keywords): Define as defconst like the others.
(tex-common-initialization): Don't use font-lock-syntax-table any more.
* test/indent/latex-mode.tex: New file.

Fixes: debbugs:11953
12 years agoDocument insert-char changes.
Chong Yidong [Tue, 17 Jul 2012 07:43:01 +0000 (15:43 +0800)]
Document insert-char changes.

* doc/emacs/basic.texi (Inserting Text): Replace ucs-insert with
insert-char.  Provide more details of input.

* doc/lispref/mule.texi (International Chars, Input Methods): Likewise.

* doc/lispref/text.texi (Insertion): Document insert-char changes.

* src/editfns.c (Finsert_char): Doc fix.

12 years agoFix toolkit configuration report.
Dmitry Antipov [Tue, 17 Jul 2012 07:30:25 +0000 (11:30 +0400)]
Fix toolkit configuration report.
* configure.ac (USE_X_TOOLKIT): Report toolkit as GTK3 if
--with-x-toolkit=gtk3 is used.

12 years agoFix previous change to make Fmemory_free always accurate.
Dmitry Antipov [Tue, 17 Jul 2012 07:15:50 +0000 (11:15 +0400)]
Fix previous change to make Fmemory_free always accurate.
* alloc.c (make_interval): Update total_free_intervals.
(make_float): Likewise for total_free_floats.
(free_cons, Fcons): Likewise for total_free_conses.
(SETUP_ON_FREE_LIST, allocate_vector_from_block):
Likewise for total_free_vector_bytes.
(Fmake_symbol): Likewise for total_free_symbols.
(bytes_free): Remove.

12 years agoSimple free memory accounting feature.
Dmitry Antipov [Tue, 17 Jul 2012 05:01:33 +0000 (09:01 +0400)]
Simple free memory accounting feature.
* alloc.c (bytes_free, total_free_vector_bytes): New variable.
(sweep_vectors): Accumulate size of free vectors.
(Fgarbage_collect): Setup bytes_free.
(Fmemory_free): New function.
(syms_of_alloc): Register it.

12 years agoCleanup overlays checking.
Dmitry Antipov [Tue, 17 Jul 2012 04:29:50 +0000 (08:29 +0400)]
Cleanup overlays checking.
* buffer.h (OVERLAY_VALID): Remove as useless synonym of OVERLAYP.
* buffer.c (overlay_touches_p, recenter_overlay_lists): Change to
eassert and OVERLAYP.
(sort_overlays): Change to use OVERLAYP.

12 years agoMake insert-char interactive, and ucs-insert an obsolete alias for it.
René Kyllingstad [Tue, 17 Jul 2012 04:17:23 +0000 (12:17 +0800)]
Make insert-char interactive, and ucs-insert an obsolete alias for it.

* lisp/international/mule-cmds.el (ucs-insert): Make it an obsolete
alias for insert-char.

* editfns.c (Finsert_char): Make it interactive, and make the second
arg optional.  Copy interactive spec and docstring from ucs-insert.

12 years ago* floatfns.c (Fabs): Do not wrap fabs inside IN_FLOAT.
Paul Eggert [Tue, 17 Jul 2012 02:56:00 +0000 (19:56 -0700)]
* floatfns.c (Fabs): Do not wrap fabs inside IN_FLOAT.

Unlike the other wrapped functions, fabs has an unspecified
effect on errno.

Fixes: debbugs:11913
12 years agoFix regression with pthread_sigmask on FreeBSD.
Paul Eggert [Tue, 17 Jul 2012 02:09:58 +0000 (19:09 -0700)]
Fix regression with pthread_sigmask on FreeBSD.

* configure.ac: Configure gnulib at the end, not before running
pkg-config.  This restores the behavior before 2012-06-22, when
higher-resolution time stamps were added, and fixes a bug whereby
LIB_PTHREAD was not used and gnulib's part of 'configure'
therefore incorrectly assumed that pthread_sigmask wasn't working.
Fix the problem with -lrt and clock_gettime a different way.
This should complete the fix for Bug#11884.
(pre_PKG_CONFIG_CFLAGS, pre_PKG_CONFIG_LIBS): New shell vars.

12 years ago* progmodes/python.el: Simplified imenu implementation.
Fabián Ezequiel Gallina [Mon, 16 Jul 2012 17:18:39 +0000 (14:18 -0300)]
* progmodes/python.el: Simplified imenu implementation.
(python-nav-jump-to-defun): Remove command.
(python-mode-map): Use `imenu' instead.
(python-nav-list-defun-positions-cache)
(python-imenu-include-defun-type, python-imenu-make-tree)
(python-imenu-subtree-root-label, python-imenu-index-alist):
Remove vars.
(python-nav-list-defun-positions, python-nav-read-defun)
(python-imenu-tree-assoc, python-imenu-make-element-tree)
(python-imenu-make-tree, python-imenu-create-index): Remove
functions.
(python-mode): Update to interact with imenu by setting
`imenu-extract-index-name-function' only.

12 years ago* progmodes/python.el: Enhancements to navigation commands.
Fabián Ezequiel Gallina [Mon, 16 Jul 2012 13:13:01 +0000 (10:13 -0300)]
* progmodes/python.el: Enhancements to navigation commands.
(python-nav-backward-sentence)
(python-nav-forward-sentence): Remove.
(python-nav-backward-statement, python-nav-forward-statement)
(python-nav-statement-start, python-nav-statement-end)
(python-nav-backward-block, python-nav-forward-block)
(python-nav-block-start, python-nav-block-end)
(python-nav-forward-sexp-function)
(python-info-current-line-comment-p)
(python-info-current-line-empty-p): New functions.
(python-indent-context): Use `python-nav-statement-start'.

12 years ago* eshell/em-ls.el (eshell/ls): Use `apply'.
Michael Albinus [Mon, 16 Jul 2012 11:42:01 +0000 (13:42 +0200)]
* eshell/em-ls.el (eshell/ls): Use `apply'.

* eshell/em-unix.el (eshell/su, eshell/sudo): Apply Tramp's ad-hoc
multi-hops, instead of Tramp internals.

12 years ago* nsterm.m (keyDown): Interpret flags without left/right bits
Jan Djärv [Mon, 16 Jul 2012 11:02:09 +0000 (13:02 +0200)]
* nsterm.m (keyDown): Interpret flags without left/right bits
as the left key.

Fixes: debbugs:11670
12 years ago* vc/ediff.el (ediff-directories): Add trailing space to prompts.
Michael Albinus [Mon, 16 Jul 2012 10:19:56 +0000 (12:19 +0200)]
* vc/ediff.el (ediff-directories): Add trailing space to prompts.

* vc/ediff-diff.el (ediff-same-file-contents): Handle the case,
when F1 and F2 are located on different hosts.

12 years agoRemove empty and useless init functions.
Dmitry Antipov [Mon, 16 Jul 2012 04:47:31 +0000 (08:47 +0400)]
Remove empty and useless init functions.
* lisp.h (init_character_once, init_fns, init_image)
(init_filelock, init_sound): Remove prototype.
* character.c (init_character_once): Remove.
* filelock.c (init_filelock): Likewise.
* fns.c (init_fns): Likewise.
* image.c (init_image): Likewise.
* sound.c (init_sound): Likewise.
* emacs.c (main): Adjust accordingly.

12 years ago* gtkutil.h: Tiny cleanups.
Dmitry Antipov [Mon, 16 Jul 2012 03:36:46 +0000 (07:36 +0400)]
* gtkutil.h: Tiny cleanups.
(use_old_gtk_file_dialog): Remove useless declaration.
(xg_uses_old_file_dialog): Add suggested const attribute.

12 years agoMerge from gnulib.
Paul Eggert [Sun, 15 Jul 2012 18:18:37 +0000 (11:18 -0700)]
Merge from gnulib.

2012-07-15 pthread_sigmask: fix bug on FreeBSD 9 (Bug#11884)
2012-07-11 gettext: do not assume '#define ... defined ...' behavior

12 years agoFix bug #11943 with slow redisplay in large paragraphs full of weak characters.
Eli Zaretskii [Sun, 15 Jul 2012 14:41:08 +0000 (17:41 +0300)]
Fix bug #11943 with slow redisplay in large paragraphs full of weak characters.

 src/bidi.c (MAX_STRONG_CHAR_SEARCH): New macro.
 (bidi_paragraph_init): Use it to limit search forward for a strong
 directional character in abnormally large paragraphs full of
 neutral or weak characters.

12 years ago* src/gtkutil.c (xg_create_tool_bar): Apply "primary-toolbar" style to
Stefano Facchini [Sun, 15 Jul 2012 14:22:09 +0000 (22:22 +0800)]
* src/gtkutil.c (xg_create_tool_bar): Apply "primary-toolbar" style to
the toolbar.
(xg_make_tool_item): Give the widget event box a transparent background.

Fixes: debbugs:9451
12 years agoCleanup basic allocation variables and functions.
Dmitry Antipov [Sun, 15 Jul 2012 11:17:09 +0000 (15:17 +0400)]
Cleanup basic allocation variables and functions.
* alloc.c (ignore_warnings, init_intervals, init_float)
(init_cons, init_symbol, init_marker): Remove.
(interval_block_index): Initialize to INTERVAL_BLOCK_SIZE.
(float_block_index): Initialize to FLOAT_BLOCK_SIZE.
(cons_block_index): Initialize to CONS_BLOCK_SIZE.
(symbol_block_size): Initialize to SYMBOL_BLOCK_SIZE.
(marker_block_index): Initialize to MARKER_BLOCK_SIZE.
(staticidx, init_alloc_once, init_strings, free_ablock):
Remove redundant initialization.
* fns.c (init_weak_hash_tables): Remove.
* lisp.h (init_weak_hash_tables): Remove prototype.

12 years agoUse zero_vector where appropriate.
Dmitry Antipov [Sun, 15 Jul 2012 07:57:54 +0000 (11:57 +0400)]
Use zero_vector where appropriate.
* alloc.c (zero_vector): Define as Lisp_Object.  Adjust users
accordingly.
* lisp.h (zero_vector): New declaration.
* font.c (null_vector): Remove.
(syms_of_font): Remove initialization and staticpro.
(font_list_entities, font_find_for_lface): Change to use zero_vector.
* keymap.c (Faccessible_keymaps): Likewise.

12 years agoAdd news for exclamation-mark and flymake
Leo Liu [Sun, 15 Jul 2012 00:52:16 +0000 (08:52 +0800)]
Add news for exclamation-mark and flymake

12 years ago* xt-mouse.el: Implement extended mouse coordinates.
Chong Yidong [Sat, 14 Jul 2012 15:40:12 +0000 (23:40 +0800)]
* xt-mouse.el: Implement extended mouse coordinates.
(xterm-mouse-translate): Move code into xterm-mouse-translate-1.
(xterm-mouse-translate-extended, xterm-mouse-translate-1)
(xterm-mouse--read-event-sequence-1000)
(xterm-mouse--read-event-sequence-1006): New functions.  For old
mouse protocol, handle M-mouse-X events correctly.
(xterm-mouse-event): New arg specifying mouse protocol.
(turn-on-xterm-mouse-tracking-on-terminal)
(turn-off-xterm-mouse-tracking-on-terminal): Send DEC 1006
sequence to toggle extended coordinates on newer XTerms.  This
appears to be harmless on terminals which do not support this.

Fixes: debbugs:10642
12 years agoAdd fringe bitmap indicators for flymake
Leo Liu [Sat, 14 Jul 2012 12:02:22 +0000 (20:02 +0800)]
Add fringe bitmap indicators for flymake

Fixes: debbugs:11253
12 years agoAdd a new bitmap exclamation-mark
Leo Liu [Sat, 14 Jul 2012 11:44:39 +0000 (19:44 +0800)]
Add a new bitmap exclamation-mark

12 years agoImprove commentary in src/systime.h.
Eli Zaretskii [Sat, 14 Jul 2012 11:32:01 +0000 (14:32 +0300)]
Improve commentary in src/systime.h.

12 years agoDon't use FILE_SYSTEM_CASE in MS-DOS, or anywhere else.
Eli Zaretskii [Sat, 14 Jul 2012 10:46:56 +0000 (13:46 +0300)]
Don't use FILE_SYSTEM_CASE in MS-DOS, or anywhere else.

 src/s/msdos.h (FILE_SYSTEM_CASE): Don't define.
 src/fileio.c (FILE_SYSTEM_CASE): Don't define.
 (Ffile_name_directory, Fexpand_file_name): Don't use FILE_SYSTEM_CASE.
 Fixes problems on MS-DOS with Vtemp_file_name_pattern when
 call-process-region passes it through expand-file-name.
 src/dired.c (file_name_completion): Don't use FILE_SYSTEM_CASE.
 admin/CPP-DEFINES: Remove FILE_SYSTEM_CASE.

12 years agoAdapt the MS-DOS build to the latest configury changes.
Eli Zaretskii [Sat, 14 Jul 2012 10:08:14 +0000 (13:08 +0300)]
Adapt the MS-DOS build to the latest configury changes.

 msdos/sed1v2.inp: In the recipe for $(leimdir)/leim-list.el, edit the
 prerequisites to be "temacs$(EXEEXT) $(BOOTSTRAPEMACS)", to avoid
 the need to rebuild $(bootstrap_exe), which requires a Unixy shell
 via lisp/Makefile.in's "update-subdirs" command.
 msdos/sedlibmk.inp (am_libgnu_a_OBJECTS): Adjust the removal of
 careadlinkat.$(OBJEXT) to the changes in lib/Makefile.in.
 msdos/sed2v2.inp (DATA_START, GC_SETJMP_WORKS, HAVE_MENUS)
 (HAVE_MOUSE): Edit for DJGPP, according to what was previously
 done on src/s/msdos.h.
 msdos/gmalloc.c (GMALLOC_INHIBIT_VALLOC): Don't reference.
 src/s/msdos.h (BSD_SYSTEM, DATA_START, GC_SETJMP_WORKS, HAVE_MOUSE)
 (HAVE_MENUS): Don't define, defined by editing config.in with
 msdos/sed2v2.inp.
 (GMALLOC_INHIBIT_VALLOC): Don't define.
 (MODE_LINE_BINARY_TEXT): Remove, not used anymore.

12 years ago*** empty log message ***
Jan Djärv [Sat, 14 Jul 2012 09:08:36 +0000 (11:08 +0200)]
*** empty log message ***

12 years agoFix electric-pair-mode/delete-selection-mode interaction.
Chong Yidong [Sat, 14 Jul 2012 05:32:23 +0000 (13:32 +0800)]
Fix electric-pair-mode/delete-selection-mode interaction.

* lisp/electric.el (electric-pair-post-self-insert-function): Fix pair
insertion in empty-region case.

Fixes: debbugs:11520
12 years ago* nt/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Sat, 14 Jul 2012 02:26:31 +0000 (04:26 +0200)]
* nt/config.nt: Sync with autogen/config.in.
(GC_MARK_SECONDARY_STACK, GC_MARK_STACK, GC_SETJMP_WORKS)
(SETUP_SLAVE_PTY): New macros.

* src/s/ms-w32.h (GC_SETJMP_WORKS, GC_MARK_STACK): Set in nt/config.nt.

12 years ago* rect.el (copy-rectangle-as-kill): New command.
Reuben Thomas [Sat, 14 Jul 2012 02:19:07 +0000 (10:19 +0800)]
* rect.el (copy-rectangle-as-kill): New command.

* lisp/rect.el, lisp/register.el: Move bindings to bindings.el.

* lisp/bindings.el: Consolidate ctl-x-r-map bindings.  Bind
copy-rectangle-as-kill to C-x r w.

Fixes: debbugs:739
12 years agoFix typos in ChangeLogs.
Juanma Barranquero [Sat, 14 Jul 2012 02:08:32 +0000 (04:08 +0200)]
Fix typos in ChangeLogs.

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 14 Jul 2012 00:06:05 +0000 (20:06 -0400)]
Auto-commit of generated files.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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
12 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'.

12 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).

12 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)

12 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
12 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
12 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.

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

12 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)

12 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.

12 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.

12 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.

12 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.

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

12 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
12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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

12 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.

12 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.

12 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.

12 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>.

12 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.

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

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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.