aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix emacsclient/server behavior under --without-x.Chong Yidong2012-04-201-0/+1
| | | | | | | | | * 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-201-0/+5
|\
| * Move "emacsclient -t -n" handling from emacsclient.c to server.el.Chong Yidong2012-04-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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-151-1/+8
|\ \ \ | |/ /
| * | Assume less-ancient POSIX support.Paul Eggert2012-04-151-0/+7
| | | | | | | | | | | | | | | | | | * 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-131-1/+5
|\ \ \ | |/ /
| * | Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-131-0/+5
| |\ \ | | |/
| | * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Fix typo in ↵Juanma Barranquero2012-04-121-0/+5
| | | | | | | | | | | | | | | | | | 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-091-0/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-071-0/+1
| | | | | | | | lib-src/makefile.w32-in (ALL): Add $(BLD)/test-distrib.exe.
* | Fix parallel build and bootstrap on MS-Windows.Eli Zaretskii2012-04-071-0/+12
|/ | | | | | | | | | | | | | | | | 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-111-0/+2
| | | | | | | | | | * 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-111-0/+3
| | | | datagram.
* Don't access freed memory in emacsclientAndreas Schwab2012-03-111-0/+13
| | | | | | | | | | | | | * 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-051-1/+1
|
* Update short copyright year to 2012.Glenn Morris2012-01-041-0/+6
| | | | | | | | | | | | | | | | | | | | * 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.
* * etags.c (C_entries): Properly skip over string and characterAndreas Schwab2011-12-251-0/+5
| | | | 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-041-0/+8
| | | | | | | | | | | | | * 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.
* * emacsclient.c (main): Condition last change on WINDOWSNT (Bug#10155).Chong Yidong2011-11-301-0/+5
|
* Fix MS-Windows build with MSVC compiler.Eli Zaretskii2011-11-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-231-0/+4
| | | | * lisp/paths.el (rmail-file-name): Format doc-string for make-docfile.
* Spelling fixes.Paul Eggert2011-11-191-26/+26
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Fix typos.Juanma Barranquero2011-11-161-3/+3
|
* Fix typos.Juanma Barranquero2011-11-161-1/+1
|
* * lib-src/Makefile.in (all): Make sure "all" is the first target.Dan Nicolaescu2011-11-141-0/+4
|
* src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.Juanma Barranquero2011-10-271-0/+4
|
* * lib-src/etags.c (Fortran_functions): Handle "elemental" functions.Glenn Morris2011-09-071-0/+4
|
* * lib-src/etags.c (Fortran_functions): Handle "pure" functions. (tiny change)Dieter Schuster2011-09-071-0/+4
| | | | Fixes: debbugs:9359
* Merge from trunk.Paul Eggert2011-09-061-1/+1
|\
* \ Merge from trunk.Paul Eggert2011-09-041-1/+36
|\ \ | |/
| * sprintf-related integer and memory overflow issuesPaul Eggert2011-09-041-0/+35
| |\ | | | | | | | | | Fixes: debbugs:9397 debbugs:9412
| | * Add Bug#.Paul Eggert2011-08-281-1/+1
| | |
| | * * update-game-score.c: Include <limits.h>Paul Eggert2011-08-281-0/+3
| | | | | | | | | | | | (get_user_id): Do not assume uid fits in 'int'. Simplify.
| | * * movemail.c (main): Do not use sprintf when its result might not fitPaul Eggert2011-08-281-0/+4
| | | | | | | | | | | | | | | in 'int'. Instead, put the possibly-long file name into the output of pfatal_with_name.
| | * * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,Paul Eggert2011-08-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | to avoid potential buffer overflow issues on typical 64-bit hosts. (whatlen_max): New static var. (main): Avoid buffer overflow if subsidiary command length is greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its result might not fit in 'int'.
| | * Integer and memory overflow issues.Paul Eggert2011-08-281-0/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to avoid potential buffer overflow issues on typical 64-bit hosts. Return void *, not long *. (get_current_dir_name): Report a failure, instead of looping forever, if buffer size calculation overflows. Treat malloc failures like realloc failures, as that has better behavior and is more consistent. Do not check whether xmalloc returns NULL, as that's not possible. (message): Do not arbitrarily truncate message to 2048 bytes when sending it to stderr; use vfprintf instead. (get_server_config, set_local_socket) (start_daemon_and_retry_set_socket): Do not alloca arbitrarily-large buffers; that's not safe. (get_server_config, set_local_socket): Do not use sprintf when its result might not fit in 'int'. (set_local_socket): Do not assume uid fits in 'int'.
* | Merge from trunk.Paul Eggert2011-07-281-1/+14
|\ \ | |/
| * Merge: Integer signedness and overflow and related fixes.Paul Eggert2011-07-271-0/+13
| |\ | | | | | | | | | Fixes: debbugs:9079
| | * Merge from trunk.Paul Eggert2011-07-101-1/+5
| | |\ | | |/ | |/|
| | * Assume freestanding C89 headers, string.h, stdlib.h.Paul Eggert2011-07-061-0/+8
| | |