(DISCARD_FAILURE_REG_OR_COUNT): New macro.
(CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
when jumping to `fail' to avoid undoing reg changes in the
last iteration of the loop.
(GET_UNSIGNED_NUMBER): Skip spaces around the number.
Jason Rumney [Wed, 20 Mar 2002 20:38:44 +0000 (20:38 +0000)]
(init_winsock): Dynamically load new server and UDP
socket functions.
(socket_to_fd): New function.
(sys_socket): Use it.
(sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
(sys_recvfrom, sys_sendto): New wrapper functions.
Michael Kifer [Wed, 20 Mar 2002 06:36:18 +0000 (06:36 +0000)]
* ediff-diff.el (ediff-install-fine-diff-if-necessary): take
the current highlighting style into account.
(ediff-forward-word-function,ediff-whitespace,ediff-word-1,
ediff-word-2,ediff-word-3,ediff-word-4): make them buffer local.
* ediff-init.el (ediff-patch-job): new macro.
* ediff-mult.el (ediff-make-new-meta-list-header): new API function.
(ediff-intersect-directories): use ediff-make-new-meta-list-header.
* ediff-ptch.el (ediff-map-patch-buffer): use
ediff-make-new-meta-list-header.
(ediff-fixup-patch-map): use the meta-list API from ediff-mult.el.
* ediff-util.el (ediff-toggle-hilit): fix toggling of highliting.
(ediff-select-difference): take highlighting style into account.
(ediff-clone-buffer-for-region-comparison): new function.
(ediff-inferior-compare-regions): added comparison of current diff
regions.
* ediff.el (ediff-clone-buffer-for-region-comparison,
ediff-clone-buffer-for-window-comparison): moved to ediff-util.el.
Paul Reilly [Tue, 19 Mar 2002 19:42:46 +0000 (19:42 +0000)]
(rmail-dont-reply-to): Overhaul to correctly apply the regular
expressions in the variable `rmail-dont-reply-to-names' to the list of
destination addresses. Contributed by lorentey@elte.hu.
Paul Reilly [Tue, 19 Mar 2002 19:35:31 +0000 (19:35 +0000)]
(rmail-dont-reply-to-names): Modify the documentation to make it email
address centric rather than login name centric. Contributed by
lorentey@elte.hu.
Colin Walters [Mon, 18 Mar 2002 21:21:57 +0000 (21:21 +0000)]
(ibuffer-set-mark): Go back to the beginning of the line after setting
the mark.
(ibuffer-insert-buffers-and-marks): Invert the test for
`ibuffer-sorting-reversep'.
Stefan Monnier [Mon, 18 Mar 2002 20:21:56 +0000 (20:21 +0000)]
("emacs-lisp/backquote"): Load earlier.
("international/ucs-tables"): Load and turn on
unify-8859-on-encoding-mode unconditionally.
(emacs-version): Use `defconst' rather than `setq'.
André Spiegel [Mon, 18 Mar 2002 17:17:38 +0000 (17:17 +0000)]
(vc-rcs-register): Fix handling of vc-[rcs-]register-switches.
(vc-rcs-checkin-switches, vc-rcs-checkout-switches): Removed, since
they weren't used yet.
(cursor_type_changed): New variable.
(redisplay_internal): Redisplay all windows if cursor_type_changed.
Clear it when clearing windows_or_buffers_changed.
(try_cursor_movement, redisplay_window, try_window_id)
(try_window_reusing_current_matrix): Test cursor_type_changed
along with windows_or_buffers_changed.
(clear_garbaged_frames): Don't set windows_or_buffers_changed
if no frames needed redrawing.
Stefan Monnier [Sun, 17 Mar 2002 23:55:15 +0000 (23:55 +0000)]
(sgml-xml-mode): Renamed from sgml-xml.
(sgml-xml-guess): Simplify.
(sgml-mode-common): Remove (move into sgml-mode).
(sgml-mode): Add code from sgml-mode-common.
Remove redundant setting of indent-line-function.
Don't set skeleton-transformation when in XML mode.
Stefan Monnier [Sun, 17 Mar 2002 20:50:48 +0000 (20:50 +0000)]
(ucs-unify-8859, ucs-fragment-8859): Use unify-8859-on-decoding-mode.
(unify-8859-on-decoding-mode): Also set translation-table-for-input.
(ucs-insert): Give an error if the unicode char can't be created.
Kim F. Storm [Sun, 17 Mar 2002 20:30:19 +0000 (20:30 +0000)]
(save-buffers-kill-emacs): Also check for active server
processes. Use process-query-on-exit-flag. Only list processes
which has the query-on-exit flag set in connection with user query.
Kim F. Storm [Sun, 17 Mar 2002 20:28:53 +0000 (20:28 +0000)]
Update copyright.
(clone-process): Use make-network-process to clone network
processes. Get command list via (process-contact ... t).
Use set-process-query-on-exit-flag and process-query-on-exit-flag
instead of process-kill-without-query.
(open-network-stream): Replaces C-version from process.c.
(open-network-stream-nowait, open-network-stream-server): New
functions.
(process-kill-without-query): Replaces C-version from process.c.
Kim F. Storm [Sun, 17 Mar 2002 20:20:33 +0000 (20:20 +0000)]
(Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
(QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
(QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
New variables.
(NETCONN1_P): New macro.
(DATAGRAM_SOCKETS): New conditional symbol.
(datagram_address): New array.
(DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
(status_message): Use concat3.
(Fprocess_status): Add `listen' status to doc string. Return `stop'
for a stopped network process.
(Fset_process_buffer): Update contact plist for network process.
(Fset_process_filter): Ditto. Don't enable input for stopped
network processes. Server must listen, even if filter is t.
(Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
New functions.
(Fprocess_kill_without_query): Removed. Now defined in simple.el.
(Fprocess_contact): Added KEY argument. Handle datagrams.
(list_processes_1): Optionally show only processes with the query
on exit flag set. Dynamically adjust column widths. Omit tty
column if not needed. Report stopped network processes.
Identify server and datagram network processes.
(Flist_processes): New optional arg `query-only'.
(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
(conv_lisp_to_sockaddr, set_socket_options)
(network_process_featurep, unwind_request_sigio): New helper functions.
(Fprocess_datagram_address, Fset_process_datagram_address):
(Fset_network_process_options): New lisp functions.
(Fopen_network_stream): Removed. Now defined in simple.el.
(Fmake_network_process): New lisp function. Code is based on previous
Fopen_network_stream, but heavily reworked with new property list based
argument list, support for datagrams, server processes, and local
sockets in addition to old client-only functionality.
(server_accept_connection): New function.
(wait_reading_process_input): Use it to handle incoming connects.
Do not enable input on a new connection if process is stopped.
(read_process_output): Handle datagram sockets. Use 2k buffer for them.
(send_process): Handle datagram sockets.
(Fstop_process, Fcontinue_process): Apply to network processes. A stopped
network process is indicated by setting command field to t .
(Fprocess_send_eof): No-op if datagram connection.
(Fstatus_notify): Don't read input for a stream server socket or a
stopped network process.
(init_process): Initialize datagram_address array.
(syms_of_process): Intern and staticpro new variables, defsubr new
functions.
Kim F. Storm [Sun, 17 Mar 2002 20:16:55 +0000 (20:16 +0000)]
(struct Lisp_Process): New member log.
Doc fix: Member command used to indicate stopped network process.
Doc fix: Member childp contains plist for network process.
Doc fix: Member kill_without_query is inverse of query-on-exit flag.
Eli Zaretskii [Sat, 16 Mar 2002 17:29:48 +0000 (17:29 +0000)]
(po-content-type-charset-alist): Convert the
car of each association to a string.
(po-find-file-coding-system-guts): If the charset matches a name
of a codepage, set up that codepage and return it as a coding
system to decode the file.
(redisplay_internal, redisplay_windows):
Use list_of_error to call internal_condition_case_1.
(safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
so as to catch all errors with no possibility of debugger redisplay.
(list_of_error): New variable.
(syms_of_xdisp): Init and staticpro it.