Commit graph

1317 commits

Author SHA1 Message Date
Juanma Barranquero
43983eb155 When called with no arguments (not even a filter), show help instead of
blindingly dumping every single ChangeLog available.  Doc fix.  Update version.
2006-11-02 11:52:15 +00:00
Juanma Barranquero
1e7823d061 [WINDOWSNT]: Define HAVE_INET_SOCKETS.
[!WINDOWSNT]: Include <netinet/in.h> if available.
[HAVE_SOCKETS]: Also require HAVE_INET_SOCKETS.
(IOCTL, IOCTL_BOOL_ARG): Remove.
(set_tcp_socket): Don't set the socket in blocking mode.  Remove c_arg.
2006-11-02 09:55:33 +00:00
Juanma Barranquero
ebc20ca09c *** empty log message *** 2006-11-01 20:25:51 +00:00
Juanma Barranquero
b73ea44bb7 [WINDOWSNT]: Force the first argv passed to execvp to point to alternate_editor
(otherwise .BAT scripts can't run).
2006-11-01 19:26:14 +00:00
Juanma Barranquero
411b80a566 [WINDOWSNT]: Include <malloc.h> and <stdlib.h>.
(close_winsock): Declare as __cdecl.
2006-10-31 16:40:11 +00:00
Juanma Barranquero
95d0feaa4a [!WINDOWSNT]: Include <fcntl.h> if available.
(set_tcp_socket): Prefer O_NONBLOCK, then O_NDELAY, then FIONBIO to set the
socket in non-blocking mode.
2006-10-31 13:52:32 +00:00
Kim F. Storm
d4fa60c883 *** empty log message *** 2006-10-31 11:07:10 +00:00
Juanma Barranquero
e35fc9628c 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].
2006-10-31 09:08:24 +00:00
Juanma Barranquero
ecc5405763 *** empty log message *** 2006-10-31 01:08:02 +00:00
Juanma Barranquero
aa0b693297 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.
2006-10-31 00:21:19 +00:00
Juanma Barranquero
d20f2a6a3d (ALL): Add emacsclient.
(ECLIENT_CFLAGS, ECLIENTOBJS): New macros.
(emacsclient, $(BLD)/emacsclient.exe): New targets.
(install): Install emacsclient.
2006-10-31 00:19:38 +00:00
Andreas Schwab
9984b9d5d9 Typo. 2006-10-11 09:49:15 +00:00
Eli Zaretskii
70846e2ad8 (../src/config.h): Fix error message. 2006-10-09 19:58:14 +00:00
Eli Zaretskii
e2247cd00d *** empty log message *** 2006-09-30 10:03:11 +00:00
Eli Zaretskii
814a1e04f2 Add blessmail. 2006-09-30 09:22:41 +00:00
Jay Belanger
45a2056c56 *** empty log message *** 2006-09-15 17:47:12 +00:00
Jay Belanger
f7e4411110 Replace "Library Public License" by "Lesser Public License" throughout. 2006-09-15 17:19:05 +00:00
Jan Djärv
ae587d1d0c Fix previous change. 2006-08-09 06:56:38 +00:00
Jan Djärv
ea90c5d3bd (readline): Change position on %n and \" in sscanf. 2006-08-09 06:56:16 +00:00
Jan Djärv
1f4edc37b8 * etags.c (readline): expect sscanf returns >= 1. 2006-08-09 06:22:27 +00:00
Jan Djärv
1520a816ef * etags.c (readline): expect sscanf returns 2,
not 1.
2006-08-08 09:34:56 +00:00
Jan Djärv
867cc23e44 * etags.c (TEX_mode): Check getc retruns EOF.
File ended without newline causes infinite loop.
2006-08-08 09:33:10 +00:00
Francesco Potortì
35a4c758b3 Adrian Aichner: <adrian@xemacs.org>
It's XEmacs, not Xemacs: change all the occurences.

[ETAGS_REGEXPS]: Now is unconditionally defined.
[LONG_OPTIONS]: Changed to NO_LONG_OPTIONS, which is undefined.
(Objc_suffixes): Suggest using --lang=c for full help.
(C_entries): Initialise savetoken to 0 to shut up the compiler.
2006-07-30 09:43:47 +00:00
Francesco Potortì
fc185ae6a7 *** empty log message *** 2006-07-30 09:41:41 +00:00
Andreas Schwab
116e754b8c . 2006-07-20 13:33:59 +00:00
Andreas Schwab
5a84ed337a (fatal): Drop second parameter and treat first
parameter as a plain string.  Callers changed.
2006-07-20 13:33:48 +00:00
Dan Nicolaescu
2381d38d0a * ebrowse.c (usage, version): Mark as NO_RETURN.
* emacsclient.c (print_help_and_exit): Likewise.

* xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.

* textprop.c (text_read_only): Likewise.

