aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | * lisp.h (modify_region): Rename to...Dmitry Antipov2012-12-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | (modify_region_1): ...new prototype. * textprop.c (modify_region): Now static. Adjust users. * insdel.c (modify_region): Rename to... (modify_region_1): ...new function to work with current buffer. Adjust comment and users. Use true and false for boolean arg.
| * | * alloc.c (free_save_value): New function.Dmitry Antipov2012-12-031-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (safe_alloca_unwind): Use it. * lisp.h (free_save_value): New prototype. * editfns.c (save_excursion_save): Use Lisp_Misc_Save_Value. Add comment. (save_excursion_restore): Adjust to match saved data structure. Use free_save_value to offload some work from GC. Drop obsolete #if 0 code.
| * | Merge from emacs-24; up to 2012-11-23T06:23:28Z!cyd@gnu.orgGlenn Morris2012-12-021-0/+22
| |\ \ | | |/
| | * * fileio.c (Vauto_save_list_file_name): Minor doc fix.Chong Yidong2012-12-011-0/+4
| | |
| | * Fix compilation problems with 64-bit MSVC compiler.Fabrice Popineau2012-11-301-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/w32fns.c: Remove prototype of atof. (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit builds. (file_dialog_callback): Declared UINT_PTR. src/w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility with 64-bit builds. src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already defined.
| | * * src/data.c (Fboundp): Doc fix re lexical-binding.Glenn Morris2012-11-271-1/+1
| | |
| | * * src/data.c (Fsymbol_value): Doc fix re lexical-binding.Glenn Morris2012-11-271-0/+4
| | |
| * | Fix xpalloc confusion after memory is exhausted.Paul Eggert2012-12-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * alloc.c (xpalloc): Comment fix. * charset.c (Fdefine_charset_internal): If xpalloc exhausts memory and signals an error, do not clear charset_table_size, as charset_table is still valid. * doprnt.c (evxprintf): Clear *BUF after freeing it.
| * | Use execve to avoid need to munge environ.Paul Eggert2012-12-021-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * callproc.c (Fcall_process): * process.c (create_process): Don't save and restore environ; no longer needed. * callproc.c (child_setup): Use execve, not execvp, to preserve environ. Fixes: debbugs:13054
| * | * xterm.c (x_draw_image_relief): Remove unused locals.Paul Eggert2012-12-011-0/+4
| | | | | | | | | | | | Fixes: debbugs:10500
| * | Fix drawing of relief rects on X and W32.YAMAMOTO Mitsuharu2012-12-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * xterm.c (x_draw_relief_rect, x_draw_image_relief): Fix relief display for sliced images. * w32term.c (w32_draw_relief_rect, x_draw_image_relief): Likewise. Fixes: debbugs:10500
| * | src/doc.c: Fix bug#13034.Juanma Barranquero2012-11-301-0/+5
| | | | | | | | | | | | | | | (Fdocumentation): Re-add handling of function-documentation, accidentally removed in 2012-11-09T04:10:16Z!monnier@iro.umontreal.ca.
| * | * xdisp.c (window_outdated): Remove eassert since it hitsDmitry Antipov2012-11-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some suspicious corner cases (see Bug#13007 and Bug#13012). (mode_line_update_needed): New function. (redisplay_internal, redisplay_window): Use it. (ensure_selected_frame): New function. (redisplay_internal, unwind_redisplay): Use it. (redisplay_internal): Move comment about buffer_shared... (buffer_shared_and_changed): ...near to its real use.
| * | * callproc.c (Fcall_process): Don't misreport vfork failure.Paul Eggert2012-11-281-0/+4
| | |
| * | * callproc.c (Fcall_process): Fix vfork portability problems.Paul Eggert2012-11-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not assume that fd[0], count, filefd, and save_environ survive vfork. Fix bug whereby wrong errno value could be reported for pipe failure. Some minor cleanups, too, as follows. Move buf and bufsize to the context where they're needed. Change new_argv to be of type char **, as this is more convenient and avoids casts. (CALLPROC_BUFFER_SIZE_MIN, CALLPROC_BUFFER_SIZE_MAX): Now local constants, not macros.
| * | merge trunkKenichi Handa2012-11-271-0/+68
| |\ \
| | * | Assume POSIX 1003.1-1988 or later for grp.h, pwd.h.Paul Eggert2012-11-261-0/+5
| | | | | | | | | | | | | | | | | | | | * dired.c (stat_uname, stat_gname): * fileio.c (Fexpand_file_name): Remove no-longer-needed casts.
| | * | Assume POSIX 1003.1-1988 or later for errno.h.Paul Eggert2012-11-261-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * | Merge from emacs-24; up to 2012-11-20T20:06:17Z!monnier@iro.umontreal.caGlenn Morris2012-11-261-0/+10
| | |\ \ | | | |/
| | | * Don't crash if internal-char-font is called on non-GUI frames.Eli Zaretskii2012-11-261-0/+5
| | | | | | | | | | | | | | | | | | | | src/fontset.c (Finternal_char_font): Return nil on non-GUI frames. (Bug#11964)
| | | * Revert recent change for Bug#8855.Paul Eggert2012-11-241-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported by Harald Hanche-Olsen in <http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00445.html> the change introduces a further bug, of creating lots of zombie processes in some cases. Further work is needed to come up with a better fix for Bug#8855.
| | | * Fix assertion violations when clicking on Info bread-crumbs.Eli Zaretskii2012-11-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | src/xdisp.c (draw_glyphs): Don't draw in mouse face if mouse highlighting on the frame was cleared. Prevents assertion violations when repeatedly clicking on the "Top" link of the "bread-crumbs" in Info buffers.
| | | * Fix ChangeLog entries for the last commit.Eli Zaretskii2012-11-241-23/+17
| | | |
| | * | * sysdep.c (sys_subshell): Don't assume pid_t fits in int.Paul Eggert2012-11-241-0/+4
| | | |
| | * | Remove HAVE_MOUSE; see ↵Ken Brown2012-11-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00403.html. * configure.ac (HAVE_MOUSE): Remove. * admin/CPP-DEFINES (HAVE_MOUSE): Remove. * msdos/sed2v2.inp (HAVE_MOUSE): Remove. * nt/config.nt (HAVE_MOUSE): Remove. * src/keyboard.c (HAVE_MOUSE): * src/frame.c (HAVE_MOUSE): Remove, and rewrite code as if HAVE_MOUSE were always defined.
| | * | Merge from emacs-24; up to 2012-11-19T11:36:02Z!yamaoka@jpl.orgGlenn Morris2012-11-231-0/+14
| | |\ \ | | | |/
| | | * Fix a race condition with glib (Bug#8855).Paul Eggert2012-11-231-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a backport from the trunk, consisting of: 2012-11-17 Eli Zaretskii <eliz@gnu.org> * nt/inc/sys/wait.h: New file, with prototype of waitpid and definitions of macros it needs. * nt/inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore. (sys_wait): Remove prototype. * nt/config.nt (HAVE_SYS_WAIT_H): Define to 1. * src/w32proc.c (create_child): Don't clip the PID of the child process to fit into an Emacs integer, as this is no longer a restriction. (waitpid): Rename from sys_wait. Emulate a Posix 'waitpid' by reaping only the process specified by PID argument, if that is positive. Use PID instead of dead_child to know which process to reap. Wait for the child to die only if WNOHANG is not in OPTIONS. (sys_select): Don't set dead_child. * src/sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion, as it is no longer needed. * src/process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions, no longer needed. (record_child_status_change): Remove the setting of record_at_most_one_child for the !WNOHANG case. 2012-11-03 Paul Eggert <eggert@cs.ucla.edu> Fix a race condition that causes Emacs to mess up glib (Bug#8855). This is a backport from the trunk. 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. * src/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. * src/process.h (Lisp_Process): New boolean member 'alive'.
| | | * Fix cursor display when several display strings follow each other.Eli Zaretskii2012-11-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | src/xdisp.c (set_cursor_from_row): Skip step 2 only if point is not between bpos_covered and bpos_max. This fixes cursor display when several display strings follow each other.
| | | * Fix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined.Eli Zaretskii2012-11-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | src/.gdbinit (pgx): If the glyph's object is a string, display the pointer to string data, rather than the value of the string object itself (which barfs under CHECK_LISP_OBJECT_TYPE).
| | | * Fix bug #12930 with vertical-motion through a display string.Eli Zaretskii2012-11-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | src/indent.c (Fvertical_motion): If the starting position is covered by a display string, return to one position before that, to avoid overshooting it inside move_it_to.
| | * | * frame.h (struct frame): Remove display_preempted memberDmitry Antipov2012-11-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since all users are dead long ago. * nsterm.h (struct x_output): Use the only dummy member. * w32menu.c (pending_menu_activation): Remove since not really used. (set_frame_menubar): Adjust user. * w32term.h (struct x_output): Drop outdated #if 0 code. (struct w32_output): Use bitfields for explicit_parent, asked_for_visible and menubar_active members. Drop unused pending_menu_activation member. * xterm.h (struct x_output): Drop outdated #if 0 code. Use bitfields for explicit_parent, asked_for_visible, has_been_visible and net_wm_state_hidden_seen members.
| * | | (no commit message)Kenichi Handa2012-11-231-6/+140
| |\ \ \ | | |/ /
| | * | Fix bug #12955 with building under MSYS Bash.Eli Zaretskii2012-11-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | src/makefile.w32-in (globals.h, gl-stamp): Use $(SWITCHCHAR) instead of a literal "/". (gl-stamp): Invoke fc.exe directly, not through cmd.
| | * | Assume POSIX 1003.1-1988 or later for dirent.h.Paul Eggert2012-11-221-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/CPP-DEFINES (HAVE_CLOSEDIR, HAVE_DIRENT_H): Remove. * admin/notes/copyright: Adjust to src/ndir.h -> nt/inc/dirent.h renaming. * configure.ac: Do not check for dirent.h or closdir. * nt/inc/dirent.h: Rename from ../src/ndir.h, with these changes: (struct dirent): Rename from struct direct. All uses changed. * nt/inc/sys/dir.h: Remove. * src/dired.c: Assume HAVE_DIRENT_H. (NAMLEN): Remove, replacing with ... (dirent_namelen): New function. All uses changed. Use the GNU macro _D_EXACT_NAMELEN if available, as it's faster than strlen. (DIRENTRY): Remove, replacing all uses with 'struct dirent'. (DIRENTRY_NONEMPTY): Remove. All callers now assume it's nonzero. * src/makefile.w32-in (DIR_H): Remove. All uses replaced with $(NT_INC)/dirent.h. ($(BLD)/w32.$(O)): Do not depend on $(SRC)/ndir.h. * src/ndir.h: Rename to ../nt/inc/dirent.h. * src/sysdep.h (closedir) [!HAVE_CLOSEDIR]: Remove. Do not include <dirent.h>; no longer needed. * src/w32.c: Include <dirent.h> rather than "ndir.h". Fixes: debbugs:12958
| | * | * xftfont.c (xftfont_open): Remove duplicate assignment.Chong Yidong2012-11-231-0/+4
| | | |
| | * | * alloc.c (Fgarbage_collect): Unblock input after clearingDmitry Antipov2012-11-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gc_in_progress to avoid note_mouse_highlight glitch with GC. * frame.h (FRAME_MOUSE_UPDATE): New macro. * msdos.c (IT_frame_up_to_date): Use it here... * w32term.c (w32_frame_up_to_date): ...here... * xterm.c (XTframe_up_to_date): ...and here... * nsterm.m (ns_frame_up_to_date): ...but not here. * lisp.h (Mouse_HLInfo): Remove mouse_face_deferred_gc member. Adjust users. * xdisp.c (message2_nolog, message3_nolog, note_mouse_highlight): Do not check whether GC is in progress.
| | * | * xdisp.c (window_buffer_changed): New function.Dmitry Antipov2012-11-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (update_menu_bar, update_tool_bar): Use it to simplify large 'if' statements. (redisplay_internal): Generalize commonly used 'tail' and 'frame' local variables.
| | * | Fix MS-Windows build following 2012-11-21T21:06:52Z!eggert@cs.ucla.edu.Eli Zaretskii2012-11-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | src/w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts with Windows system header. Fixes: debbugs:12945
| | * | Assume POSIX 1003.1-1988 or later for unistd.h.Paul Eggert2012-11-211-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * | * src/xdisp.c (fast_set_selected_frame): Rename from update_tool_bar_unwind.Stefan Monnier2012-11-211-0/+6
| | | | | | | | | | | | | | | | | | | | Make it set selected_window as well. (update_tool_bar): Use it.
| | * | Merge from emacs-24; up to 2012-11-17T22:12:47Z!eggert@cs.ucla.eduGlenn Morris2012-11-201-0/+21
| | |\ \ | | | |/
| | | * Backport: Rename cygwin_convert_path* to cygwin_convert_file_name*Daniel Colascione2012-11-201-0/+9
| | | |
| | | * Fix non-GTK builds on CygwinKen Brown2012-11-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | * src/emacs.c (main): Set the G_SLICE environment variable for all Cygwin builds, not just GTK builds. See https://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00368.html.
| | | * More fixes for bug #12878 with MS-Windows MSVC build.Eli Zaretskii2012-11-191-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/xdisp.c (start_hourglass) [HAVE_NTGUI]: Don't mix declaration of w32_note_current_window with code. (Backport from trunk.) src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) (FILE_ANY_ACCESS, CTL_CODE, FSCTL_GET_REPARSE_POINT) [_MSC_VER]: Define for the MSVC compiler. src/w32term.h (EnumSystemLocalesW) [_MSC_VER]: Add a missing semi-colon. nt/inc/stdint.h (PTRDIFF_MIN) [!__GNUC__]: Define for MSVC.
| | | * Prevent crashes on MS-Windows when w32-downcase-file-names is non-nil.Eli Zaretskii2012-11-181-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/fileio.c (Fsubstitute_in_file_name, Ffile_name_directory) (Fexpand_file_name) [DOS_NT]: Pass encoded file name to dostounix_filename. Prevents crashes down the road, because dostounix_filename assumes it gets a unibyte string. Reported by Michel de Ruiter <michel@sentient.nl>, see http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html
| | * | Conflate Qnil and Qunbound for `symbol-function'.Stefan Monnier2012-11-201-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (Fmake_symbol): Initialize `function' to Qnil. * src/lread.c (init_obarray): Set `function' fields to Qnil. * src/eval.c (Fcommandp): Ignore Qunbound. (Fautoload, eval_sub, Fapply, Ffuncall, Fmacroexpand): * src/data.c (Ffset, Ffboundp, indirect_function, Findirect_function): Test NILP rather than Qunbound. (Ffmakunbound): Set to Qnil. (Fsymbol_function): Never signal an error. (Finteractive_form): Ignore Qunbound.
| | * | Tiny adjustment around the previous redisplay change.Dmitry Antipov2012-11-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | * xdisp.c (window_outdated): New function. (text_outside_line_unchanged_p, redisplay_window): Use it. (redisplay_internal): Likewise. Fix indentation.
| | * | * eval.c (interactive_p): Remove no-longer-used decl.Paul Eggert2012-11-201-0/+4
| | | |
| | * | * xdisp.c (buffer_shared): Adjust comment.Dmitry Antipov2012-11-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | (buffer_shared_and_changed): New function. (prepare_menu_bars, redisplay_internal): Use it to decide whether all windows or frames should be updated.
| | * | Make called-interactively-p work for edebug or advised code.Stefan Monnier2012-11-191-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (called-interactively-p-functions): New var. (internal--called-interactively-p--get-frame): New macro. (called-interactively-p, interactive-p): Rewrite in Lisp. * lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): New fun. (called-interactively-p-functions): Use it. * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): New fun. (called-interactively-p-functions): Use it. * lisp/allout.el (allout-called-interactively-p): Don't assume called-interactively-p is a subr. * src/eval.c (Finteractive_p, Fcalled_interactively_p, interactive_p): Remove. (syms_of_eval): Remove corresponding defsubr. * src/bytecode.c (exec_byte_code): `interactive-p' is now a Lisp function. * test/automated/advice-tests.el (advice-tests--data): Remove. (advice-tests): Move the tests directly here instead. Add called-interactively-p tests.