aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * make-docfile.c (search_lisp_doc_at_eol): Unget last readAndreas Schwab2012-06-082-1/+8
| | | | character.
* Remove script stamping in lib-src/Glenn Morris2012-06-052-17/+5
| | | | | | | | | | | | | rcs2log no longer needs it, and grep-changelog never really has (nothing in Emacs runs that, I don't know why Emacs includes it, if you are using an uninstalled out-of-tree build you can just as easily run it from the source directory). * lib-src/Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPTS, insrcdir) (stamp-rcs2log, stamp-grep-changelog): Remove. (all, clean): Remove references to stamps. * .bzrignore: Do not ignore lib-src/stamp*.
* Remove lib-src/vcdiffGlenn Morris2012-06-053-120/+8
| | | | | | | | | | * lib-src/vcdiff: Remove file. * lib-src/Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff. (stamp-vcdiff): Remove. * INSTALL, make-dist: Remove vcdiff. * lisp/emacs-lisp/authors.el (authors-fixed-entries): Remove vcdiff
* Remove some cruft from lib-src/makefile.w32-inGlenn Morris2012-06-052-20/+6
| | | | | | * lib-src/makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O)): ($(BLD)/make-path.$(O), $(BLD)/qsort.$(O)): ($(BLD)/timer.$(O)): Remove; unused.
* Remove lib-src/rcs-checkinGlenn Morris2012-06-033-122/+9
| | | | | | | | | | | | | | | | | | | This script isn't used by Emacs, and I can't imagine anyone else is using it any more either... From the commentary: "This script is intended to be used to convert files with an old-Emacs-style version history for use with VC (the Emacs 19 version-control interface), which likes to use RCS as its back end." * lib-src/rcs-checkin: Remove file. * lib-src/Makefile.in (INSTALLABLE_SCRIPTS, STAMP_INST_SCRIPTS): Remove rcs-checkin. (stamp-rcs-checkin): Remove. * INSTALL, make-dist: Remove rcs-checkin. * admin/quick-install-emacs (PUBLIC_LIBSRC_SCRIPTS): Remove rcs-checkin. * doc/man/rcs-checkin.1: Remove.
* Merge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.deChong Yidong2012-05-312-1/+7
|\
| * Fix bug #11405 with MSVC build of emacsclientw.Eli Zaretskii2012-05-292-1/+7
| | | | | | | | | | | | | | | | lib-src/makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS) instead of a literal -mwindows, which is not supported by MSVC. nt/nmake.defs (MWINDOWS): Define as "-subsystem:windows -entry:mainCRTStartup". Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>. nt/gmake.defs (MWINDOWS): Define as "-mwindows".
* | * lisp/emacs-lisp/byte-run.el (defmacro, defun): Move from C.Stefan Monnier2012-05-292-121/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (macro-declaration-function): Move var from C code. (macro-declaration-function): Define function with defalias. * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): * lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form): * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't handle defun/defmacro any more. * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-signature): Provide fallback for unknown arglist. (byte-compile-arglist-warn): Change calling convention. (byte-compile-output-file-form): Move print-vars binding. (byte-compile-output-docform): Simplify accordingly. (byte-compile-file-form-defun, byte-compile-file-form-defmacro) (byte-compile-defmacro-declaration): Remove. (byte-compile-file-form-defmumble): Generalize to defalias. (byte-compile-output-as-comment): Return byte-positions. Simplify callers accordingly. (byte-compile-lambda): Use `assert'. (byte-compile-defun, byte-compile-defmacro): Remove. (byte-compile-file-form-defalias): Use byte-compile-file-form-defmumble. (byte-compile-defalias-warn): Remove. * src/eval.c (Fdefun, Fdefmacro, Vmacro_declaration_function): Move to byte-run.el. (Fautoload): Do the hash-doc more carefully. * src/data.c (Fdefalias): Purify definition, except for keymaps. (Qdefun): Move from eval.c. * src/lisp.h (Qdefun): Remove. * src/lread.c (read1): Tiny simplification. * lib-src/make-docfile.c: Improve comment style. (search_lisp_doc_at_eol): New function. (scan_lisp_file): Use it.
* | * lib-src/Makefile.in (INSTALL_DATA): Remove; unused.Glenn Morris2012-05-262-1/+4
| |
* | Remove src/m/*.Paul Eggert2012-05-222-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Remove all mention of src/m/*. (machine, machfile, M_FILE, config_machfile, and_machfile): Remove. All uses removed. (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG) (BITS_PER_LONG_LONG): Move to src/lisp.h. * lib/makefile.w32-in: Remove dependencies on $(EMACS_ROOT)/src/m/intel386.h. * make-dist: Don't make links to src/m. * admin/CPP-DEFINES: Do not mention src/m/*.h. (BITS_PER_EMACS_INT, BITS_PER_LONG, BITS_PER_CHAR) (BITS_PER_SHORT, BITS_PER_INT): Remove. * admin/MAINTAINERS: Remove src/m/. * lib-src/makefile.w32-in: Remove dependencies on $(EMACS_ROOT)/src/m/intel386.h. * msdos/mainmake.v2 (TAGS tags): Don't look at $(CURDIR)/src/m/intel386.h. * nt/config.nt: Do not include "m/intel386.h"; file was removed. (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG): Move to src/lisp.h. (EMACS_INT_MAX): New macro. This directory predates autoconf and is no longer needed nowadays. Move its few remaining bits of functionality to where they're needed. * src/m/README, src/m/alpha.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibmrs6000.h: * src/m/ibms390x.h, src/m/intel386.h, src/m/m68k.h, src/m/macppc.h: * src/m/sparc.h, src/m/template.h: Remove. * src/Makefile.in (M_FILE): Remove. All uses removed. * src/alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): * src/lisp.h (USE_LSB_TAG): * src/mem-limits.h (EXCEEDS_LISP_PTR): Use VAL_MAX, not VALBITS, in #if. * src/lisp.h (EMACS_INT_MAX): New macro, useful in #if. (EMACS_UINT): Define unconditionally now. (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG) (BITS_PER_EMACS_INT): New constants, replacing what used to be in config.h, but not useful in #if. (GCTYPEBITS, VALBITS): Define unconditionally, since m/* files don't define them any more. (VAL_MAX): New macro. (VALMASK): Use it. * src/puresize.h (PURESIZE_RATIO): Use EMACS_INT_MAX, not BITS_PER_EMACS_INT, in #if. * src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) (BROKEN_SIGPOLL): Move here from m/ibmrs6000.h, which was removed. * src/s/gnu-linux.h (ULIMIT_BREAK_VALUE) [__i386__]: * src/s/ms-w32.h (DATA_START): Move here from removed file m/intel386.h. * src/s/gnu.h (NLIST_STRUCT): Remove undef; 'configure' does this. * src/s/irix6-5.h (_LP64): Remove; lisp.h no longer needs this.
* | * lib-src/Makefile.in (install): Remove unneeded chmods.Glenn Morris2012-05-212-2/+4
| | | | | | | | INSTALL_PROGRAM and INSTALL_SCRIPT default to mode 755.
* | Assume C89 or later.Paul Eggert2012-05-212-22/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (AC_C_PROTOTYPES, AC_C_VOLATILE, AC_C_CONST) (POINTER_TYPE, PROTOTYPES): Remove. * admin/CPP-DEFINES: Remove NULL, const. * lib-src/etags.c (static, const): Remove macros. (PTR): Remove; all uses replaced with void *. Omit needless casts. * src/alloc.c, src/buffer.c, lisp.h: Replace POINTER_TYPE with void. * alloc.c (overrun_check_malloc, overrun_check_realloc, xmalloc) (xrealloc): * buffer.c (mmap_free_1, mmap_enlarge): Omit needless casts. * editfns.c, fns.c, gmalloc.c, insdel.c, sysdep.c, termcap.c (NULL): * textprop.c, tparam.c (NULL): Remove. * ralloc.c, vm-limit.c (POINTER): Assume void * works. * regex.c (SIGN_EXTEND_CHAR): Assume signed char works. * regex.h (_RE_ARGS): Remove. All uses rewritten to use prototypes. * unexelf.c (ElfBitsW): Assume c89 preprocessor or better. * xterm.c (input_signal_count): Assume volatile works.
* | Command substitution already runs in a subshellGlenn Morris2012-05-202-4/+9
| | | | | | | | | | | | | | | | | | * Makefile.in (install-arch-indep, install-doc, install-info, uninstall): * leim/Makefile.in (leim-list.el, install): * lib-src/Makefile.in (insrcdir, $(DESTDIR)${archlibdir}): * lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs): * test/automated/Makefile.in (setwins): Scrap superfluous subshells.
* | * lib-src/Makefile.in (install): Ensure $bindir exists.Glenn Morris2012-05-172-0/+5
| |
* | Install a self-contained NS build's libexec directly into the right placeGlenn Morris2012-05-162-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | This is rather than installing it in one place then moving it. * configure.in (archlibdir): Set it for self-contained ns builds. (libexecdir): Don't expand it now (this is mainly cosmetic). * Makefile.in (ns_appbindir, ns_appresdir): Move them before things that may refer to them. (install-arch-dep): No need to relocate self-contained ns libexec. * lib-src/Makefile.in (ns_appbindir): New, set by configure.
* | Don't use build-aux/install-sh -d directlyGlenn Morris2012-05-112-2/+8
| | | | | | | | | | | | | | | | * leim/Makefile.in (MKDIR_P): New, set by configure. (install): Use $MKDIR_P. * lib-src/Makefile.in (MKDIR_P): New, set by configure. ($(DESTDIR)${archlibdir}): Use $MKDIR_P.
* | etags: pacify gcc -Wstack-protector on Ubuntu 12.04 x86Paul Eggert2012-05-092-20/+27
| | | | | | | | | | | | | | * etags.c: Include <stdarg.h>. (error): Declare as printf-style, as that's what it really is. All uses changed. (add_regex): Use single char rather than array-of-one char.
* | Merge from emacs-24; up to 2012-04-20T05:47:55Z!eliz@gnu.orgChong Yidong2012-05-052-1/+12
|\ \ | |/
| * Backport 2012-05-02T11:33:49Z!lekktu@gmail.com from trunkChong Yidong2012-05-022-0/+7
| |
| * Backport Bug#11374 fix from trunkChong Yidong2012-05-022-19/+26
| |
| * Add NUL-termination to some uses of strncpy.Jim Meyering2012-05-022-1/+12
| | | | | | | | | | | | | | * lib-src/pop.c (pop_stat, pop_list, pop_multi_first, pop_last): NUL-terminate the error buffer. * src/w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372).
* | Fix ChangeLog typos.Juanma Barranquero2012-05-021-1/+1
| |
* | lib-src/emacsclient.c (min): Undef before redefining it.Juanma Barranquero2012-05-022-0/+7
| |
* | * lib-src/emacsclient.c (send_to_emacs): Avoid invalid strcpyJim Meyering2012-05-022-18/+27
| | | | | | | | | | | | upon partial send. Fixes: debbugs:11374
* | Fixes: debbugs:11380Andreas Schwab2012-04-292-1/+6
| | | | | | | | | | * make-docfile.c (scan_lisp_file) [DEBUG]: Also skip if and byte-code forms.
* | Fix emacsclient/server behavior under --without-x.Chong Yidong2012-04-202-4/+5
| | | | | | | | | | | | | | | | | | * lib-src/emacsclient.c (main): Send -tty to Emacs under more circumstanced (Bug#8314). * lisp/server.el (server-process-filter): Only try to open a window system frame if compiled with graphical support (Bug#8314). Fixes: debbugs:11102
* | Merge from emacs-24 branchChong Yidong2012-04-202-21/+17
|\ \ | |/
| * Move "emacsclient -t -n" handling from emacsclient.c to server.el.Chong Yidong2012-04-152-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | Fix its buggy logic for the Windows case (regression from 23.4). * lib-src/emacsclient.c (decode_options): Move -t -n corner case handling into server.el. * lisp/server.el (server-process-filter): Handle corner case where both tty and nowait options are present. Fixes: debbugs:11102
* | Merge from trunk.Paul Eggert2012-04-181-1/+1
|\ \
* | | Fix ChangeLog typo.Paul Eggert2012-04-171-0/+1
| | |
* | | Merge from trunk.Paul Eggert2012-04-171-1/+1
|\ \ \ | |/ /
* | | Merge from trunk.Paul Eggert2012-04-152-5/+9
|\ \ \ | |/ /
| * | Assume less-ancient POSIX support.Paul Eggert2012-04-152-4/+8
| | | | | | | | | | | | | | | | | | * update-game-score.c: Include <getopt.h> rather than rolling our own decls for optarg, optind, opterr. See <http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html>.
* | | Merge from trunk.Paul Eggert2012-04-151-3/+3
|\ \ \ | |/ /
| * | Fix ChangeLog typos.Juanma Barranquero2012-04-151-3/+3
| | |
* | | Merge from trunk.Paul Eggert2012-04-132-2/+6
|\ \ \ | |/ /
| * | Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-132-1/+6
| |\ \ | | |/
| | * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Fix typo in ↵Juanma Barranquero2012-04-122-1/+6
| | | | | | | | | | | | | | | | | | 2011-12-04T17:13:01Z!lekktu@gmail.com. Call ttyname instead of passing its address.
* | | Merge from trunk; add Bug#.Paul Eggert2012-04-091-1/+1
|\ \ \ | |/ /
* | | configure: new option --enable-gcc-warningsPaul Eggert2012-04-092-2/+11
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have been using this change for many months in my private copy of Emacs, and have used it to find several bugs. It's mature enough to publish now. * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings. * configure.in: Support --enable-gcc-warnings, in the style of other GNU packages such as coreutils. (C_WARNINGS_SWITCH): Remove, replacing with... (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable. (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I, when including system files with GCC. * etc/NEWS: Mention --enable-gcc-warnings. * lib/Makefile.am (AM_CFLAGS): New macro. * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib. * lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (BASE_CFLAGS): Use new macros rather than old. * lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * src/Makefile.in (C_WARNINGS_SWITCH): Remove. (WARN_CFLAGS, WERROR_CFLAGS): New macros. (ALL_CFLAGS): Use new macros rather than old. * src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904. * src/regex.c: Ignore -Wstrict-overflow. If !emacs, also ignore -Wunused-but-set-variable, -Wunused-function, -Wunused-macros, -Wunused-result, -Wunused-variable. This should go away once the Emacs and Gnulib regex code is merged. (xmalloc, xrealloc): Now static.
* | Support building on MS-Windows with libxml2.Eli Zaretskii2012-04-072-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/makefile.w32-in (OBJ2): Add xml.$(O). (GLOBAL_SOURCES): Add xml.c. ($(BLD)/xml.$(O)): New dependency list. src/xml.c (DEF_XML2_FN, LOAD_XML2_FN) [WINDOWSNT]: New macros. (fn_htmlReadMemory, fn_xmlReadMemory, fn_xmlDocGetRootElement) (fn_xmlFreeDoc, fn_xmlCleanupParser, fn_xmlCheckVersion) [!WINDOWSNT]: New macros. (init_libxml2_functions, libxml2_loaded_p): New functions. (parse_region): Call fn_xmlCheckVersion instead of using the macro LIBXML_TEST_VERSION. Call libxml2 functions via the fn_* macros. (xml_cleanup_parser): New function, export for fn_xmlCleanupParser. Calls xmlCleanupParser only if libxml2 was loaded (or statically linked in). (Flibxml_parse_html_region, Flibxml_parse_xml_region): Call init_libxml2_functions before calling libxml2 functions. (syms_of_xml) <Qlibxml2_dll>: DEFSYM it. src/emacs.c: Don't include libxml/parser.h. (shut_down_emacs): Call xml_cleanup_parser, instead of calling xmlCleanupParser directly. src/ lisp.h [HAVE_LIBXML2]: Add prototype for xml_cleanup_parser. nt/configure.bat: Support building with libxml2. nt/INSTALL: nt/README.W32: Add information about libxml2. lisp/term/w32-win.el (dynamic-library-alist): Add libxml2 DLLs. lib-src/makefile.w32-in (obj): Add xml.o.
* | Build test-distrib on MS-Windows and run it during the build.Eli Zaretskii2012-04-072-2/+3
| | | | | | | | lib-src/makefile.w32-in (ALL): Add $(BLD)/test-distrib.exe.
* | Fix parallel build and bootstrap on MS-Windows.Eli Zaretskii2012-04-072-14/+21
|/ | | | | | | | | | | | | | | | | nt/makefile.w32-in: (all): Don't depend on stamp_BLD and on maybe-bootstrap. (all-other-dirs-$(MAKETYPE)): Depend on maybe-bootstrap. (bootstrap-gmake): Invoke the "clean" and build targets in 2 separate commands, so they run in that order even under "make -j". lib/makefile.w32-in (gnulib, all): Don't depend on stamp_BLD. lib-src/makefile.w32-in (ALL): Now the list of executables, not of phony targets. (.PHONY): Only make-docfile is its prerequisite now. (make-docfile): Don't depend on stamp_BLD. Add a comment about the need in this target. (ctags, etags, ebrowse, hexl, movemail, emacsclient) (test-distrib): Phony targets removed. ($(BLD)/test-distrib.exe): Run test-distrib as part of the recipe. (all): Don't depend on stamp_BLD.
* Define -print-nonl client commandAndreas Schwab2012-03-112-0/+10
| | | | | | | | | | * lib-src/emacsclient.c (main): Handle -print-nonl command. * lisp/server.el (server-msg-size): New constant. (server-reply-print): New function. (server-eval-and-print): Use it. (server-eval-at): Use server-quote-arg and server-unquote-arg. Handle -print-nonl.
* * emacsclient.c (main): Handle multiple messages in a singleAndreas Schwab2012-03-112-53/+59
| | | | datagram.
* Don't access freed memory in emacsclientAndreas Schwab2012-03-112-68/+59
| | | | | | | | | | | | | * emacsclient.c (socket_name): Add const. (get_server_config): Add parameter config_file, use it instead of global server_file. (set_tcp_socket): Add parameter local_server_file, pass it down to get_server_config. (set_local_socket): Add parameter local_socket_name, use it instead of global socket_name. (set_socket): Adjust calls to set_local_socket and set_tcp_socket. Don't clobber global server_file or socket_name. (main): No longer reset server_file or socket_name.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-0520-20/+20
|
* Update short copyright year to 2012.Glenn Morris2012-01-044-3/+9
| | | | | | | | | | | | | | | | | | | | * etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex: * etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex: * etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex: * etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex: * etc/refcards/fr-survival.tex, etc/refcards/orgcard.tex: * etc/refcards/pl-refcard.tex, etc/refcards/pt-br-refcard.tex: * etc/refcards/refcard.tex, etc/refcards/ru-refcard.tex: * etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex: * etc/refcards/sk-survival.tex, etc/refcards/survival.tex: * etc/refcards/vipcard.tex, etc/refcards/viperCard.tex: * lib-src/ebrowse.c (version) <emacs_copyright>: * lib-src/etags.c (print_version) <emacs_copyright>: * lib-src/rcs2log (Copyright): Update short copyright year to 2012. * nextstep/Cocoa/Emacs.base/Contents/Info.plist: * nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings: * nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist: * src/emacs.c (emacs_copyright): Update short copyright year to 2012.
* Spelling fixes.Paul Eggert2011-12-301-1/+1
|
* Spelling fixes.Paul Eggert2011-12-291-1/+1
|