* lread.c (end_of_file_error): Likewise.

* lisp.h (circular_list_error, memory_full, buffer_memory_full):
Likewise.

* eval.c (unwind_to_catch): Likewise.

* buffer.h (buffer_slot_type_mismatch): Likewise.
2006-07-18 16:33:45 +00:00
Francesco Potortì
327891ebb9 (absolute_filename): Free unused space (cosmetic change).
(in_word_set): In C, also tag #undef symbols.
2006-07-11 11:01:27 +00:00
Eli Zaretskii
7cb93181b8 *** empty log message *** 2006-06-09 18:23:06 +00:00
Eli Zaretskii
302a986ba5 Remove unused file. 2006-06-09 17:56:20 +00:00
Eli Zaretskii
79b251d75c ($(BLD)/yow.$(O)): Remove target. 2006-06-09 17:55:10 +00:00
Eli Zaretskii
8c09ed8296 (UTILITIES): Remove yow${EXEEXT}.
yow${EXEEXT}: Remove target.
2006-06-09 17:53:58 +00:00
Romain Francoise
63fbb6441f Formatting fixes. 2006-06-05 11:56:03 +00:00
Masatake YAMATO
0f29c66d25 (main): Exit with EXIT_FAILURE if BROWSE file doesn't exist, is not seekable, not is failed in ftall. 2006-06-03 17:49:36 +00:00
Eli Zaretskii
9781fb53c8 (ALL): Add sorted-doc and digest-doc.
($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe)
($(BLD)/test-distrib.exe): New targets.
(sorted-doc, digest-doc, test-distrib): New targets.
(install): Install sorted-doc.exe and digest-doc.exe.
($(BLD)/sorted-doc.$(O)): Update dependencies.
2006-06-03 15:30:02 +00:00
Eli Zaretskii
1b178b9902 [DOS_NT] <top level>: Include fcntl.h and io.h.
(main) [DOS_NT]: Switch stdin to binary mode, if it is not a terminal device.
2006-06-03 15:05:05 +00:00
Eli Zaretskii
37c49f02a0 (main): Initialize bp, to avoid compiler warnings 2006-06-03 14:58:50 +00:00
Eli Zaretskii
ae85efdbd5 *** empty log message *** 2006-06-03 14:51:44 +00:00
Eli Zaretskii
e75dcee327 [DOS_NT] <top level>: Include fcntl.h and io.h.
[WINDOWSNT] <top level>: Don't redeclare malloc.
(main) [DOS_NT]: Switch stdin to binary mode, if it is not a terminal device.
2006-06-03 14:51:25 +00:00
Eli Zaretskii
a941b26bc2 *** empty log message *** 2006-06-03 12:12:34 +00:00
Eli Zaretskii
1f4fd92caf Delete traces of leditcfns.c. 2006-06-03 12:12:13 +00:00
Eli Zaretskii
04a1dad085 Remove the file. 2006-06-03 12:10:37 +00:00
Francesco Potortì
81264b3846 (pop_open, socket_connection, KPOP_SERVICE): Added
comments explaining why the "kpop" service is never used.
2006-05-23 10:44:39 +00:00
Francesco Potortì
8a6d5da7cc *** empty log message *** 2006-05-23 10:43:33 +00:00
Eli Zaretskii
642c61f303 *** empty log message *** 2006-05-13 10:52:41 +00:00
Eli Zaretskii
d9d2ac69a0 (lisp1): Add fringe.elc. 2006-05-13 10:19:36 +00:00
Francesco Potortì
7e237d2403 (Perl_functions): Free space allocated for var package.
(Erlang_functions): Possibly free space allocated for var last.
(Prolog_functions): Possibly free space allocated for var last.
2006-05-02 10:15:29 +00:00
Dan Nicolaescu
7fe8b491e1 (main): Initialize docs to NULL. 2006-04-29 22:15:04 +00:00
Dan Nicolaescu
cdeda57951 (yow): Free buf. 2006-04-29 21:36:04 +00:00
Dan Nicolaescu
7c47913be1 Delete c-indentation-style local variable. 2006-04-29 20:15:48 +00:00
Richard M. Stallman
5e5b35c7ec (main): Check for negative value from `read'. 2006-04-29 18:55:19 +00:00
Richard M. Stallman
2ef88a94ea (read_header): Give fatal error if input has no header. 2006-04-29 18:52:23 +00:00
Paul Eggert
d65b42351f * lib-src/b2m.c (main): Don't include <limits.h>.
(TM_YEAR_BASE): New macro.
(TM_YEAR_IN_ASCTIME_RANGE): Don't define if already defined, so
that s/ files can override this.  Use the more-conservative range
1000-9999.
(main): Check for asctime returning NULL.
* lib-src/fakemail.c: Likewise.
* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
../lib-src/b2m.c and ../lib-src/editfns.c.
(Fcurrent_time_string): Use it.
Document that the year might not consume 4 columns if it's outside
the range 1000-9999.
Check for asctime failure.
Don't assume that the output string length is always exactly 24.
2006-04-04 04:13:02 +00:00
Ramprasad B
fe8d0237f1 changed Emacs' to GNU Emacs' 2006-03-31 07:25:44 +00:00
Paul Eggert
f55658040d * b2m.c: Include <limits.h>.
(TM_YEAR_IN_ASCTIME_RANGE): New macro.
(main): Check for out-of-range time stamps.
* fakemail.c: Likewise.
2006-03-27 20:40:05 +00:00
André Spiegel
90c9c343b6 # 2006-03-18 15:05:35 +00:00
André Spiegel
09b7af0a1c Use "echo" as a default for $echo, otherwise we'll execute $DIFF
twice, and once with the wrong options.
2006-03-18 14:47:20 +00:00
Eli Zaretskii
9e2bcc8631 Fix last entry. 2006-03-03 12:07:45 +00:00
Eli Zaretskii
a6a2b5d482 *** empty log message *** 2006-03-03 12:05:39 +00:00
Eli Zaretskii
81af906074 Add DESTDIR variable to install and uninstall targets to support staged
installations.
2006-03-03 12:02:31 +00:00
Thien-Thi Nguyen
273dc16aaf Update years in copyright notice; nfc. 2006-02-06 11:28:28 +00:00
Eli Zaretskii
fc8dc7cf56 *** empty log message *** 2005-12-30 14:04:37 +00:00
Eli Zaretskii
4c27dbc426 (lisp1): Add image.elc, international/fontset.elc, dnd.elc, mwheel.elc,
and tool-bar.elc.
2005-12-30 14:03:46 +00:00
Eli Zaretskii
ef3f69f901 *** empty log message *** 2005-12-30 13:21:04 +00:00
Eli Zaretskii
98d926f208 (MOUSE_SUPPORT): Add tooltip.elc.
(lisp1): Add rfn-eshadow.elc, international/utf-16.elc.  Rearrange
the list to be similar to $(shortlisp) in src/Makefile.in.
(lisp2): Add language/kannada.el, emacs-lisp/syntax.elc,
emacs-lisp/timer.elc, jka-cmpr-hook.elc, font-lock.elc, jit-lock.elc.
Rearrange the list to be similar to $(shortlisp) in src/Makefile.in.
2005-12-30 13:02:42 +00:00
Richard M. Stallman
30cfcf7fb0 (update-game-score.o): Delete spurious final `\'. 2005-12-22 16:18:46 +00:00
Francesco Potortì
2e0bea68fa Cxref mode writes to stdout: do not close tagf,
which has never been opened.

