aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #12805 with compilation error in the cygw32 build.Eli Zaretskii2012-11-053-1/+18
| | | | | | | src/makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(NT_INC)/unistd.h. src/w32fns.c Include unistd.h, to avoid compiler warnings on Cygwin. (emacs_abort) [CYGWIN]: Don't call _open_osfhandle; instead, use file descriptor 2 for standard error.
* Avoid compiler warnings in the MS-Windows build.Eli Zaretskii2012-11-052-0/+9
| | | | nt/inc/unistd.h (tcgetpgrp, setsid): Provide prototypes.
* nt/config.nt: Sync with autogen/config.in.Juanma Barranquero2012-11-052-18/+6
| | | | | (DISPNEW_NEEDS_STDIO_EXT, GETPGRP_VOID, HAVE_SETPGID, HAVE_SETSID) (PENDING_OUTPUT_COUNT, SETPGRP_RELEASES_CTTY): Remove.
* Auto-commit of generated files.Glenn Morris2012-11-052-200/+6
|
* * process.c (wait_reading_process_output): Revert previous change.Chong Yidong2012-11-052-7/+13
|
* Assume at least POSIX.1-1988 for getpgrp, setpgid, setsid.Paul Eggert2012-11-0414-95/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-046-101/+24
| | | | | | | | | | | 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.
* Remove EMACS_OUTQSIZE+sleep hack.Paul Eggert2012-11-043-26/+9
| | | | | | | | | * dispnew.c (update_frame_1): Remove hack for terminals slower than 2400 bps, which throttled Emacs by having it sleep. This code hasn't worked since at least 2007, when the multi-tty stuff was added, and anyway those old terminals are long dead. * systty.h (EMACS_OUTQSIZE): Remove; unused. The macro isn't used even without the dispnew.c change, as dispnew.c doesn't include systty.h.
* Fix data-loss with --version.Paul Eggert2012-11-042-3/+12
| | | | | | | | | | * emacs.c (close_output_streams): Use strerror, not emacs_strerror, as we can't assume that emacs_strerror is initialized, and strerror is good enough here. (main): Invoke atexit earlier, to catch earlier instances of sending data to stdout and exiting, e.g., "emacs --version >/dev/full". Fixes: debbugs:9574
* nt/config.nt: Sync with autogen/config.in.Juanma Barranquero2012-11-042-0/+13
| | | | (GNULIB_CLOSE_STREAM, HAVE_DECL___FPENDING): New macros.
* Auto-commit of loaddefs files.Glenn Morris2012-11-041-4/+4
|
* Auto-commit of generated files.Glenn Morris2012-11-044-28/+175
|
* * lisp/vc/vc-svn.el (vc-svn-state-heuristic): Avoid calling svn.Glenn Morris2012-11-032-1/+20
| | | | Fixes: debbugs:7850
* * nsterm.m: Add NSClearLineFunctionKey and keypad keys.Michael Marchionna2012-11-042-3/+28
| | | | | | (keyDown): Remap keypad keys to X11 virtual key codes. Fixes: debbugs:8680
* * bookmark.el (bookmark-bmenu-switch-other-window): Avoid binding ↵Chong Yidong2012-11-042-4/+7
| | | | same-window-* variables.
* Don't bind same-window-* in isearch.el commands.Juri Linkov2012-11-042-4/+12
| | | | | | | | * isearch.el (isearch-help-for-help, isearch-describe-bindings) (isearch-describe-key, isearch-describe-mode): Use a display action instead of binding same-window-* variables. Fixes: debbugs:10040
* Fix order of entries in ChangeLog files.Eli Zaretskii2012-11-032-20/+22
|
* Fix Windows build as fallout from 2012-11-03T18:54:17Z!eggert@cs.ucla.edu.Eli Zaretskii2012-11-034-0/+26
| | | | | | | | | | | 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
* * admin/admin.el (set-copyright): Add msdos/sed2v2.inp.Glenn Morris2012-11-032-0/+8
|
* Merge from emacs-24; up to 2012-11-03T05:11:34Z!dmantipov@yandex.ruGlenn Morris2012-11-0323-352/+649
|\
| * Further small cl.texi changesGlenn Morris2012-11-033-27/+18
| | | | | | | | | | | | | | | | | | * doc/misc/cl.texi (Creating Symbols, Random Numbers): De-emphasize internal variables cl--gensym-counter and cl--random-state. * etc/NEWS: Related edits. Fixes: debbugs:12788
| * Rename cl-loop-handler, cl-loop-for-handler back to their original namesGlenn Morris2012-11-032-2/+7
| | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-parse-loop-clause): Rename handler properties back from cl-- to cl-. Fixes: debbugs:12788
| * More general edits for cl.texi AppendicesGlenn Morris2012-11-031-18/+27
| |
| * * lisp/emacs-lisp/cl-macs.el (cl-do-all-symbols): Add doc string.Glenn Morris2012-11-032-0/+7
| |
| * Further edits for doc/misc/cl.texiGlenn Morris2012-11-032-62/+52
| | | | | | | | | | | | | | * cl.texi: Further general copyedits. (List Functions): Remove copy-tree, standard elisp for some time. (Efficiency Concerns): Comment out examples that no longer apply. (Compiler Optimizations): Rename from "Optimizing Compiler"; reword.
| * * lispref/objects.texi: Fix last change.Chong Yidong2012-11-041-1/+1
| |
| * Adapt MSDOS port to latest changes.Eli Zaretskii2012-11-0313-33/+84
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config.bat: Copy lib/execinfo.in.h to lib/execinfo.in-h if needed. msdos/sedlibmk.inp: Sync with changes in lib/Makefile.in. (HAVE_DECL_ENVIRON, GNULIB_ENVIRON): Edit to require declaration through lib/unistd.h. msdos/sed1v2.inp: Sync with changes in src/Makefile.in. msdos/sed2v2.inp: Sync with changes in src/config.in. src/lisp.mk: Adjust comments to the fact that term/internal is now loaded from loadup.el. src/msdos.c (msdos_abort): Rename from emacs_abort, and make static. (msdos_fatal_signal): New function. (XMenuActivate): Adjust the call to kbd_buffer_events_waiting to its argument list. src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline" for GCC versions before 4. (emacs_raise): Define to call msdos_fatal_signal. lisp/term/pc-win.el: Don't load term/internal from here. lisp/loadup.el: Load term/internal from here.
| | * Load term/internal from loadup.el.Eli Zaretskii2012-11-035-5/+13
| | |
| | * Adapt the MSDOS build to the latest changes on mainline.Eli Zaretskii2012-11-0310-99/+65
| | |
| * | * progmodes/python.el (inferior-python-mode): Fix hang inFabián Ezequiel Gallina2012-11-032-11/+23
| | | | | | | | | | | | | | | | | | jit-lock. Fixes: debbugs:12645
| * | Backport from trunk.Jan Djärv2012-11-032-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | * widget.c (resize_cb): New function. (EmacsFrameRealize): Add resize_cb as event handler. (EmacsFrameResize): Check if all is up to date before changing frame size. Fixes: debbugs:12733
| * | Clarify documentation about escape sequences in strings.Chong Yidong2012-11-032-68/+86
| | | | | | | | | | | | | | | | | | | | | * objects.texi (General Escape Syntax): Clarify the explanation of escape sequences. (Non-ASCII in Strings): Clarify when a string is unibyte vs multibyte. Hex escapes do not automatically make a string multibyte.
| * | Doc changes related to displaying buffers and quitting windows.Martin Rudalics2012-11-035-59/+215
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * window.el (switch-to-visible-buffer) (switch-to-buffer-preserve-window-point): Fix doc-strings. * windows.texi (Switching Buffers): Document option switch-to-buffer-preserve-window-point. (Display Action Functions): Document window-height and window-width alist entries. (Display Action Functions): Document display-buffer-below-selected and display-buffer-in-previous-window. (Quitting Windows): Document quit-restore-window. Rewrite section. (Window Configurations): In window-state-get mention that argument window must be valid. (Window Parameters): Document quit-restore window parameter (Bug#12158).
| * Fix bidi initialization in init_from_display_pos.Eli Zaretskii2012-11-032-0/+44
| | | | | | | | | | | | | | | | src/xdisp.c (init_from_display_pos): Fix initialization of the bidi iterator when starting in the middle of a display or overlay string. Fixes: debbugs:12745
| * * doc/misc/cl.texi: Further general copyedits.Glenn Morris2012-11-022-76/+83
| | | | | | | | | | Eg, no longer distinguish between "the optimizing compiler" and "the non-optimizing compiler" like they were different entities.
| * Undocument cl-floatp-safe, since it is no longer relevantGlenn Morris2012-11-022-7/+17
| | | | | | | | | | * doc/misc/cl.texi (Naming Conventions, Type Predicates, Macros) (Predicates on Numbers): No longer mention cl-floatp-safe.
* | Fix data-loss with --batch.Paul Eggert2012-11-0313-4/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Rename cl-random-time to cl--random-timeGlenn Morris2012-11-033-4/+11
| | | | | | | | | | | | | | | | * emacs-lisp/cl-lib.el (cl--random-time): Rename from cl-random-time. (cl--gensym-counter, cl--random-state): Update callers. * emacs-lisp/cl-extra.el (cl-make-random-state): Update callers. Fixes: debbugs:12773
* | Fix a race condition that causes Emacs to mess up glib.Paul Eggert2012-11-033-95/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The symptom is a diagnostic "GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned." The diagnostic is partly wrong, as the SIGCHLD action is not set to SIG_IGN. The real bug is a race condition between Emacs and glib: Emacs does a waitpid (-1, ...) and reaps glib's subprocess by mistake, so that glib can't find it. Work around the bug by invoking waitpid only on subprocesses that Emacs itself creates. * process.c (create_process, record_child_status_change): Don't use special value -1 in pid field, as the caller now must know the pid rather than having the callee infer it. The inference was sometimes incorrect anyway, due to another race. (create_process): Set new 'alive' member if child is created. (process_status_retrieved): New function. (record_child_status_change): Use it. Accept negative 1st argument, which means to wait for the processes that Emacs already knows about. Move special-case code for DOS_NT (which lacks WNOHANG) here, from caller. Keep track of processes that have already been waited for, by testing and clearing new 'alive' member. (CAN_HANDLE_MULTIPLE_CHILDREN): Remove, as record_child_status_change now does this internally. (handle_child_signal): Let record_child_status_change do all the work, since we do not want to reap all exited child processes, only the child processes that Emacs itself created. * process.h (Lisp_Process): New boolean member 'alive'. Fixes: debbugs:8855
* | Omit duplicate definitions no longer needed with gcc -g3.Paul Eggert2012-11-032-22/+15
| | | | | | | | | | | | | | | | * lisp.h (GCTYPEBITS, GCALIGNMENT, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG) (VALMASK, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM): Define only as macros. There's no longer any need to also define these symbols as enums or as constants, since we now assume gcc -g3 when debugging.
* | * process.c (wait_reading_process_output): Clean up last change.Chong Yidong2012-11-042-11/+11
| |
* | Fix a race condition in wait_reading_process_output (tiny change).Chong Yidong2012-11-032-1/+9
| | | | | | | | | | | | | | * src/process.c (wait_reading_process_output): Avoid a race condition with SIGIO delivery. Fixes: debbugs:11536
* | * lisp/cus-start.el: Make cursor-type customizable.Chong Yidong2012-11-034-8/+29
| | | | | | | | | | | | * src/buffer.c (cursor_type): Untabify docstring. Fixes: debbugs:11633
* | * frame.h (struct frame): Drop can_have_scroll_bars memberDmitry Antipov2012-11-037-23/+8
| | | | | | | | | | | | which is meaningless for a long time. Adjust comments. (FRAME_CAN_HAVE_SCROLL_BARS): Remove. * frame.c, nsfns.m, term.c, w32fns.c, xfns.c: Adjust users.
* | * window.c (decode_next_window_args): Update window arg afterDmitry Antipov2012-11-033-8/+13
| | | | | | | | | | | | | | | | calling decode_live_window and so fix crash reported at http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00035.html by Juanma Barranquero <lekktu@gmail.com>. (Fwindow_body_width, Fwindow_body_height): Simplify a bit. * font.c (Ffont_at): Likewise.
* | Fix attribution in ChangeLogGlenn Morris2012-11-021-2/+2
| |
* | Merge changes made in Gnus masterGnus developers2012-11-027-46/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-05 Katsumi Yamaoka <yamaoka@jpl.org> * gnus.texi (Mail Source Specifiers): Document :leave keyword used for pop mail source. 2012-10-25 Tassilo Horn <tsdh@gnu.org> * gnus-dired.el (gnus-dired-attach): Attach to last used message buffer by default. Patch provided by Stephen Eglen. 2012-10-05 Katsumi Yamaoka <yamaoka@jpl.org> New UIDL implementation. * mail-source.el (mail-sources, mail-source-keyword-map): Add :leave as a pop3 keyword. (mail-source-fetch-pop): Bind pop3-leave-mail-on-server. * pop3.el (pop3-leave-mail-on-server): Allow number. (pop3-uidl-file, pop3-uidl-file-backup): New user options. (pop3-movemail): Add UIDL support. (pop3-send-streaming-command): Take a list of mail numbers instead of the number of mails. (pop3-write-to-file): Add X-UIDL header. (pop3-uidl-stat, pop3-uidl-dele, pop3-uidl-load, pop3-uidl-save) (pop3-uidl-add-xheader): New functions. * message.el (message-ignored-resent-headers): Add X-Content-Length and X-UIDL headers.
* | No need for filecache.el to load find-lisp when compilingGlenn Morris2012-11-022-14/+15
| | | | | | | | | | * lisp/filecache.el (find-lisp-find-files): Autoload it. (file-cache-add-directory-recursively): Don't require find-lisp.
* | * lisp/image.el (image-type-from-file-name): Trivial simplification.Glenn Morris2012-11-022-10/+9
| |
* | Decouple "noruntime" and "cl-functions" bytecomp warningsGlenn Morris2012-11-022-10/+6
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Decouple "noruntime" and "cl-functions" warnings.