aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Assume at least POSIX.1-1988 for getpgrp, setpgid, setsid.Paul Eggert2012-11-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This removes code that has been obsolete since around 1990. * admin/CPP-DEFINES (HAVE_SETPGID, HAVE_SETSID, SETPGRP_RELEASES_CTTY): Remove; obsolete. * configure.ac (setpgid, setsid): Assume their existence. (AC_FUNC_GETPGRP, SETPGRP_RELEASES_CTTY): Remove; obsolete. * src/callproc.c (Fcall_process): * src/emacs.c (main): * src/process.c (create_process): * src/term.c (dissociate_if_controlling_tty): Assume setsid exists. * src/callproc.c (child_setup): Assume setpgid exists and behaves as per POSIX.1-1988 or later. * src/conf_post.h (setpgid) [!HAVE_SETPGID]: Remove. * src/emacs.c (shut_down_emacs): * src/sysdep.c (sys_suspend, init_foreground_group): Assume getpgrp behaves as per POSIX.1-1998 or later. * src/msdos.c (setpgrp): Remove. (tcgetpgrp, setpgid, setsid): New functions. * src/systty.h (EMACS_GETPGRP): Remove. All callers now use getpgrp. * src/term.c (no_controlling_tty): Remove; unused. * src/w32proc.c (setpgrp): Remove. (setsid, tcgetpgrp): New functions. Fixes: debbugs:12800
* Simplify by assuming __fpending.Paul Eggert2012-11-041-0/+8
| | | | | | | | | | | Now that Emacs is using the gnulib fpending module, there's no need for Emacs to have a separate implementation. * configure.ac (stdio_ext.h, __fpending): Remove now-duplicate checks. (PENDING_OUTPUT_COUNT, DISPNEW_NEEDS_STDIO_EXT): Remove. * admin/CPP-DEFINES (PENDING_OUTPUT_COUNT): Remove. * src/dispnew.c: Include <fpending.h>, not <stdio_ext.h>. (update_frame_1): Use __fpending, not PENDING_OUTPUT_COUNT. Do not assume that __fpending's result fits in int.
* Fix order of entries in ChangeLog files.Eli Zaretskii2012-11-031-2/+4
|
* Fix Windows build as fallout from 2012-11-03T18:54:17Z!eggert@cs.ucla.edu.Eli Zaretskii2012-11-031-0/+5
| | | | | | | | | | | nt/config.nt (PENDING_OUTPUT_N_BYTES): Define. lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/fpending.$(O) and $(BLD)/close-stream.$(O). ($(BLD)/close-stream.$(O)): ($(BLD)/fpending.$(O)): New dependencies. Fixes: debbugs:9574
* Merge from emacs-24; up to 2012-11-03T05:11:34Z!dmantipov@yandex.ruGlenn Morris2012-11-031-0/+4
|\
| * Adapt the MSDOS build to the latest changes on mainline.Eli Zaretskii2012-11-031-0/+4
| |
* | Fix data-loss with --batch.Paul Eggert2012-11-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add close-stream. * lib/close-stream.c, lib/close-stream.h, lib/fpending.c * lib/fpending.h, m4/close-stream.m4, m4/fpending.m4: New files, from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * src/emacs.c: Include <close-stream.h>. (close_output_streams): New function. (main): Pass it to atexit, so that Emacs closes stdout and stderr and handles errors appropriately. (Fkill_emacs): Don't worry about flushing, as close_output_stream does that now. Fixes: debbugs:9574
* | Allow choice of icon style at install timeGlenn Morris2012-11-021-0/+5
|/ | | | | | | | This feature is intentionally not advertised http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12536#40 * Makefile.in (EMACS_ICON): New variable. (install-etc): Use EMACS_ICON to allow choice of icon.
* * Makefile.in (EMACS_NAME): New variable.Glenn Morris2012-10-261-0/+3
| | | | (EMACS, install-etc, uninstall): Use $EMACS_NAME.
* Program name transformations should not be applied to $EXEEXT.Glenn Morris2012-10-261-0/+3
| | | | | | * Makefile.in (EMACS, EMACSFULL): * lib-src/Makefile.in (install, uninstall): Transformations should not be applied to $EXEEXT.
* Misc fixes for make uninstallGlenn Morris2012-10-261-0/+6
| | | | | | * Makefile.in (uninstall): Don't abort if some directories are missing. Apply transformation rules to manual pages, desktop and icon files. No more emacs22 icons to uninstall.
* * Makefile.in (install-etc): Don't apply program transform to file suffixes.Glenn Morris2012-10-241-1/+2
|
* * Makefile.in (install-man): Don't apply transform to suffix.Glenn Morris2012-10-241-0/+4
|
* * configure.ac (_FORTIFY_SOURCE): Do not multiply define.Paul Eggert2012-10-231-0/+6
| | | | | | | This ports to Gentoo. Problem originally reported against coreutils, but Emacs has it too. Fixes: debbugs:12714
* Revert 2012-10-21 Makefile.in change (bug#12713)Glenn Morris2012-10-231-0/+5
| | | | | * Makefile.in (emacs_transform): Remove. (install-man): Revert 2012-10-21 change.
* Put back old Emacs 22 icons, just don't install themGlenn Morris2012-10-201-0/+2
| | | | | | | | | | | | | Some people prefer them to the newer icon * Makefile.in (install-etc): Don't install emacs22 icons. * etc/images/icons/hicolor/32x32/apps/emacs22.png: * etc/images/icons/hicolor/16x16/apps/emacs22.png: * etc/images/icons/hicolor/48x48/apps/emacs22.png: * etc/images/icons/hicolor/24x24/apps/emacs22.png: Restore old icons. * etc/images/icons/README: Restore info about emacs22 icons
* In Makefile.in, use a make variable rather than a shell variable.Glenn Morris2012-10-201-0/+5
| | | | | * Makefile.in (emacs_transform): New variable. (install-etc): Prefer a make variable to a shell variable.
* Undo faccessat change.Paul Eggert2012-10-191-13/+0
|
* Use faccessat, not access, when checking file permissions.Paul Eggert2012-10-191-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .bzrignore: Add lib/fcntl.h. * configure.ac (euidaccess): Remove check; gnulib does this for us now. (gl_FCNTL_O_FLAGS): Define a dummy version. * lib/at-func.c, lib/euidaccess.c, lib/faccessat.c, lib/fcntl.in.h: * lib/getgroups.c, lib/group-member.c, lib/root-uid.h: * lib/xalloc-oversized.h, m4/euidaccess.m4, m4/faccessat.m4: * m4/fcntl_h.m4, m4/getgroups.m4, m4/group-member.m4: New files, from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * admin/merge-gnulib (GNULIB_MODULES): Add faccessat. (GNULIB_TOOL_FLAGS): Avoid at-internal, fchdir, malloc-posix, openat-die, openat-h, save-cwd. Do not avoid fcntl-h. Omit gnulib's m4/fcntl-o.m4. * nt/inc/ms-w32.h (AT_FDCWD, AT_EACCESS): New symbols. (access): Remove. (faccessat): New macro. * src/Makefile.in (LIB_EACCESS): New macro. (LIBES): Use it. * src/callproc.c (init_callproc): * src/charset.c (init_charset): * src/fileio.c (check_existing, check_executable): * src/lread.c (openp, load_path_check): * src/process.c (allocate_pty): * src/xrdb.c (file_p): Use faccessat, not access or euidaccess. Use symbolic names instead of integers for the flags, as they're portable now. * src/charset.c, src/xrdb.c: Include <fcntl.h>, for the new flags used. * src/fileio.c (Ffile_readable_p): Use faccessat, not stat + open + close. (file_directory_p): New function, which uses 'stat' on most places but 'access' (for efficiency) if WINDOWSNT. * src/fileio.c (Ffile_directory_p, Fset_file_times): * src/xrdb.c (file_p): Use file_directory_p. * src/lisp.h (file_directory_p): New decl. * src/lread.c (openp): When opening a file, use fstat rather than stat, as that avoids a permissions race. When not opening a file, use file_directory_p rather than stat. * src/process.c, src/sysdep.c, src/term.c: All uses of '#ifdef O_NONBLOCK' changed to '#if O_NONBLOCK', to accommodate gnulib O_* tyle. * src/w32.c (sys_faccessat): Rename from sys_access and switch to faccessat's API. All uses changed. Fixes: debbugs:12632
* * lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.Stefan Monnier2012-10-181-86/+90
| | | | * Makefile.in ($(MAKEFILE_NAME)): Depend on src/lisp.mk as well.
* Fix ChangeLog typos.Juanma Barranquero2012-10-171-4/+4
|
* Apply program-transform-name etc in more places (bug#12536#34)Glenn Morris2012-10-151-0/+6
| | | | | | | | | * Makefile.in (install-man, install-etc): Apply $TRANSFORM. (clean): Delete etc/emacs.tmpdesktop. * .bzrignore: Add etc/emacs.tmpdesktop. * etc/NEWS: Mention this. Unrelated copyedits.
* merge trunkKenichi Handa2012-10-111-0/+9
|\
| * Changelog entries for cygw32Daniel Colascione2012-10-071-0/+9
| |
* | Re-generate charsets. Adjust for the change of admin/charset/mapfiles/*.gzKenichi Handa2012-10-111-0/+4
|/
* Check for OSX >= 10.4 to match what the maunal says and what we actually ↵Jan Djärv2012-10-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | support. * configure.ac: Check that OSX is 10.4 or newer. * etc/NEWS (NextStep/OSX port changes): OSX 10.4 or newer is required. * src/nsfns.m (Fns_list_services): Remove comment and check for OSX < 10.4. (ns_do_applescript): Remove check for >= MAC_OS_X_VERSION_10_4. * src/nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger. * src/nsmenu.m (fillWithWidgetValue:): Remove code for < MAC_OS_X_VERSION_10_2. * src/nsselect.m (ns_string_from_pasteboard): Remove check for >= MAC_OS_X_VERSION_10_4. * src/nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove. (EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4. (struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3.
* Improve sys_siglist detection.Paul Eggert2012-10-061-0/+6
| | | | | | | | | | | * configure.ac (sys_siglist): Look for its decl in <signal.h>. Otherwise, it's not found in either Fedora 17 or Solaris 11. * src/sysdep.c (sys_siglist, init_signals): Use _sys_siglist if it's defined as a macro, as is done in Solaris. (sys_siglist_entries): New macro. (save_strsignal): Use it. * src/syssignal.h (safe_strsignal): Now ATTRIBUTE_CONST, to pacify GCC 4.7.2 on Fedora 17 with the fixed sys_siglist detection.
* Move ChangeLog entry to proper file.Paul Eggert2012-10-041-11/+0
|
* Merge from gnulib.Paul Eggert2012-10-041-0/+9
|
* Port timers to OpenBSD, plus check for timer failures.Paul Eggert2012-10-031-0/+13
| | | | | | | | | | | | OpenBSD problem reported by Han Boetes. * profiler.c (setup_cpu_timer): Check for failure of timer_settime and/or setitimer. (Fprofiler_cpu_stop): Don't assume HAVE_SETITIMER. * syssignal.h (HAVE_ITIMERSPEC): New macro. This is for platforms like OpenBSD, which has timer_settime but does not declare it. OpenBSD does not define SIGEV_SIGNAL, so use that when deciding whether to use itimerspec-related primitives. All uses of HAVE_TIMER_SETTIME replaced with HAVE_ITIMERSPEC.
* Merge from gnulib.Paul Eggert2012-09-291-0/+5
|
* Link with LIB_TIMER_TIME as needed.Paul Eggert2012-09-271-0/+1
|
* Check more robustly for timer_settime.Paul Eggert2012-09-261-0/+8
| | | | | | | | | | | | | This should fix an OS X build problem reported by Ivan Andrus in <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00671.html>. * admin/merge-gnulib (GNULIB_MODULES): Add timer-time. * configure.ac (gl_THREADLIB): Define to empty, since Emacs does threads its own way. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * m4/timer_time.m4: New file, from gnulib. * src/atimer.c (alarm_timer, alarm_timer_ok, set_alarm, init_atimer): Use HAVE_TIMER_SETTIME, not SIGEV_SIGNAL, to decide whether to call timer_settime.
* * Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,Paul Eggert2012-09-231-0/+5
| | | | to avoid problems with recursion when using GNU make.
* * Makefile.in (bootstrap): Simplify build procedure.Paul Eggert2012-09-221-0/+4
| | | | | Suggested by Wolfgang Jenker in <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00456.html>.
* Merge from gnulib.Paul Eggert2012-09-221-0/+5
|
* New feature: set optimal slice from BoundingBox information.Tassilo Horn2012-09-191-0/+5
| | | | | | | | | | | | | * doc-view.el (doc-view-mode-map): Add keybinding. (doc-view-menu): Add menu entry. (doc-view-set-slice): Adapt docstring. (doc-view-get-bounding-box, doc-view-guess-paper-size) (doc-view-scale-bounding-box) (doc-view-set-slice-from-bounding-box): New functions. (doc-view-paper-sizes): New defvar. * doc/emacs/misc.texi (DocView Slicing): Document new slice from BoundingBox feature.
* * configure.ac (HAVE_GTK): Mention if we use GTK2 or GTK3.Jan Djärv2012-09-181-0/+4
|
* * Makefile.in (bootstrap): Revert last change. Run config.statusAndreas Schwab2012-09-181-0/+6
| | | | | after config.status --recheck, run configure from $(srcdir). (config.status): Run configure from $(srcdir).
* * Makefile.in: Run autogen/copy_autogen if autogen.sh fails,Paul Eggert2012-09-171-0/+8
| | | | | | | | | | to create 'configure'; problem reported by Andreas Schwab in <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html>. * autogen.sh: Exit with status 1 when failing due to missing tools, reverting the 2012-09-10 change to this file. * autogen/copy_autogen: Fail if one of the subsidiary actions fail. Use 'cp -f' for the build-aux files, since the destinations are typically read-only.
* * Makefile.in: Fix build error on FreeBSD.Paul Eggert2012-09-171-0/+9
| | | | | | | | | | ($(MAKEFILE_NAME)): Pass MAKE='$(MAKE)' to config.status's env. Suggested by Wolfgang Jenker in <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00430.html>. (MAKE_CONFIG_STATUS): Remove. Remaining use expanded. This undoes part of the 2012-09-10 patch. (bootstrap): Run ./configure, rather than trying to run config.status if it exists. That builds src/epaths.h more reliably.
* Remove no-longer-needed Solaris 2.4 vfork bug workaround.Paul Eggert2012-09-161-0/+6
| | | | | | | | | | | | | The workaround was for improving performance on Solaris 2.4, but is getting in the way now. Emacs will still work if someone is still running Solaris 2.4 in a museum somewhere; Sun dropped support for Solaris 2.4 in 2003. * configure.ac (ac_cv_func_vfork_works): Default to 'no' on Solaris 2.4, so that AC_FUNC_VFORK doesn't think vfork works. * src/callproc.c (Fcall_process) [HAVE_WORKING_VFORK]: * src/process.c (create_process) [HAVE_WORKING_VFORK]: Omit now-unnecessary workaround for the Solaris 2.4 vfork bug, since Emacs no longer uses vfork on that platform.
* Reduce the number of versioned files storing the short copyright stringGlenn Morris2012-09-161-0/+5
| | | | | | | | | | | | | | | | | | | * configure.ac (copyright): New output variable. (COPYRIGHT): New AC_DEFINE. * admin/admin.el (set-copyright): No more need to set copyrights for nextstep, or .c files. Add configure.ac and config.nt. * lib-src/ebrowse.c (version): * lib-src/etags.c (print_version): Use COPYRIGHT. * nextstep/templates/Info-gnustep.plist.in: * nextstep/templates/InfoPlist.strings.in: * nextstep/templates/Info.plist.in: Let configure set copyright. * nt/config.nt (COPYRIGHT): New. * src/emacs.c: Use COPYRIGHT.
* Remove configure's --without-sync-input option.Paul Eggert2012-09-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When auditing signal-handling in preparation for cleaning it up, I found that SYNC_INPUT has race conditions and would be a real pain to fix. Since it's an undocumented and deprecated configure-time option, now seems like a good time to remove it. Also see <http://bugs.gnu.org/11080#16>. * configure.ac (SYNC_INPUT, BROKEN_SA_RESTART): Remove. * admin/CPP-DEFINES (BROKEN_SA_RESTART, SA_RESTART): Remove. * etc/TODO (Make SYNC_INPUT the default): Remove, as the code now behaves as if SYNC_INPUT is always true. * src/alloc.c (_bytes_used, __malloc_extra_blocks, _malloc_internal) (_free_internal) [!DOUG_LEA_MALLOC]: Remove decls. (alloc_mutex) [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: (malloc_hysteresis): (check_depth) [XMALLOC_OVERRUN_CHECK]: (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): (__malloc_hook, __realloc_hook, __free_hook, BYTES_USED) (dont_register_blocks, bytes_used_when_reconsidered) (bytes_used_when_full, emacs_blocked_free, emacs_blocked_malloc) (emacs_blocked_realloc, reset_malloc_hooks, uninterrupt_malloc): [!SYSTEM_MALLOC && !SYNC_INPUT]: Remove. All uses removed. (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): Use a different implementation, one that depends on whether the new macro XMALLOC_BLOCK_INPUT_CHECK is defined, not on whether SYNC_INPUT is defined. * src/atimer.c (run_timers, handle_alarm_signal): * src/keyboard.c (pending_signal, poll_for_input_1, poll_for_input) (handle_async_input, process_pending_signals) (handle_input_available_signal, init_keyboard): * src/nsterm.m (ns_read_socket): * src/process.c (wait_reading_process_output): * src/regex.c (immediate_quit, IMMEDIATE_QUIT_CHECK): * src/sysdep.c (emacs_sigaction_init) [SA_RESTART]: (emacs_write): * src/xterm.c (XTread_socket): Assume SYNC_INPUT. * src/conf_post.h (SA_RESTART) [IRIX6_5]: Do not #undef. * src/eval.c (handling_signal): Remove. All uses removed. * src/lisp.h (ELSE_PENDING_SIGNALS): Remove. All uses replaced with the SYNC_INPUT version. (reset_malloc_hooks, uninterrupt_malloc, handling_signal): Remove decls. * src/sysdep.c, src/syssignal.h (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Now static. Fixes: debbugs:12450
* Add missing nextstep file from previous change.Glenn Morris2012-09-161-1/+1
|
* Increase compartmentalization of Nextstep builds rules,Glenn Morris2012-09-161-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and store Emacs version number in fewer versioned files. * configure.ac (ns_appsrc): Use relative names. (ns_frag): Remove. (Info-gnustep.plist, Emacs.desktop, Info.plist, InfoPlist.strings) (nextstep/Makefile): Generate these nextstep files. (SUBDIR_MAKEFILES): Add nextstep. * Makefile.in (clean, distclean, bootstrap-clean): Add nextstep. * make-dist (nextstep/templates): Add directory. (nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj): Remove. (nextstep/Cocoa/Emacs.base/Contents) (nextstep/GNUstep/Emacs.base/Resources): Update contents. * .bzrignore: Add some nextstep files. * admin/admin.el (set-version): No more need to set nextstep versions. (set-copyright): Update for moved nextstep files. * nextstep/Makefile.in: New file. * nextstep/templates: New directory. * nextstep/templates/Emacs.desktop.in, nextstep/templates/Info-gnustep.plist.in: * nextstep/templates/Info.plist.in, nextstep/templates/InfoPlist.strings.in: Move here from various Cocoa/, GNUstep/ locations. Let configure set the version number. * 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: * nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop: Move to templates/. * nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj: Remove directory. * src/Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Remove variables. (ns_frag): Remove. (ns-app): Move here from ns.mk, and simplify. (clean): Simplify nextstep entry. * src/ns.mk: Remove file.
* Port better to POSIX hosts lacking _setjmp.Paul Eggert2012-09-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (HAVE__SETJMP, HAVE_SIGSETJMP): New symbols. (_setjmp, _longjmp): Remove. * src/lisp.h: Include <setjmp.h> here, since we use its symbols here. All instances of '#include <setjmp.h>' removed, if the only reason for the instance was because "lisp.h" was included. (sys_jmp_buf, sys_setjmp, sys_longjmp): New symbols. Unless otherwise specified, replace all uses of jmp_buf, _setjmp, and _longjmp with the new symbols. Emacs already uses _setjmp if available, so this change affects only POSIXish hosts that have sigsetjmp but not _setjmp, such as some versions of Solaris and Unixware. (Also, POSIX-2008 marks _setjmp as obsolescent.) * src/image.c (_setjmp, _longjmp) [HAVE_PNG && !HAVE__SETJMP]: New macros. (png_load_body) [HAVE_PNG]: (PNG_LONGJMP) [HAVE_PNG && PNG_LIBPNG_VER < 10500]: (PNG_JMPBUF) [HAVE_PNG && PNG_LIBPNG_VER >= 10500]: Use _setjmp and _longjmp rather than sys_setjmp and sys_longjmp, since PNG requires jmp_buf. This is the only exception to the general rule that we now use sys_setjmp and sys_longjmp. This exception is OK since this code does not change the signal mask or longjmp out of a signal handler. Fixes: debbugs:12446
* Fix glitches with 'configure --without-sync-input'.Paul Eggert2012-09-141-0/+2
| | | | | | * configure.ac (--without-sync-input): Fix typo in usage message. * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: Include "syssignal.h", for 'main_thread'.
* * configure.ac: Port to hosts lacking gtk.Paul Eggert2012-09-141-0/+9
| | | | | | | | (PKG_CHECK_MODULES): Capture pkg-config diagnostics better, in particular, problems in invoking pkg-config itself. This is useful on hosts that don't have pkg-config. (GTK_MODULES): Do not exit 'configure' simply because gtk3 and gtk2 are both missing. Problem found on Solaris 8.
* * configure.ac: Report Gtk+ 3 as GTK.Jan Djärv2012-09-131-0/+1
|