aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * etags.c (C_entries): Properly skip over string and characterAndreas Schwab2011-12-252-17/+24
| | | | constants inside brackets. (Bug#10357)
* Spelling fixes.Paul Eggert2011-12-111-1/+1
|
* Fix emacsclient bug where "-n -c" does not open a new frame on Windows.Juanma Barranquero2011-12-042-8/+24
| | | | | | | | | | | | | * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Don't force tty = 0; instead, treat both -c and -t as always requesting a new "tty" frame, and let server.el decide which kind is actually required. Reported by Uwe Siart <usenet@siart.de> in this thread: http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00303.html * lisp/server.el (server-delete-client): On Windows, do not try to delete the only terminal. (server-process-filter): On Windows, treat requests for a tty frame as if they were for a GUI frame if the running server is in GUI mode.
* Fix typo in comment.Chong Yidong2011-11-301-1/+1
|
* * emacsclient.c (main): Condition last change on WINDOWSNT (Bug#10155).Chong Yidong2011-11-302-0/+10
|
* Fix MS-Windows build with MSVC compiler.Eli Zaretskii2011-11-273-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Parts of the changes by Fabrice Popineau <fabrice.popineau@supelec.fr>. lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS). lib-src/emacsclient.c (main) <environ>: Remove declaration, already pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows. nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs. (UINT64_MAX) [_WIN64]: Fix definition. (uintmax_t, intmax_t): Fix definitions. nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide correct definitions. nt/config.nt (HAVE_DECL_STRTOLL): Define. (va_copy) [_WIN64]: Provide a better definition. src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define. (snprintf) [_MSC_VER]: Redirect to _snprintf. (strtoll) [_MSC_VER]: Redirect to _strtoi64. (malloc, free, realloc, calloc): Redirect to e_* only when compiling Emacs. src/lisp.h (GCTYPEBITS): Move before first use. (ALIGN_GCTYPEBITS) [_MSC_VER]: Define. (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in this macro definition. (tzname): Redirect to _tzname for all values of _MSC_VER. Fixes: debbugs:9960
* Spelling fixes.Paul Eggert2011-11-261-1/+1
|
* * lib-src/make-docfile.c (scan_lisp_file): Treat defcustom like defvar.Glenn Morris2011-11-232-1/+7
| | | | * lisp/paths.el (rmail-file-name): Format doc-string for make-docfile.
* Spelling fixes.Paul Eggert2011-11-192-32/+32
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Fix typos.Juanma Barranquero2011-11-162-5/+5
|