aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix typos.Juanma Barranquero2011-11-161-1/+1
|
* * lib-src/Makefile.in (all): Make sure "all" is the first target.Dan Nicolaescu2011-11-142-2/+6
|
* Spelling fixes.Paul Eggert2011-11-141-1/+1
|
* Spelling fixes.Paul Eggert2011-11-121-1/+1
|
* src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.Juanma Barranquero2011-10-272-2/+6
|
* Whitespace changes.Juanma Barranquero2011-09-095-63/+63
|
* * lib-src/etags.c (Fortran_functions): Handle "elemental" functions.Glenn Morris2011-09-072-0/+7
|
* * lib-src/etags.c (Fortran_functions): Handle "pure" functions. (tiny change)Dieter Schuster2011-09-072-0/+7
| | | | Fixes: debbugs:9359
* Merge from trunk.Paul Eggert2011-09-061-1/+1
|\
* \ Merge from trunk.Paul Eggert2011-09-045-62/+136
|\ \ | |/
| * sprintf-related integer and memory overflow issuesPaul Eggert2011-09-045-61/+135
| |\ | | | | | | | | | Fixes: debbugs:9397 debbugs:9412
| | * Add Bug#.Paul Eggert2011-08-281-1/+1
| | |
| | * * update-game-score.c: Include <limits.h>Paul Eggert2011-08-282-10/+8
| | | | | | | | | | | | (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-282-4/+7
| | | | | | | | | | | | | | | 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-282-10/+41
| | | | | | | | | | | | | | | | | | | | | | | | 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-282-37/+79
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-287-49/+17
|\ \ | |/
| * Merge: Integer signedness and overflow and related fixes.Paul Eggert2011-07-277-48/+16
| |\ | | | | | | | | | Fixes: debbugs:9079
| | * Merge from trunk.Paul Eggert2011-07-102-4/+7
| | |\ | | |/ | |/|
| | * Assume freestanding C89 headers, string.h, stdlib.h.Paul Eggert2011-07-067-39/+11
| | |
| | * Merge from trunk.Paul Eggert2011-07-061-1/+1
| | |\
| | * | [ChangeLog]Paul Eggert2011-07-042-9/+5
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assume support for memcmp, memcpy, memmove, memset. This simplifies the code a bit. All current platforms have these, as they are required for C89. If this turns into a problem we can add the gnulib modules for these (a 1-line change to Makefile.in). * configure.in: Don't check for memcmp, memcpy, memmove, memset. [lib-src/ChangeLog] Assume support for memcmp, memcpy, memmove, memset. * etags.c (absolute_filename): Assume memmove exists. [src/ChangeLog] Assume support for memcmp, memcpy, memmove, memset. * lisp.h, sysdep.c (memcmp, memcpy, memmove, memset): * regex.c (memcmp, memcpy): Remove; we assume C89 now. * gmalloc.c (memcpy, memset, memmove): Remove; we assume C89 now. (__malloc_safe_bcopy): Remove; no longer needed.
* | | Add Bug#.Paul Eggert2011-07-251-1/+1
| | |
* | | Merge from trunk.Paul Eggert2011-07-251-1/+1
|\ \ \ | |/ /
* | | Merge from gnulib, using build-aux to remove clutter.Paul Eggert2011-07-242-2/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/largefile.m4: New file, so that Emacs does not mess up when accessing files with large inode numbers in MacOS X 10.5 and later. * m4/nocrash.m4: New file, to avoid triggering background debugger and/or create core dumps during 'configure'. * build-aux/move-if-change: Renamed from move-if-change. * build-aux/snippet/arg-nonnull.h: Renamed from arg-nonnull.h. * build-aux/snippet/c++defs.h: Renamed from c++defs.h. * build-aux/snippet/warn-on-use.h: Renamed from warn-on-use.h. * build-aux/snippet/_Noreturn.h: New file, for draft C1X _Noreturn. * .bzrignore: The autogenerated files compile, config.guess, config.sub, depcomp, install-sh, and missing are now in build-aux. * Makefile.in (epaths-force, sync-from-gnulib): move-if-change is now in build-aux. (GNULIB_TOOL_FLAGS): Avoid threadlib; this is now a prerequisite of gnulib's pthread_sigmask module, but Emacs doesn't need it. (mkdir): install-sh is now in build-aux. * config.bat: c++defs.h is now in build-aux/snippets. * configure.in: Specify AC_CONFIG_AUX_DIR with build-aux (the usual parameter). * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. * lib/makefile.w32-in (ARG_NONNULL_H): arg-nonnull.h moved to build-aux/snippet. * lib/pthread_sigmask.c, lib/stdlib.in.h, m4/extensions.m4: * m4/getopt.m4, m4/gnulib-common.m4, m4/pthread_sigmask.m4: Merge from gnuilib. This fixes porting bugs on Cygwin, Irix, and Solaris, enables MacOS extensions, and enables nocrash during 'configure'. * make-dist: Adjust to new build-aux and build-aux/snippit dirs. * admin/notes/copyright: The files compile, config.guess, config.sub, depcomp, install-sh, missing, and move-if-change are now in the new build-aux subdirectory. The files arg-nonnull.h, c++defs.h, and warn-on-use.h are now in build-aux/snippets. New file build-aux/snippets/_Noreturn.h. * leim/Makefile.in (install): install-sh is now in build-aux. * lib-src/Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved to build-aux. * msdos/sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Adjust to snippet moves from top level to build-aux/snippet. * src/Makefile.in (gl-stamp): move-if-change is now in build-aux.
* | * lib-src/update-game-score.c (usage): Update usage line.Andreas Schwab2011-07-092-3/+6
|/
* * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode onJason Rumney2011-07-022-0/+13
| | | | | | Windows. Fixes: debbugs:5486
* * lib-src/emacsclient.c (print_help_and_exit): More fixing of previous.Glenn Morris2011-06-251-1/+1
|
* * lib-src/emacsclient.c (print_help_and_exit): Fix previous change.Glenn Morris2011-06-251-1/+2
|
* Minor additions for previous emacsclient change.Glenn Morris2011-06-252-2/+8
| | | | | * lib-src/emacsclient.c (decode_options) <opt>: Add `F:'. (print_help_and_exit): Mention --frame-parameters.