1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-21 07:30:50 -08:00
Commit graph

32629 commits

Author SHA1 Message Date
Paul Eggert
e4d81efc58 * process.h (struct Lisp_Process): Members tick and update_tick
are now of type EMACS_INT, not int.

* process.c (process_tick, update_tick): Use EMACS_INT, not int.
2012-04-21 21:48:13 -07:00
Paul Eggert
a8b7caa345 * print.c: (print_depth, new_backquote_output, print_number_index):
Use ptrdiff_t, not int, where int might not be wide enough.
2012-04-21 21:35:17 -07:00
Paul Eggert
af52196c9f * sysdep.c (system_process_attributes): Use CONS_TO_INTEGER in new FreeBSD code, too. 2012-04-21 21:25:45 -07:00
Paul Eggert
c62c46f33c Merge from trunk. 2012-04-21 21:20:28 -07:00
Leo Liu
f01769f9ca * src/sysdep.c (list_system_processes): Support Darwin.
Fixes: debbugs:5725
2012-04-22 10:58:23 +08:00
Paul Eggert
5790543d1f * sysdep.c [__FreeBSD__]: Minor cleanups.
(list_system_processes, system_process_attributes) [__FreeBSD__]:
Use Emacs indenting style more consistently.  Avoid some casts.
Use 'double' consistently rather than mixing 'float' and 'double'.
2012-04-21 18:27:10 -07:00
Paul Eggert
bbd347f5f7 Merge from trunk. 2012-04-21 17:53:32 -07:00
Eduard Wiebe
b91b7e4d21 Add system processes support for FreeBSD.
* src/sysdep.c (list_system_processes, system_process_attributes): Add
implementation for FreeBSD.

Fixes: debbugs:5243
2012-04-21 18:11:51 +08:00
Andreas Schwab
6114eb1503 * lisp.mk (lisp): Update. 2012-04-21 10:03:52 +02:00
Paul Eggert
2f38dff7b3 * keyboard.c (process_pending_signals): Define only if SYNC_INPUT.
It is never used otherwise.
2012-04-20 14:26:18 -07:00
Stefan Monnier
4ae29f89be * src/print.c (print_preprocess): Only check print_depth if print-circle
is nil.
(print_object): Check for cycles even when print-circle is nil and
print-gensym is t, but only check print_depth if print-circle is nil.
2012-04-20 09:02:20 -04:00
Chong Yidong
c07a4c0b59 Merge from emacs-24 branch 2012-04-20 16:48:50 +08:00
Chong Yidong
f30d612a7a Fixes for pty handling in gdb-mi.el and process.c.
* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.

* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.

* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.
2012-04-20 14:39:29 +08:00
Paul Eggert
6c94c34fe8 Merge from trunk. 2012-04-18 09:45:13 -07:00
Glenn Morris
4373fd4326 More small doc and lispref edits related to processes
* doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec)
(Bindat Functions): Copyedits.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process, Fmake_serial_process): Doc fix.

* admin/FOR-RELEASE: Related markup.
2012-04-18 00:21:18 -07:00
Glenn Morris
016a35dfa7 More process-related doc and manual small edits
* doc/lispref/processes.texi (Output from Processes, Filter Functions):
Mention waiting-for-user-input-p.
(Sentinels, Query Before Exit, System Processes, Transaction Queues):
(Network Servers, Datagrams, Network Processes, Network Options)
(Network Feature Testing, Serial Ports): Copyedits.
(Network): Add encrypted network overview paragraph.
Cross-reference the Emacs-GnuTLS manual.  Use @acronym.

