(server-visit-files): Use `when'.
(server-process-filter): When authentication fails, send error message to
client. Wrap `process-send-region' in `ignore-errors' instead of
`condition-case', and remove misleading comment.
* emacs-lisp-intro.texi: Remove version reference for X colors.
Document `='. Remove mention that :eval was new in 21. Updated
instance's edition-number to 3.01.
* emacs-lisp-intro.texi: Revised text for kill-region,
copy-region-as-kill, kill-append, kill-new, forward-sentence,
forward-paragraph, find-file, current-kill, yank, and yank-pop.
Removed INSTALL MANIFEST from the directory since those files are
now irrelevant. Updated Info file in ../info. Changed numbering
so is now Revised Third Edition and this instance's edition-number
is 3.00. Did not update ISBN number.
Fixes to emacsclient.c for GNU/Linux.
[!WINDOWSNT] <top level>: Include <netinet/in.h> and <sys/ioctl.h>.
(INVALID_SOCKET): Define.
(initialize_sockets): Put #endif at the right place.
(set_local_socket): Use progname, not argv[0].
(ada-prj-new): Change maintainer, apply whitespace-cleanup, checkdoc. Minor
improvements to many doc strings and comments.
(ada-prj-display-page): Change buffer name to more accurately reflect function.
Add support for TCP sockets.
(SEND_STRING, SEND_QUOTED, HSOCKET, CLOSE_SOCKET, IOCTL, INITIALIZE): New
macros.
(IOCTL_BOOL_ARG): New typedef.
(server_file): New global variable.
(longopts): New option --server-file.
(decode_options): Process new option --server-file and environment variable
EMACS_SERVER_FILE.
(print_help_and_exit): Document new option.
(fail): If no connection available and no alternate editor, suggest using
options to make them explicit.
(AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): New constants.
(send_buffer, sblen): New variables.
(send_to_emacs): New function to buffer output and send it with send().
(quote_file_name): Use SEND_STRING.
(close_winsock, initialize_sockets): New functions to load and unload Winsock.
(get_server_config, set_tcp_socket): New functions to create and set up TCP
sockets.
(set_local_socket): New function to create and set up Unix socket (code moved
from previous implementation).
(set_socket): New function to chose between TCP and Unix sockets.
(main): Use SEND_STRING and SEND_QUOTED. Most code moved to set_local_socket.
Use set_socket. Get answers from server.el with recv(), not file stream
functions.
Add support for TCP sockets.
(server-use-tcp, server-host, server-auth-dir): New options.
(server-auth-key): New variable.
(server-ensure-safe-dir): Create nonexistent parent dirs. Ignore Unix-style
file modes on Windows.
(server-start): Crete a TCP or Unix socket according to the value of
`server-use-tcp'. For TCP sockets, create the id/auth file in `server-auth-dir'
directory.
(server-process-filter): Delete process if authentication fails (which never
happens for Unix sockets).
* emacs-lisp-intro.texi: Many changes since it turned out that
many `simple' functions were rewritten. Changes to the text
regarding zap-to-char, mark-whole-buffer, append-to-buffer,
copy-to-buffer, beginning-of-buffer, what-line, and possibly
others. (I have not reviewed all yet.) This instance does build
for Info and TeX.
Chong Yidong [Mon, 30 Oct 2006 21:34:15 +0000 (21:34 +0000)]
* tutorial.el: Move defvars to avoid bytecomp warnings.
(tutorial--find-changed-keys): Check if viper-current-state is
bound before using it.
(help-with-tutorial): Check if viper-tutorial is defined before
using it.
Chong Yidong [Mon, 30 Oct 2006 14:52:56 +0000 (14:52 +0000)]
* tutorial.el: Move defvars to avoid bytecomp warnings.
(tutorial--find-changed-keys): Check if viper-current-state is
bound before using it.
(help-with-tutorial): Check if viper-tutorial is defined before
using it.
Chong Yidong [Mon, 30 Oct 2006 14:30:59 +0000 (14:30 +0000)]
* help-fns.el (help-with-tutorial): Moved to tutorial.el.
* tutorial.el: New file.
(help-with-tutorial): Moved here from help-fns.el. Added help for
rebound keys. Fixed resume of tutorial.
(tutorial--describe-nonstandard-key, tutorial--sort-keys)
(tutorial--find-changed-keys, tutorial--display-changes)
(tutorial--saved-dir, tutorial--saved-file)
(tutorial--save-tutorial): New functions to support the changes in
help-with-tutorial.
Miles Bader [Mon, 30 Oct 2006 08:47:46 +0000 (08:47 +0000)]
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 160)
- Update from CVS
2006-10-29 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/mm-util.el (mm-codepage-iso-8859-list, mm-codepage-ibm-list): New
variables.
(mm-setup-codepage-iso-8859, mm-setup-codepage-ibm): New functions.
(mm-charset-synonym-alist): Move some entries to
mm-codepage-iso-8859-list.
(mm-charset-synonym-alist, mm-charset-override-alist): Add
iso-8859-8/windows-1255 and iso-8859-9/windows-1254.
Stefan Monnier [Mon, 30 Oct 2006 07:29:37 +0000 (07:29 +0000)]
(server-select-display): Use a dummy buffer to detect when
the frame is later used.
(server-select-display): New function.
(server-process-filter): Use it to detect unused temp frames.
Change maintainer, apply whitespace-clean, checkdoc. Minor improvements to many
doc strings.
(ada-mode-version): New function.
(ada-create-menu): Menu operations are available for all supported compilers.
Lars Hansen [Sun, 29 Oct 2006 12:55:35 +0000 (12:55 +0000)]
(with-parsed-tramp-file-name): Correct debug spec. Highlight as keyword.
(tramp-do-copy-or-rename-file): Correct data for 'file-already-exists.
Don't call tramp-method-out-of-band-p for local files.
(tramp-touch): Quote file name.
Glenn Morris [Sat, 28 Oct 2006 21:53:34 +0000 (21:53 +0000)]
(cal-html-cursor-month, cal-html-cursor-year): Add autoloads for this
new package.
(calendar-mode-map): Bind cal-html-cursor-month, cal-html-cursor-year.
Chong Yidong [Fri, 27 Oct 2006 14:44:25 +0000 (14:44 +0000)]
* url-http.el (url-http-mark-connection-as-free): Verify that
connection is open before saving it.
(url-http-handle-authentication): Use url-retrieve-internal
instead of url-retrieve.
(url-http-parse-headers): Adapt to new callback interface.
(url-http): Handle non-blocking connections.
(url-http-async-sentinel): Create.
* url.el (url-retrieve): Update docstring for new callback interface.
Remove all code.
(url-retrieve-internal): Move code from url-retrieve here.
* url-gw.el (url-open-stream): Use a non-blocking socket for
`native' gateway method, if available.