aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ChangeLog fixesGlenn Morris2013-04-031-4/+0
| | | | | | 2013-03-16 was not the date Emacs 24.3 was released, it was not even the date on which I merged all changes from that release into trunk. Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00990.html
* Spelling fixes.Paul Eggert2013-04-011-1/+1
|
* Fix more incompatibilities between MinGW.org and MinGW64 headersEli Zaretskii2013-03-262-0/+10
| | | | | | | | | | | | | | | | | | | | | | | Reported by ׃scar Fuentes in http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00699.html and in http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00707.html. nt/inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS) [_W64]: Define to 1. For MinGW64, include sys/types.h and time.h. nt/inc/sys/time.h (struct timeval) [!_W64]: Guard definition with _W64. (struct timezone) [!_TIMEZONE_DEFINED]: Guard definition with _TIMEZONE_DEFINED. nt/addpm.c (_WIN32_IE) [_W64]: For MinGW64, don't define to 0x400. nt/inc/sys/stat.h: Remove _CRTIMP from prototypes of fstat, stat, lstat, and fstatat. lib-src/ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the struct only if _TIMEZONE_DEFINED is not defined. src/w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined. src/w32.c (REPARSE_DATA_BUFFER): Guard with MAXIMUM_REPARSE_DATA_BUFFER_SIZE being defined.
* Fix MSVC compilation problem in lib-src.cg2013-03-232-1/+5
| | | | lib-src/makefile.w32-in (LIB_SRC): Move before first use.
* Merge from emacs-24Stefan Monnier2013-03-162-4/+14
|\
| * * pop.c: Fix ERRMAX typo (Bug#13925).Paul Eggert2013-03-122-1/+7
| | | | | | | | | | (socket_connection) [!HAVE_KRB5_ERROR_TEXT && HAVE_KRB5_ERROR_E_TEXT]: Use ERROR_MAX, not ERRMAX.
| * Add 24.3 release to ChangeLogsemacs-24.3Glenn Morris2013-03-101-0/+4
| |
* | File synchronization fixes.Paul Eggert2013-03-134-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/CPP-DEFINES (BSD_SYSTEM, HAVE_FSYNC): Remove. * admin/merge-gnulib (GNULIB_MODULES): Add fsync, fdatasync. * configure.ac (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed. (fsync): Remove check; now done by gnulib. * lib/fdatasync.c, lib/fsync.c, m4/fdatasync.m4, m4/fsync.m4: New files, from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * lib-src/Makefile.in (LIB_FDATASYNC): New macro. (emacsclient${EXEEXT}): Use it. * lib-src/emacsclient.c (main): Use fdatasync, not fsync, since we don't care about metadata. Keep trying if interrupted. * lib-src/movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since fsync is available everywhere (or there is a substitute). Don't report an error if fsync returns EINVAL. * nt/inc/ms-w32.h (fdatasync): New macro, suggested by Eli Zaretskii. * src/Makefile.in (LIB_FDATASYNC): New macro. (LIBES): Use it. * src/conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed. * src/fileio.c (Fwrite_region, write_region_inhibit_fsync): Don't worry about HAVE_FSYNC, since a substitute fsync is available if the system lacks one. (Fwrite_regin): Retry fsync if interrupted. Fixes: debbugs:13944
* | Static checking by Sun C 5.12.Paul Eggert2013-03-132-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/etags.c (analyse_regex): Omit unreachable code. * src/alloc.c (buffer_memory_full) [REL_ALLOC]: * src/bytecode.c (exec_byte_code): * src/dispnew.c (init_display): * src/eval.c (error): * src/fileio.c (Fsubstitute_in_file_name): * src/keyboard.c (Fevent_convert_list): * src/keymap.c (Fsingle_key_description): * src/term.c (maybe_fatal, fatal): * src/xfns.c (Fx_display_backing_store, Fx_display_visual_class): * src/xsmfns.c (Fhandle_save_session): Omit unreachable code. * src/keymap.c (map_keymap_char_table_item): Cast void * to a function pointer type; the C Standard requires this.
* | * movemail.c: Don't grant more read permissions than necessary.Paul Eggert2013-03-122-3/+7
| | | | | | | | | | | | The old 0333 dates back to before we called setuid, so it was needed back then to ensure user-readability, but 0377 should suffice now.
* | * movemail.c (main): Call umask on all systems.Paul Eggert2013-03-122-4/+5
| | | | | | | | This is OK since Emacs already assumes umask elsewhere.
* | Prefer UTF-8 when the encoding shouldn't matter and changes are small.Paul Eggert2013-03-051-7/+7
| |
* | * movemail.c (getenv): Remove decl (unused since 1994).Paul Eggert2013-02-082-1/+4
| |
* | * make-docfile.c (write_globals): Make it a bit clearer.Paul Eggert2013-01-152-2/+8
| | | | | | | | | | | | | | This pacifies GCC 4.7.2 when Emacs is configured with --enable-link-time-optimization and --enable-gcc-warnings. Fixes: debbugs:13448
* | Merge from emacs-24; up to 2012-12-06T07:33:20Z!rgm@gnu.orgGlenn Morris2013-01-021-1/+1
|\ \ | |/
| * Add 2013 to more copyright yearsGlenn Morris2013-01-021-1/+1
| |
* | Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert2013-01-0218-23/+25
|\ \ | |/
| * Update copyright notices for 2013.Paul Eggert2013-01-0118-23/+25
| |
* | lib-src/makefile.w32-in (lisp1): Add macroexp.elc (bug#13320).Juanma Barranquero2013-01-012-1/+6
| |
* | (lib-src,src,lib)/makefile.w32-in: Update dependencies.Juanma Barranquero2012-12-112-0/+5
| |
* | Final cleanups and updated ChangeLog entries.Eli Zaretskii2012-12-102-6/+10
| |
* | Merge from trunk + rename the event. Not tested yet.Eli Zaretskii2012-12-106-120/+114
|\ \
| * | * lib-src/etags.c (Lisp_functions): Skip (defvar foo) declarationsKevin Ryde2012-12-022-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unless the --declarations flag is enabled. (Lisp_help): Update. (skip_name): New function. * doc/emacs/maintaining.texi (Tag Syntax): Mention (defvar foo) handling. * doc/man/etags.1: Mention effect of --declarations in Lisp. Fixes: debbugs:5600
| * | * lib-src/etags.c (Perl_functions): Support "use constant".Kevin Ryde2012-12-012-3/+22
| | | | | | | | | | | | | | | | | | * doc/emacs/maintaining.texi (Tag Syntax): Mention Perl's "use constant". Fixes: debbugs:5055
| * | Assume POSIX 1003.1-1988 or later for errno.h.Paul Eggert2012-11-262-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/movemail.c (main): Assume EAGAIN and EBUSY. * src/dired.c (directory_files_internal, file_name_completion): Assume EAGAIN and EINTR are defined. * src/fileio.c (Fcopy_file): Assume EISDIR is defined. * src/gmalloc.c (ENOMEM, EINVAL): Assume they're defined. * src/gnutls.c (emacs_gnutls_write): Assume EAGAIN is defined. * src/lread.c (readbyte_from_file): Assume EINTR is defined. * src/process.c (wait_reading_process_output, send_process) [subprocesses]: Assume EIO and EAGAIN are defined. * src/unexcoff.c (write_segment): Assume EFAULT is defined. Fixes: debbugs:12968
| * | movemail: treat EACCES etc. failures as permanentPaul Eggert2012-11-232-5/+8
| | | | | | | | | | | | | | | * movemail.c (main): Treat any link failure other than EEXIST as a permanent failure, not just EPERM. EACCES, for example.
| * | Assume POSIX 1003.1-1988 or later for unistd.h.Paul Eggert2012-11-214-88/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/CPP-DEFINES (BROKEN_GETWD, HAVE_GETCWD, HAVE_GETWD, HAVE_SIZE_T) (HAVE_UNISTD_H): Remove. * configure.ac: Do not check for getcwd or getwd. * lib-src/emacsclient.c (getcwd): Remove decl. (get_current_dir_name): Assume getcwd exists. * lib-src/etags.c (HAVE_GETCWD): Remove. (getcwd): Remove decl. (NO_LONG_OPTIONS): Remove this. All uses removed. Emacs always has GNU getopt. (etags_getcwd): Assume getcwd exists. * lib-src/movemail.c (F_OK, X_OK, W_OK, R_OK): Remove. * nt/config.nt (HAVE_GETCWD): Remove. * src/alloc.c: Assume unistd.h exists. * src/fileio.c (Fexpand_file_name) [DOS_NT]: Use getcwd, not getwd. * src/sysdep.c (get_current_dir_name): Assume getcwd exists. (getwd) [USG]: Remove; no longer needed. (sys_subshell) [DOS_NT]: Use getcwd, not getwd. * src/w32.c (getcwd): Rename from getwd, and switch to getcwd's API. * src/w32.h (getcwd): Remove decl. Fixes: debbugs:12945
| * | * emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)Paul Eggert2012-11-202-2/+7
| | | | | | | | | | | | rather than kill (getpid (), sig), as it's simpler and safer.
| * | lib-src/makefile.w32-in, src/makefile.w32-in: Update dependencies.Juanma Barranquero2012-11-182-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/makefile.w32-in (SYSWAIT_H): New macro. ($(BLD)/movemail.$(O)): Update dependencies. * src/makefile.w32-in (SYSWAIT_H): New macro. ($(BLD)/callproc.$(O), $(BLD)/w32proc.$(O), $(BLD)/process.$(O)) ($(BLD)/sysdep.$(O)): Update dependencies.
| * | Assume POSIX 1003.1-1988 or later for fcntl.h.Paul Eggert2012-11-173-4/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/CPP-DEFINES (O_RDONLY, O_RDWR, HAVE_FCNTL_H): Remove. * admin/merge-gnulib (GNULIB_MODULES): Add fcntl-h. * configure.ac: Do not check for fcntl.h. * lib/gnulib.mk: Regenerate. * lib-src/movemail.c, lib-src/update-game-score.c: Assume <fcntl.h> exists. * nt/inc/sys/socket.h (O_NONBLOCK): Rename from O_NDELAY, since the POSIX name for this flag is O_NONBLOCK. All uses changed. * nt/inc/unistd.h (O_RDWR, O_NOCTTY): New macros. Like AT_FDCWD etc. these really should be moved to a replacement <fcntl.h> if and when that gets implemented. In the meantime, include <fcntl.h> to make sure we don't override its definitions. * src/callproc.c (relocate_fd): Assume F_DUPFD. * src/emacs.c, src/term.c (O_RDWR): Remove. * src/keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than O_NDELAY, since O_NONBLOCK is the standard name for this flag. * src/nsterm.m: Assume <fcntl.h> exists. * src/process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process) (create_pty, Fmake_network_process, server_accept_connection) (wait_reading_process_output, init_process_emacs): Assume O_NONBLOCK. (wait_reading_process_output): Put in a special case for WINDOWSNT to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK. It's not clear this is needed, but it's a more-conservative change. (create_process): Assume FD_CLOEXEC. (create_process, create_pty): Assume O_NOCTTY. * src/sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL. (reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY. Omit if not DOS_NT, since F_GETFL is not defined there. (serial_open): Assume O_NONBLOCK and O_NOCTTY. * src/term.c: Include <fcntl.h>, for flags like O_NOCTTY. (O_NOCTTY): Remove. (init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that lack it, since gnulib guarantees this. * src/w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY. Fixes: debbugs:12881
* | Merge from trunk after 24.3 was moved to emacs-24 branch.Eli Zaretskii2012-11-024-7/+28
|\ \ | |/
| * * Makefile.in (uninstall): No INSTALLABLES live in archlibdir.Glenn Morris2012-10-262-2/+3
| |
| * Program name transformations should not be applied to $EXEEXT.Glenn Morris2012-10-262-4/+11
| | | | | | | | | | | | * Makefile.in (EMACS, EMACSFULL): * lib-src/Makefile.in (install, uninstall): Transformations should not be applied to $EXEEXT.
| * Update lib-src/makefile.w32-in to follow 2012-10-21T01:19:46Z!rgm@gnu.org.Eli Zaretskii2012-10-232-0/+7
| | | | | | | | | | lib-src/makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to follow src/lisp.mk.
| * Recognize that cp51932.el and eucjp-ms.el are loaded during dumpingGlenn Morris2012-10-202-1/+7
| | | | | | | | | | | | * src/lisp.mk (lisp): Add cp51932.el and eucjp-ms.el. * lib-src/make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.
* | Merge from trunk.Eli Zaretskii2012-10-202-8/+26
|\ \ | |/
| * Fix last changes in make-docfile.c.Eli Zaretskii2012-10-202-9/+22
| | | | | | | | | | | | lib-src/make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros. (scan_lisp_file): Only pass a .el file if its basename matches a known file in its entirety. Use IS_SLASH and DEF_ELISP_FILE.
| * Fix a typo in lib-src/ChangeLog.Eli Zaretskii2012-10-201-1/+1
| |
| * * make-docfile.c (scan_lisp_file): Add bounds checking.Andreas Schwab2012-10-202-11/+16
| |
| |
| \
*-. \ Merge from trunk.Eli Zaretskii2012-10-203-26/+62
|\ \ \ | | |/
| | * Fix bug #12395 with doc strings silently omitted from DOC on MS-Windows.Eli Zaretskii2012-10-203-26/+62
| |/ | | | | | | | | | | | | | | | | lib-src/make-docfile.c (scan_lisp_file): Barf if called with a .el file other than one of a small list of supported un-compiled files. lib-src/makefile.w32-in (lisp1, lisp2): Name .elc files wherever they exist. lisp/loadup.el: Update comment about uncompiled Lisp files.
* | Merge from trunk.Eli Zaretskii2012-10-172-0/+6
|\ \ | |/
| * Avoid compiler warnings in lib-src/ntlib.cEli Zaretskii2012-10-172-0/+6
| | | | | | | | | | src/ntlib.c: Include <mbstring.h>, to avoid compiler warning about _mbspbrk.
* | Merge from trunk after cygw32 commit, and resolve conflicts.Eli Zaretskii2012-10-083-84/+133
|\ \ | |/
| * Update w32 dependencies in the wake of cygw32 changes.Eli Zaretskii2012-10-082-1/+5
| | | | | | | | | | | | | | | | | | src/makefile.w32-in (FONT_H): Add $(FRAME_H). (W32TERM_H): Add $(ATIMER_H) and $(FRAME_H). ($(BLD)/emacs.$(O), $(BLD)/w32console.$(O)): Update dependencies. (GLOBAL_SOURCES): Add cygw32.c. lib-src/makefile.w32-in (obj): Add cygw32.o.
| * Changelog entries for cygw32Daniel Colascione2012-10-071-0/+13
| |
| * Merge from trunkDaniel Colascione2012-10-074-3/+51
| |\
| * \ Merge from trunkDaniel Colascione2012-09-174-5/+13
| |\ \
| * | | Detect window-system from display nameDaniel Colascione2012-09-171-2/+2
| | | |
| * | | Add alt_display to emacsclient for w32, nsDaniel Colascione2012-09-171-49/+78
| | | |