* lisp/net/network-stream.el (open-network-stream): Doc fix.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process): Doc fix.
2012-04-17 20:48:43 -07:00
Paul Eggert
6083b85e04 Merge from trunk. 2012-04-17 15:57:44 -07:00
Paul Eggert
aba027e80c * dired.c (Fsystem_groups): Remove unused local. 2012-04-17 15:56:06 -07:00
Paul Eggert
ae6e112df0 Merge from trunk. 2012-04-17 14:38:34 -07:00
Eli Zaretskii
20a6815736 Fix bug #11261 with cursor movement in a continued line when header line is present.
src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV.
 (set_cursor_from_row): If called for a mode-line or header-line
 row, return zero immediately.
 (try_cursor_movement): If inside continuation line, don't back up
 farther than the first row after the header line, if any.  Don't
 consider the header-line row as "partially visible", even if
 MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.
2012-04-17 18:25:17 +03:00
Glenn Morris
e5a3606344 * src/dired.c (Fsystem_users): Doc fix.
* etc/NEWS: Mention system-users, system-groups.
2012-04-16 21:35:15 -04:00
Dmitry Antipov
316411f0f2 Add functions to get system user names, group names
Note from committer:
I removed the part that adds grp.h to AC_CHECK_HEADERS and

+#ifdef HAVE_GRP_H
 #include <grp.h>
+#endif

to src/dired.c, because the latter has unconditionally included grp.h
since 2003, and uses it eg in stat_gname.

* configure.in (AC_CHECK_FUNCS): Add getpwent, endpwent, getgrent, endgrent.

* src/dired.c (Fsystem_users, Fsystem_groups): New functions.
(syms_of_dired): Add them.