Specify in the --help that vgrind writes to stdout.
2005-11-18 13:57:25 +00:00
Eli Zaretskii
283879ef54 Fix date of last entry. 2005-10-20 13:17:59 +00:00
Eli Zaretskii
ce0ae3a948 Undef STDIN if defined. (LynxOS defines it in system header files.) 2005-10-20 13:13:42 +00:00
Francesco Potortì
b950971271 (main): In append mode, sort the tags file after writing it. 2005-09-27 20:18:49 +00:00
Francesco Potortì
55102b5d31 Preliminary Forth support.
(prolog_pr): Cast strlen to int before comparison.
(LOOKING_AT, LOOKING_AT_NOCASE): Let the preprocessor check that
the second argument is indeed a literal string.
(longopts, print_help, main): The -a (--append) option
can be used in ctags also; for one, the Linux make file uses it.
2005-09-27 13:26:54 +00:00
Eli Zaretskii
f9ac21e7fb Add makefile (for MS-Windows). 2005-09-24 10:27:46 +00:00
Chong Yidong
41ea4df8c3 (add_sym): Compare namespace names instead of namespace objects. This
prevents the parser from incorrectly treating classes whose superclass
is in another namespace.
2005-09-20 13:19:29 +00:00
Richard M. Stallman
5c4757d329 *** empty log message *** 2005-09-15 13:17:55 +00:00
Richard M. Stallman
f85d3f3fd8 (update-game-score.o): New target.
Compile and link this progranm separately.
(update-game-score${EXEEXT}): Use GETOPTDEPTS.
2005-09-15 13:08:01 +00:00
Jason Rumney
df1b21421b (../src/config.h): Don't overwrite. Print a message instead.
(../src/paths.h): Removed.
2005-09-11 22:29:23 +00:00
Thien-Thi Nguyen
92b47a4a99 Update years in copyright notice; nfc. 2005-08-07 10:56:27 +00:00
Juanma Barranquero
c638055f54 *** empty log message *** 2005-07-28 08:29:54 +00:00
Juanma Barranquero
9927b6c84c Don't ignore fns-* and fns.el, which are no longer generated. Ignore also
ctags.c and getopt.h.
2005-07-28 07:59:33 +00:00
Juanma Barranquero
d238808abd (clean): Delete getopt.h.
(getopt.h): New rule.
2005-07-28 07:58:52 +00:00
Miles Bader
d7b7f3c485 Add arch tagline 2005-07-27 01:31:21 +00:00
Paul Eggert
0488749139 Merge gnulib getopt implementation into Emacs. 2005-07-26 21:46:50 +00:00
Paul Eggert
9eff9fe3e8 Merge gnulib getopt implementation into Emacs.
* Makefile.in (AUTOCONF_INPUTS): New macro.
($(srcdir)/configure, $(srcdir)/src/stamp-h.in): Depend on it,
so that these files also depend on m4/getopt.m4.
* configure.in: Configure getopt by including m4/getopt.m4,
and configuring a getopt replacement if necessary.
* make-dist: Add m4 subdirectory.  Unlink lib-src/getopt.h.
* m4/getopt.m4: New file.

