aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Further adjust frame/window scrollbar width calculations.Martin Rudalics2014-01-021-0/+21
| | | | | | | | | | | | | | | | | | | | * window.c (apply_window_adjustment): Set windows_or_buffers_changed. (Fwindow_scroll_bars): Return actual scrollbar width. * xfns.c (x_set_scroll_bar_default_width): Rename wid to unit. For non-toolkit builds again use 14 as minimum width and set FRAME_CONFIG_SCROLL_BAR_WIDTH accordingly. * xterm.c (XTset_vertical_scroll_bar): Take width from WINDOW_SCROLL_BAR_AREA_WIDTH. (x_new_font): Rename wid to unit. Base calculation of new scrollbar width on toolkit used and make it analogous to that of x_set_scroll_bar_default_width. * w32fns.c (x_set_scroll_bar_default_width): Rename wid to unit. (Fx_create_frame): Call x_set_scroll_bar_default_width instead of GetSystemMetrics. * w32term.c (w32_set_vertical_scroll_bar): Take width from WINDOW_SCROLL_BAR_AREA_WIDTH. (x_new_font): Make it correspond to changes in xterm.c.
* * lisp.h (EMACS_INT): Configure based on INTPTR_MAX, not LONG_MAX.Paul Eggert2014-01-011-0/+6
| | | | | This is a cleaner way to fix the MinGW-w64 porting problem. Check for INTPTR_MAX misconfiguration.
* Fix bug #16265 with buffer caches when modifying text in indirect buffers.Eli Zaretskii2014-01-011-0/+22
| | | | | | | | | | | | | | | | | src/search.c (newline_cache_on_off, find_newline): In indirect buffers, use the newline cache of the base buffer. src/insdel.c (invalidate_buffer_caches): If BUF is an indirect buffer, invalidate the caches of its base buffer. src/indent.c (width_run_cache_on_off, compute_motion): In indirect buffers, use the width-run cache of the base buffer. src/xdisp.c (redisplay_window): When the window displays an indirect buffer, and the character widths in the display table have changed, invalidate the width-run cache of the corresponding base buffer. src/fileio.c (Finsert_file_contents): When invalidating the newline cache, consider the case of inserting into indirect buffer. src/bidi.c (bidi_paragraph_cache_on_off, bidi_find_paragraph_start): In indirect buffers, use the paragraph cache of the base buffer.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Fix last change of grow_mini_window.Martin Rudalics2013-12-311-0/+4
| | | | * window.c (grow_mini_window): Fix last change.
* * nsterm.m (windowDidResignKey:): Set mouse_moved to 0.Jan Djärv2013-12-311-0/+4
| | | | Fixes: debbugs:8421
* Minor fixes for MinGW64 build.Fabrice Popineau2013-12-311-0/+12
| | | | | | | | | | | | | | | | configure.ac (canonical, C_SWITCH_SYSTEM): Support a 64-bit MinGW64 build on MS-Windows. nt/inc/ms-w32.h (sys_kill): Fix prototype. src/w32term.c (w32_initialize): Use LCID and LOWORD. src/w32proc.c (create_child): Use pid_t for 5th argument. (IsValidLocale): Don't provide prototype for MinGW64. (Fw32_get_valid_keyboard_layouts, Fw32_get_keyboard_layout) (Fw32_set_keyboard_layout): Use HKL and HIWORD/LOWORD. src/w32heap.c (allocate_heap) [_WIN64]: Use "ull", not "i64", which MinGW64 doesn't support. src/lisp.h (EMACS_INT) [_WIN64]: Define for the MinGW64 build.
* Fall back on SetNamedSecurityInfo if SetFileSecurity fails in acl_set_file.Fabrice Popineau2013-12-311-0/+13
| | | | | | | | | | | | | src/w32.c (set_named_security_info): New function. (acl_set_file): Fall back on set_named_security_info if set_file_security fails. Fixes rare failures in backups. (g_b_init_set_named_security_info_w) (g_b_init_set_named_security_info_a): New static variables. (globals_of_w32): Initialize them to zero. (set_named_security_info): Set them to non-zero if the corresponding API is available. (SetNamedSecurityInfoW_Proc, SetNamedSecurityInfoA_Proc): New function typedefs.
* Some more fixes following pixelwise resize changes including one for Bug#16306.Martin Rudalics2013-12-311-1/+20
| | | | | | | | | | | | | | | | | * gtkutil.c (x_wm_set_size_hint): Have size hints respect value of frame_resize_pixelwise. * widget.c (pixel_to_text_size): New function. (update_wm_hints): Have size hints respect value of frame_resize_pixelwise. (EmacsFrameResize): Alway process resize requests pixelwise. * window.c (grow_mini_window): Make sure mini window is at least one line tall. * xdisp.c (display_menu_bar): Make sure menubar extends till right end of frame. * xfns.c (x_set_menu_bar_lines): Resize frame windows pixelwise. (x_set_tool_bar_lines): Calculate pixelwise. * xterm.c (x_wm_set_size_hint): Have size hints respect value of frame_resize_pixelwise.
* src/fileio.c: Silence compiler warnings.Juanma Barranquero2013-12-301-0/+5
| | | | | * fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows variables not used there.
* Fix bug #16299 with assertion violation in set-default-file-modes on Windows.Eli Zaretskii2013-12-301-0/+4
| | | | | | src/w32.c (sys_umask): New function. nt/inc/ms-w32.h (umask) [emacs]: Redirect to sys_umask.
* Fix Bug#16284.Martin Rudalics2013-12-301-0/+5
| | | | | * dispnew.c (change_frame_size_1): Take old width of root window from that window's pixel width. Bug#16284.
* Plain copy-file no longer chmods an existing destination.Paul Eggert2013-12-291-0/+17
| | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Changing Files): Document this. * etc/NEWS: Document this. * src/fileio.c (realmask): Now a static var, not a local. (barf_or_query_if_file_exists): New arg KNOWN_TO_EXIST. Remove arg STATPTR. All uses changed. (Fcopy_file): Do not alter permissions of existing destinations, unless PRESERVE-PERMISSIONS (renamed from PRESERVE-EXTENDED-ATTRIBUTES) is non-nil. Avoid race when testing for existing destinations and for when input and output files are the same. If changing the group fails, adjust both default and preserved permissions so that access is not granted to the wrong group. (Fset_default_file_modes, init_fileio): Update realmask. (Fdefault_file_modes): Use realmask instead of calling umask. Fixes: debbugs:16133
* Fix pipe bug with OS X emacs --daemon (Bug#16262).Paul Eggert2013-12-281-0/+6
| | | | | * emacs.c (main) [DAEMON_MUST_EXEC]: Clear the close-on-exec flags on the daemon pipe ends before execing.
* Fix bug #14739 with creation of GUI frames from TTY session on Windows.Eli Zaretskii2013-12-281-0/+5
| | | | | | | | src/w32fns.c (Fx_create_frame): Error out if called from a TTY session. lisp/frame.el (window-system-for-display): Don't allow to create a GUI frame from a -nw session on MS-Windows.
* ChangeLog fixes for font-lockingGlenn Morris2013-12-271-3/+3
|
* Fix ChangeLog typos.Juanma Barranquero2013-12-281-9/+9
|
* Shell completion for filenames from current directory, related docs.Jarek Czekalski2013-12-271-0/+4
| | | | | | | | | | | | * lisp/shell.el Shell completion now matches executable filenames from the current buffer's directory, on systems in which this behaviour is the default (windows-nt, ms-dos). * src/callproc.c (Vexec_path): Document that exec-directory is in it. * doc/emacs/mini.texi (Completion Options): Add a link to Shell Options. * doc/emacs/misc.texi (Shell Mode): Move documentation of shell-completion-fignore from Shell Mode to Shell Options. Fixes: debbugs:15461
* Enable ns-use-srgb-colorspace by defaultJulien Danjou2013-12-271-0/+5
| | | | | | | | See thread https://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00706.html * nsterm.m (syms_of_nsterm): Enable ns-use-srgb-colorspace by default.
* More doc updatesChong Yidong2013-12-271-1/+5
| | | | | | | | | | | | | * commands.texi (Reading One Event): Mention keyboard coding. * functions.texi (Function Cells): * eval.texi (Function Indirection): Update for the fact that symbol-function no longer signals an error. * keymaps.texi (Translation Keymaps, Translation Keymaps): * nonascii.texi (Terminal I/O Encoding): Copyedits. * data.c (Fsymbol_function): Doc fix.
* Some more tinkering with Bug#16051.Martin Rudalics2013-12-261-0/+17
| | | | | | | | | | | | | | | | * window.c (resize_frame_windows): Don't let the size of the root window drop below the frame's default character size. Never ever delete any subwindows - let the window manager do the clipping. * w32fns.c (x_set_tool_bar_lines): Rewrite calculation of number of toolbar lines needed when they exceed the height of the root window. (unwind_create_frame_1): New function. (Fx_create_frame): Generally inhibit calling the window configuration change hook here. Remove extra call to change_frame_size - it's not needed when we don't run the configuration change hook.
* Fix core dumps with gcc -fsanitize=address and GNU/Linux.Paul Eggert2013-12-261-0/+14
| | | | | | | | | | | | | | | | | On my Fedora 19 platform the core dumps were so big that my desktop became nearly catatonic. * configure.ac: Check whether addresses are sanitized. (CANNOT_DUMP): Warn if addresses are sanitized and not CANNOT_DUMP. (DOUG_LEA_MALLOC): Do not define if addresses are sanitized. (SYSTEM_MALLOC): Define if addresses are sanitized. * src/alloc.c (no_sanitize_memcpy) [MAX_SAVE_STACK > 0]: New function. (Fgarbage_collect) [MAX_SAVE_STACK > 0]: Use it. (USE_ALIGNED_MALLOC): Do not define if addresses are sanitized. (mark_memory): Use ATTRIBUTE_NO_SANITIZE_ADDRESS rather than a clang-only syntax. * src/conf_post.h (__has_feature): New macro, if not already defined. (ADDRESS_SANITIZER, ADDRESS_SANITIZER_WORKAROUND) (ATTRIBUTE_NO_SANITIZE_ADDRESS): New macros.
* Fix bug #16252 with 'mailto:' documents passed to w32-shell-execute.Eli Zaretskii2013-12-251-0/+5
| | | | | src/w32fns.c (Fw32_shell_execute): Make DOCUMENT absolute only if it is a file name.
* Doc updates for several Emacs 24.4 changes.Chong Yidong2013-12-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Event Input Misc): Document new arg to input-pending-p. * doc/lispref/display.texi (Font Selection): Tweak example. * doc/lispref/keymaps.texi (Active Keymaps): Re-organize the text. (Searching Keymaps): Rewrite the pseudo-code for 24.4 changes. (Controlling Active Maps): Note that set-transient-map uses overriding-terminal-local-map. * doc/lispref/nonascii.texi (Specifying Coding Systems): Don't refer to emacs-mule-dos. (Lisp and Coding Systems): Describe emacs-mule return value in modern terms. * doc/lispref/tips.texi (Coding Conventions): Tweak the coding system tip; Emacs now uses utf-8 by default for Emacs Lisp source files. * doc/emacs/glossary.texi (Glossary): Define MULE in modern terms. * src/keyboard.c (Voverriding_terminal_local_map): (Voverriding_local_map): Doc fix. * src/keymap.c (Vemulation_mode_map_alists): Doc fix.
* Minor fixes in w32-shell-execute.Eli Zaretskii2013-12-241-0/+7
| | | | | | | src/w32fns.c (Fw32_shell_execute): Ensure DOCUMENT is an absolute file name when it is submitted to ShellExecute. Simplify code. Don't test DOCUMENT for being a string, as that is enforced by CHECK_STRING. Doc fix.
* Last portion of fix for bug #16051 with redisplay loops.Eli Zaretskii2013-12-231-0/+3
| | | | | | src/xdisp.c (redisplay_tool_bar): Modify the tool-bar-lines frame parameter only when the new size is different from the old one, and the new size can be achieved given the frame height.
* Fix most of bug #16051 with redisplay loops when resizing tool-bar.Eli Zaretskii2013-12-231-0/+8
| | | | | | | | src/xdisp.c (tool_bar_height): Use WINDOW_PIXEL_WIDTH to set up the iterator X limits, not FRAME_TOTAL_COLS, for consistency with what redisplay_tool_bar does. Improve and fix commentary. (hscroll_window_tree): Don't assume w->cursor.vpos is within the limits of the glyph matrices.
* * src/conf_post.h: Use unsigned it for bool_bf if GNUSTEP.Jan Djärv2013-12-231-0/+4
| | | | Fixes: debbugs:16210
* Some documenting of load-prefer-newerGlenn Morris2013-12-221-0/+4
| | | | | | | * doc/lispref/loading.texi (How Programs Do Loading, Load Suffixes): Mention `load-prefer-newer'. * src/lread.c (Fload): Mention load-prefer-newer in doc.
* Handle Bug#16207 by being more restrictive when running hooks.Martin Rudalics2013-12-221-0/+8
| | | | | | | * window.c (unwind_change_frame): New function. (Fset_window_configuration): Don't run configuration change hook while the frame configuration is unsafe. Call select_window twice.
* * src/lread.c (syms_of_lread) <load_prefer_newer>: Doc fix.Xue Fuqiao2013-12-221-0/+4
|
* Changelog for previous checkin, missed to mark.Jan Djärv2013-12-211-0/+10
|
* Fix compilation warning on MS-Windows in my_png_error.Eli Zaretskii2013-12-211-0/+6
| | | | | | src/image.c (fn_png_longjmp) [WINDOWSNT]: Mark the function as having the PNG_NORETURN attribute, to avoid compiler warning in my_png_error.
* Remove fringe background extension code on W32.YAMAMOTO Mitsuharu2013-12-211-0/+11
| | | | | | | | | | | * w32term.h (struct scroll_bar): Remove member `fringe_extended_p'. * w32term.c (w32_draw_fringe_bitmap, x_scroll_run): Remove code for fringe background extension. (x_scroll_bar_create): Remove variables `sb_left' and `sb_width', because they are now always the same as `left' and `width', respectively. Remove code for the case that `width' and `sb_width' are different.
* Some more fixes for pixelwise resizing.Martin Rudalics2013-12-201-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove scroll_bar_actual_width from frames. * frame.h (struct frame): Remove scroll_bar_actual_width slot. * frame.c (Fscroll_bar_width): Return scroll bar area width. (x_figure_window_size): * nsterm.m (x_set_window_size): * widget.c (set_frame_size): * w32term.c (x_set_window_size): * xterm.c (x_set_window_size, x_set_window_size_1): Don't set scroll_bar_actual_width. Convert scroll_bar members to integers on Windows. * w32term.h (struct scroll_bar): Convert top, left, width, height, start, end and dragging to integers. * w32fns.c (w32_createscrollbar): Remove XINT conversions for scroll_bar members. * w32term.c (w32_set_scroll_bar_thumb) (w32_scroll_bar_handle_click): Remove XINT conversions for scroll_bar members. Treat bar->dragging as integer. (x_scroll_bar_create): Call ALLOCATE_PSEUDOVECTOR with "top" as first element. Remove XINT conversions for scroll_bar members. (w32_set_vertical_scroll_bar, x_scroll_bar_report_motion): Remove XINT conversions for scroll_bar members. Fix assignment for new window total sizes. * window.c (Fwindow_resize_apply_total): Assign values for minibuffer window. * window.el (window--pixel-to-size): Remove function. (window--pixel-to-total-1, window--pixel-to-total): Fix calculation of new total sizes.
* Add/fix docs for add-face-text-propertyChong Yidong2013-12-201-0/+5
| | | | | | | | | * doc/lispref/text.texi (Changing Properties): Improve documentation for add-face-text-property. (Special Properties): Mention add-face-text-property. * src/textprop.c (Fadd_face_text_property): Doc fix. Rename `appendp' argument to `append'.
* Fix bug #16192 with highlight of display margins when region is activeEli Zaretskii2013-12-191-0/+4
| | | | | src/xdisp.c (extend_face_to_end_of_line): Use default face, not the current text face, for extending the face of the display margins.
* Fix bug #16190 with documentation of capitalize-word.Eli Zaretskii2013-12-191-0/+5
| | | | | src/casefiddle.c (Fupcase_word, Fdowncase_word, Fcapitalize_word): Doc fix.
* Make NS port use the normal dnd functions.Jan Djärv2013-12-191-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/term/ns-win.el: Require dnd. (global-map): Remove drag items. (ns-insert-text, ns-set-foreground-at-mouse) (ns-set-background-at-mouse): Remove (ns-drag-n-drop, ns-drag-n-drop-other-frame) (ns-drag-n-drop-as-text, ns-drag-n-drop-as-text-other-frame): New functions. * src/nsterm.h (KEY_NS_DRAG_FILE, KEY_NS_DRAG_COLOR, KEY_NS_DRAG_TEXT): Remove. * src/nsterm.m (Qfile, Qurl): New. (EV_MODIFIERS2): New macro. (EV_MODIFIERS): Use EV_MODIFIERS2. (ns_term_init): Remove font and color from DND, does not work on newer OSX, and other ports don't have them. (performDragOperation:): Handle modifiers used during drag. Use DRAG_N_DROP_EVENT instead of NS specific events. Remove global Lisp variables used to communicate with ns-win.el. Remove font and color handling. (syms_of_nsterm): Defsym Qfile and Qurl. Fixes: debbugs:8051
* Redo size constraint for NS so frames can span screens.Jan Djärv2013-12-191-0/+11
| | | | | | | | | | | * nsterm.h (ns_output): Remove dont_constrain. * nsterm.m (NSTRACE_SIZE, NSTRACE_RECT): New macros. (ns_constrain_all_frames, x_set_offset): Remove assignment to dont_constrain. (updateFrameSize:, windowWillResize:toSize:): Add trace. (constrainFrameRect): Remove special case nr_screens == 1. Don't constrain size to size of view.
* Generate HORIZ_WHEEL_EVENT.Jan Djärv2013-12-191-0/+4
| | | | * nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.
* Minor fixes for recent openp changes.Paul Eggert2013-12-181-0/+9
| | | | | | | | * lisp.h (GCPRO7): New macro. * lread.c (openp): Use bool for boolean; all callers changed. Protect save_string from GC. Don't assume that file descriptors are nonzero. Redo save_mtime comparison to avoid bogus GCC warning about uninitialized variable.
* Avoid compiler warnings in w32fns.c:emacs_abort.Eli Zaretskii2013-12-181-0/+5
| | | | | src/w32fns.c (emacs_abort): Use intptr_t as argument of INT_BUFSIZE_BOUND, to avoid compiler warnings.
* Add load-prefer-newer option, to load .el if newer than .elcGlenn Morris2013-12-171-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | * src/lread.c (Fload): Pass load_prefer_newer to openp. Don't bother checking mtime if openp already did it. (openp): Add `newer' argument, to check all suffixes and find the newest file. (syms_of_lread) <load_prefer_newer>: New option. * src/callproc.c (call_process): * src/charset.c (load_charset_map_from_file): * src/emacs.c (init_cmdargs): * src/image.c (x_create_bitmap_from_file, x_find_image_file): * src/lisp.h (openp): * lread.c (Flocate_file_internal): * src/process.c (Fformat_network_address): * src/sound.c (Fplay_sound_internal): * src/w32.c (check_windows_init_file): * src/w32proc.c (sys_spawnve): Update for new arg spec of openp. * lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t. * etc/NEWS: Mention this. Fixes: debbugs:2061
* * src/emacs.c (standard_args) [HAVE_NS]: Remove -disable-font-backend.Glenn Morris2013-12-171-0/+4
|
* Fix minor problems in Windows emulation of getloadavg.Eli Zaretskii2013-12-171-0/+3
| | | | | src/w32.c (getloadavg): Don't index samples[] array with negative indices. Recover from wall-clock time being set backwards.
* Fix some warnings in w32 specific code.Eli Zaretskii2013-12-171-0/+20
| | | | | | | | | | | | | | | src/w32term.c (w32_initialize): Declare the argument of set_user_model as const. src/w32menu.c <MessageBoxW_Proc>: Fix argument declarations. (w32_menu_show): Constify some arguments passed to MessageBox. src/w32uniscribe.c (uniscribe_font_driver): Use LISP_INITIALLY_ZERO to initialize Lisp objects. src/w32font.c (w32font_driver): Use LISP_INITIALLY_ZERO to initialize Lisp objects. src/frame.c (x_set_frame_parameters) [HAVE_X_WINDOWS]: Declare and use variables used only on X under that condition. src/fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows variables not used there.
* Fix problems with CANNOT_DUMP and EMACSLOADPATH.Paul Eggert2013-12-161-0/+5
| | | | | | | | * leim/Makefile.in (RUN_EMACS): * lisp/Makefile.in (emacs): Add lisp src to EMACSLOADPATH. * lisp/loadup.el: Check for src/bootstrap-emacs only when Emacs can dump. Expand dir too, in case it's relative. * src/lread.c (init_lread): If CANNOT_DUMP, we can't be dumping.
* Fix compilation errors introduced by changes in extend_face_to_end_of_line.Eli Zaretskii2013-12-161-0/+2
| | | | | | | src/xdisp.c (extend_face_to_end_of_line): Don't reference tool_bar_window in GTK and NS builds, they don't have this member of struct frame. Fixes: debbugs:16165
* A better fix for bug #16148 and related issues.Eli Zaretskii2013-12-161-0/+9
| | | | | | | | src/xdisp.c (Fmove_point_visually): Fix subtle bugs in the fallback code, revealed in presence of R2L characters, character compositions, and display vectors. src/dispextern.h (struct composition_it): Correct a comment for the 'width' member.