Fixes: debbugs:7900
2012-04-16 21:29:58 -04:00
Paul Eggert
5927b310c8 Merge from trunk. 2012-04-15 23:40:21 -07:00
Paul Eggert
4b5afbb0d9 * alloc.c: Remove one incorrect comment and fix another. 2012-04-15 23:39:21 -07:00
Paul Eggert
5c68581679 Merge from trunk. 2012-04-15 20:39:50 -07:00
Paul Eggert
b62a57beb5 Fix minor alloc.c problems found by static checking.
* alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]:
New extern decls, to avoid calling undeclared functions.
(dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT)
&& GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined
GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used.
(NEED_MEM_INSERT): New macro.
(mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.
2012-04-15 20:38:40 -07:00
Paul Eggert
fda8c8fa71 Merge from trunk. 2012-04-15 18:22:25 -07:00
Paul Eggert
3539f31f03 Fix minor ralloc.c problems found by static checking.
See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
* ralloc.c (ALIGNED, ROUND_TO_PAGE, HEAP_PTR_SIZE)
(r_alloc_size_in_use, r_alloc_freeze, r_alloc_thaw): Remove; unused.
(r_alloc_sbrk): Now static.
2012-04-15 18:18:13 -07:00
Paul Eggert
f7752e6738 Merge from trunk. 2012-04-15 18:12:46 -07:00
Paul Eggert
a041960a7c Improve ralloc.c interface checking.
See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
* buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc)
(r_alloc_free) [REL_ALLOC]: Move decls from here ...
* lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable)
[REL_ALLOC]: ... to here, to check interface.
* m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]:
Remove decls.  This fixes an "It stinks!".
2012-04-15 18:10:42 -07:00
Paul Eggert
8dcd9adf66 Merge from trunk. 2012-04-15 17:35:58 -07:00
Paul Eggert
9426aba403 * alloc.c (which_symbols): Fix alignment issue / type clash. 2012-04-15 17:33:25 -07:00
Paul Eggert
20a14f94f6 Merge from trunk. 2012-04-15 16:55:52 -07:00
Andreas Schwab
d55c12ed1f Simplify enforcement of object address alignment
* lisp.h (struct Lisp_Symbol): Remove explicit padding.
(struct Lisp_Misc_Any): Likewise.
(struct Lisp_Free): Likewise.
* alloc.c (union aligned_Lisp_Symbol): Define.
(SYMBOL_BLOCK_SIZE, struct symbol_block): Use union
aligned_Lisp_Symbol instead of struct Lisp_Symbol.
(union aligned_Lisp_Misc): Define.
(MARKER_BLOCK_SIZE, struct marker_block): Use union
aligned_Lisp_Misc instead of union Lisp_Misc.
(Fmake_symbol, allocate_misc, gc_sweep): Adjust
2012-04-15 18:20:54 +02:00
Juanma Barranquero
75f1671a52 Fix ChangeLog typos. 2012-04-15 04:59:30 +02:00
Paul Eggert
3078ffdd45 Merge from trunk. 2012-04-13 23:38:33 -07:00
Paul Eggert
b948ce8b02 Make GC_MAKE_GCPROS_NOOPS the default (Bug#9926).
* lisp.h (GC_MARK_STACK): Default to GC_MAKE_GCPROS_NOOPS.
* s/cygwin.h, s/darwin.h, s/freebsd.h, s/gnu.h, s/irix6-5.h, s/msdos.h:
* s/netbsd.h, s/sol2-6.h:
Remove definition of GC_MARK_STACK, since the default now works.
* s/aix4-2.h, s/hpux10-20.h, s/unixware.h:
Define GC_MARK_STACK to GC_USE_GCPROS_AS_BEFORE, since that's
no longer the default.
* s/gnu-linux.h (GC_MARK_STACK): Adjust to change in default.
2012-04-13 23:18:49 -07:00
Paul Eggert
3bace81626 Merge from trunk. 2012-04-13 22:16:02 -07:00
Paul Eggert
5ae255c7e9 Spelling fixes.
* lisp/hexl.el (hexl-rulerize): Rename from hexl-rulerise, since
Emacs uses American spelling.
2012-04-13 22:10:55 -07:00
Paul Eggert
bdf35b6a6a Merge from trunk. 2012-04-13 21:37:44 -07:00
Glenn Morris
35dc09a19c Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.org 2012-04-13 18:46:06 -07:00
Atsuo Ohki
ad3a2b411d * lread.c (lisp_file_lexically_bound_p): Fix hang at ";-*-\n".
Fixes: debbugs:11238
2012-04-13 14:08:18 -04:00
Ken Brown
bcd86815d6 * src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor. 2012-04-13 10:50:25 -04:00
Chong Yidong
c6e571fbb7 Fix typo in last commit. 2012-04-13 14:22:01 +08:00
Reuben Thomas
c25df26eff * src/indent.c (Fmove_to_column): Change interactive spec. 2012-04-13 14:20:39 +08:00
Daniel Colascione
0fc59f1e60 Use the real vfork under Cygwin
* s/cygwin.h: The vfork the #define in cygwin.h was protecting
against is gone.  It's better to use vfork now so that when Cygwin
gains a new, working vfork, we use it automatically.

Fixes: debbugs:10398
2012-04-11 13:43:55 +02:00
Stefan Monnier
de8c03dc51 * src/window.c (save_window_save): Obey window-point-insertion-type.
* lisp/window.el (window--state-get-1): Idem.
2012-04-10 22:36:04 -04:00
Glenn Morris
2f097256b9 Repurpose C_SWITCH_X_SYSTEM as GNUSTEP_CFLAGS
This is the only thing left that uses it.

* configure.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.

* src/Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.

* lwlib/Makefile.in (C_SWITCH_X_SYSTEM): Remove.
(ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.

* oldXMenu/Makefile.in (C_SWITCH_X_SYSTEM): Remove.
(ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.

* msdos/sedlibmk.inp, msdos/sed1v2.inp:
GNUSTEP_CFLAGS replaces C_SWITCH_X_SYSTEM.
2012-04-10 21:25:51 -04:00
Stefan Monnier
453b951e7d * src/alloc.c (lisp_align_malloc): Remove unneeded prototype. 2012-04-10 20:51:44 -04:00
Paul Eggert
1530927cb9 Merge from trunk. 2012-04-10 14:59:42 -07:00