* lib-src/Makefile.in (mostlyclean): Remove getopt.h, getopt.h-t.
(GETOPT_H): New macro, from gnulib.
(getopt.h): New rule, from gnulib.
(GETOPTOBJS): Now autoconfigured.
(GETOPTDEPS): getopt.h is now autoconfigured.
(getopt.o, getopt1.o): Depend on $(GETOPT_H), not ${srcdir}/getopt.h.
(getopt.o): Depend on ${srcdir}/gettext.h.
(movemail.o): Depend on $(GETOPT_H).
* lib-src/getopt.c, lib-src/getopt1.c: Sync from gnulib.
* lib-src/getopt_.h, lib-src/getopt_int.h, lib-src/gettext.h:
New files, from gnulib.
* lib-src/getopt.h: Removed (now is getopt_.h).

* nt/inc/gettext.h: Remove; no longer needed now that
lib-src/gettext.h exists.

* src/s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
now part of lib-src.
2005-07-26 21:43:13 +00:00
Ken Raeburn
ec641d5056 Don't include des.h (or variants thereof); krb.h will do it.
(sendline): Add the \r\n to the line in a temporary buffer, and write it all at
once.
2005-07-13 21:47:54 +00:00
Lute Kamstra
a0ec7a4a17 *** empty log message *** 2005-07-05 12:22:32 +00:00
Lute Kamstra
364c38d3af Update FSF's address. 2005-07-04 15:47:28 +00:00
Lute Kamstra
83c4f946f7 Update FSF's address. 2005-07-02 15:46:32 +00:00
Eli Zaretskii
0e0dddda54 *** empty log message *** 2005-06-13 12:19:38 +00:00
Eli Zaretskii
cb6ccbc94b ($(DOC)): Fix last change. 2005-06-13 11:24:32 +00:00
Eli Zaretskii
5a77c8e23c ($(DOC)): Depend on make-docfile.exe, temacs.exe,
and the preloaded *.elc files.  This avoids unnecessary
dumping and DOC rebuilding.
2005-06-12 17:45:10 +00:00
Eli Zaretskii
1a8fb4262f *** empty log message *** 2005-06-04 20:40:00 +00:00
Eli Zaretskii
23bf9efbaa (fileno): Don't define if already defined. 2005-06-04 20:10:49 +00:00
Thien-Thi Nguyen
7235a58f70 (setup_yow): Use EXIT_FAILURE in case no separators found.
(yow): Use EXIT_FAILURE in case of memory error.
2005-05-25 14:17:42 +00:00
YAMAMOTO Mitsuharu
5063dbbf5a *** empty log message *** 2005-05-13 08:55:33 +00:00
YAMAMOTO Mitsuharu
ef7c480ddf (DIRECTORY_SEP): New macro.
(IS_DIRECTORY_SEP): Use it.
2005-05-13 08:53:17 +00:00
Jan Djärv
5b9562c3df * emacsclient.c: Avoid expansion of getcwd when defined as a macro. 2005-03-18 20:44:50 +00:00
YAMAMOTO Mitsuharu
ba025f6dd1 *** empty log message *** 2005-03-04 11:16:35 +00:00
YAMAMOTO Mitsuharu
1376ed1867 Undo previous change. 2005-03-04 11:14:03 +00:00
Andreas Schwab
a9eedf40f4 (fatal): Accept third parameter and pass down to
error.
(pfatal_with_name): Pass error string as format parameter instead
of as part of format string.
(pfatal_and_delete): Likewise.
(main): Adjust call to fatal.
(xmalloc): Likewise.
2005-02-04 22:11:43 +00:00
Richard M. Stallman
5a92a9eb78 *** empty log message *** 2005-01-29 17:31:43 +00:00