aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix error reported by Angelo Graziosi <angelo.graziosi@alice.it> inDmitry Antipov2014-07-241-0/+9
| | | | | | | | | | | | | | | | <http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00274.html> and complete previous change. * frame.c (adjust_frame_height): New function. (Fset_frame_height, Fset_frame_size): Use it. (x_set_frame_parameters): Take frame top margin into account.
* | * frame.c (Fset_frame_height): Take frame top margin into account.Dmitry Antipov2014-07-231-0/+6
| | | | | | | | | | Incorrect behavior was reported by Martin Rudalics <rudalics@gmx.at> in <http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00258.html>
* | * xterm.h (struct x_output) [USE_LUCID && USE_TOOLKIT_SCROLL_BARS]:Dmitry Antipov2014-07-221-0/+3
| | | | | | | | | | Define scroll_bar_top_shadow_pixel and scroll_bar_bottom_shadow_pixel as such. All related users changed.
* | * xterm.h (struct x_output) [USE_X_TOOLKIT || USE_GTK]: DefineDmitry Antipov2014-07-221-0/+11
| | | | | | | | | | | | | | | | | | | | menubar_height as such. Tweak comment. (FRAME_MENUBAR_HEIGHT) [!USE_X_TOOLKIT && !USE_GTK]: No-op. * xterm.c (handle_one_xevent): * gtkutil.c (xg_event_is_for_menubar): * xfns.c (x_window) [USE_X_TOOLKIT]: * xmenu.c (set_frame_menubar, free_frame_menubar): Prefer to use FRAME_MENUBAR_HEIGHT.
* | * src/frame.c (Fframe_parameters): Always report frame height withoutDmitry Antipov2014-07-211-0/+5
| | | | | | | | | | menu and tool bar lines. * etc/TODO: remove frame height remark.
* | Merge from emacs-24; up to 2014-06-25T10:17:41Z!rgm@gnu.orgGlenn Morris2014-07-211-0/+34
|\ \ | |/
| * * macfont.h (macfont_update_antialias_threshold): Declare.Jan Djärv2014-07-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | * macfont.m (macfont_update_antialias_threshold): Remove static. * nsterm.h (EmacsApp): Add antialiasThresholdDidChange. * nsterm.m (applicationDidFinishLaunching:): Call antialiasThresholdDidChange, register for antialias changes. (antialiasThresholdDidChange:): New method for EmacsApp. Fixes: debbugs:17534
| * Fix src/ChangeLog entry of last commit.Eli Zaretskii2014-07-171-1/+0
| |
| * Fix setting up coding-systems for clipboard access on MS-Windows and MS-DOS.Eli Zaretskii2014-07-171-0/+9
| | | | | | | | | | | | | | | | | | src/w32select.c (setup_windows_coding_system): Apply CODING_ANNOTATION_MASK to the common_flags member of struct coding_system. Reported by Martin Rudalics <rudalics@gmx.at>. src/w16select.c (Fw16_get_clipboard_data): Apply CODING_ANNOTATION_MASK to the common_flags member of struct coding_system.
| * Fix assertion violation when restoring hscrolled window configurations.Eli Zaretskii2014-07-171-0/+3
| | | | | | | | | | | | src/xdisp.c (hscroll_window_tree): Don't try hscrolling windows whose cursor row has zero buffer position as their start position. Reported by Martin Rudalics <rudalics@gmx.at>.
| * Fix part of bug #18035 with overlay strings on invisible text.Eli Zaretskii2014-07-171-0/+7
| | | | | | | | | | | | | | src/xdisp.c (init_iterator): Initialize it->stop_charpos to the buffer position where we are to start the iteration. (handle_invisible_prop): Record in it->stop_charpos the position where the invisible text ends.
| * Fix bug #18036 with infloop in redisplay with huge fringes.Eli Zaretskii2014-07-161-0/+6
| | | | | | | | | | | | src/xdisp.c (move_it_vertically_backward, move_it_by_lines): Prevent infinite looping in redisplay when display lines don't have enough space to display even a single character.
* | * frame.h (struct frame) [USE_X_TOOLKIT]: New member shell_position.Dmitry Antipov2014-07-201-0/+9
| | | | | | | | | | | | | | | | * xfns.c (x_window): Use it to allow xfree later. (x_encode_text): Drop 3rd arg; unused. Tweak comment and adjust users where appropriate. Use bool for booleans and remove redundant checks. (Fx_backspace_delete_keys_p): Use XkbFreeKeyboard; explain why. * xterm.c (x_free_frame_resources): Free shell_position.
* | 2014-07-19 Kenichi Handa <handa@gnu.org>Kenichi Handa2014-07-201-0/+10
| | | | | | | | | | | | | | | | | | | | * xfaces.c (realize_x_face): Call font_load_for_lface with no mandatory font spec (Bug#17973). 2014-07-19 Stefan Monnier <monnier@iro.umontreal.ca> * font.c (font_score): Return the worst score if the size of ENTITY is wrong by more than a factor 2 (Bug#17973).
* | Prefer 'x_display_info *' to 'Display *' in X selection code.Dmitry Antipov2014-07-181-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps to avoid unneeded calls to x_display_info_for_display. * xterm.h (struct selection_input_event): Record 'x_display_info *' instead of 'Display *'. (SELECTION_EVENT_DPYINFO): New macro. (SELECTION_EVENT_DISPLAY): Now inline function to prohibit using it as an lvalue. Mention this in comment. * xterm.c (handle_one_xevent): Use SELECTION_EVENT_DPYINFO. * xselect.c (x_get_window_property_as_lisp_data, x_atom_to_symbol) (selection_data_to_lisp_data, receive_incremental_selection): Convert to use 'x_display_info *'. Adjust users where appropriate. (lisp_data_to_selection_data): Likewise. Also pass 'struct selection data *' as last arg to not return values in args. (unexpect_property_change): Use common removal technique.
* | * frame.c (frame_unspecified_color): New functionDmitry Antipov2014-07-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | refactored out from ... (Fframe_parameters, Fframe_parameter): ... adjusted users. (x_fullscreen_adjust, set_frame_param): Move Windows-specific function to ... * w32term.c (x_fullscreen_adjust, set_frame_param): ... static here. * frame.h (x_fullscreen_adjust) [HAVE_NTGUI]: * lisp.h (set_frame_param): Remove prototype. * xterm.c (x_display_pixel_width, x_display_pixel_height): Now ... * xterm.h (x_display_pixel_width, x_display_pixel_height): ... inlined from here.
* | * data.c (wrong_choice): Not static any more.Dmitry Antipov2014-07-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp.h (wrong_choice): Add prototype. * frame.h (struct frame) [USE_X_TOOLKIT || HAVE_NTGUI]: Declare namebuf as such. Tweak comment. [USE_GTK]: Likewise for tool_bar_position. (fset_tool_bar_position) [USE_GTK]: Ditto. (FRAME_TOOL_BAR_POSITION): New macro. * frame.c (x_report_frame_params): * gtkutil.c (update_frame_tool_bar): * xfns.c (Fx_create_frame): Use it. (x_set_tool_bar_position): Add meaningful diagnostic messages.
* | * print.c (print_preprocess): Adjust to match changedDmitry Antipov2014-07-171-0/+5
| | | | | | | | sub char-table structure and avoid crash (Bug#18038).
* | Merge from emacs-24; up to 2014-06-23T06:25:47Z!rgm@gnu.orgGlenn Morris2014-07-161-0/+5
|\ \ | |/
| * Fix bug #17986 with infloop in redisplay when default-directory is nil.Eli Zaretskii2014-07-131-0/+5
| | | | | | | | | | | | | | | | | | src/xdisp.c (decode_mode_spec): Call file-remote-p on the current buffer's default-directory only if it is a string. lisp/bindings.el (mode-line-remote): If default-directory is not a string, don't call file-remote-p on it; instead state in the help-echo that it is nil.
* | * frame.h (enum fullscreen_type) [HAVE_WINDOW_SYSTEM]: Use more naturalDmitry Antipov2014-07-161-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | values. Add comment. (struct frame): Re-arrange layout to avoid extra padding and use bit fields for output_method, want_fullscreen and vertical_scroll_bar_type. (FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS) (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT) (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT) [!HAVE_WINDOW_SYSTEM]: Define as no-ops because there are no scroll bars anyway. * frame.c (make_frame, make_terminal_frame, make_initial_frame): Adjust users. * font.c (fset_font_data) [HAVE_XFT || HAVE_FREETYPE]: Add convenient setter. (font_put_frame_data, font_get_frame_data): Use it.
* | More precise control over values of some buffer-local variables.Dmitry Antipov2014-07-161-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * keyboard.c (Qvertical_scroll_bar): * frame.c (Qleft, Qright): Move to ... * buffer.c (Qleft, Qright, Qvertical_scroll_bar): ... here. * buffer.c (Qchoice, Qrange, Qoverwrite_mode, Qfraction): New symbols. (syms_of_buffer): DEFSYM all of the above, attach special properties. Use special symbols to DEFVAR_PER_BUFFER overwrite-mode, vertical-scroll-bar, scroll-up-aggressively and scroll-down-aggressively. * buffer.h (Qchoice, Qrange, Qleft, Qright, Qvertical_scroll_bar): Add declarations. * nsfns.m, frame.h (Qleft, Qright): * nsterm.m (Qleft): Remove declarations. * gtkutil.c (toplevel): Include buffer.h. * data.c (wrong_choice, wrong_range): New functions. (store_symval_forwarding): Handle special properties of buffer-local variables and use functions from the above to signal error, if any.
* | Revert 2014-07-16T04:11:08Z!ueno@gnu.org and fix XCHAR2B_BYTE[12] in nsgui.h ↵Daiki Ueno2014-07-161-12/+5
| | | | | | | | | | | | | | | | only * nsgui.h (XCHAR2B_BYTE1): Add missing parentheses around pointer argument, before dereferencing. (XCHAR2B_BYTE2): Likewise.
* | Move back the XChar2b definition to w32gui.h and nsgui.hDaiki Ueno2014-07-161-4/+4
| | | | | | | | | | Fix the last change. XChar2b still needs to be defined platform dependently, to match with the argument types of drawing functions.
* | Consolidate XChar2b macros for the X, W32, and NSDaiki Ueno2014-07-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Suggested by Jan Djärv in: https://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00203.html * w32gui.h (XChar2b, STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Move the fallback definitions to dispextern.h. * nsgui.h (XChar2b, STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Likewise. Share the same definition with W32. * xterm.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Move to ... * dispextern.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): ... here for the consistency with W32 and NS.
* | * regex.c (re_search_2): Use ssize_t to avoid integer overflow.Dmitry Antipov2014-07-151-0/+2
| |
* | * lwlib/lwlib.h (toplevel): Use unsigned int for LWLIB_ID.Dmitry Antipov2014-07-151-0/+8
| | | | | | | | | | | | | | | | * src/xmenu.c (toplevel): Use LWLIB_ID for next_menubar_widget_id. (pop_down_menu) [USE_X_TOOLKIT]: Accept integer arg. (create_and_show_popup_menu, create_and_show_dialog) [USE_X_TOOLKIT]: Use record_unwind_protect_int and avoid consing. (syms_of_xmenu) [USE_X_TOOLKIT]: Declare WIDGET_ID_TICK_START.
* | Use binary-io module, O_BINARY, and "b" flag.Paul Eggert2014-07-141-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add binary-io. It was already present implicitly; this just makes the dependence explicit. * lib-src/etags.c, lib-src/hexl.c, lib-src/make-docfile.c: Include binary-io.h instead of fcntl.h and/or io.h. (main): Use set_binary_mode or SET_BINARY in place of handcrafted code. * lib-src/etags.c (main) [DOS_NT]: * lib-src/movemail.c (main) [WINDOWSNT]: Don't mess with _fmode. * lib-src/etags.c (main, process_file_name, analyse_regex): Use fopen/popen's "b" flag instead. * lib-src/movemail.c (main, popmail): Use open/lk_open/mkostemp's O_BINARY instead. * src/callproc.c (create_temp_file): Use mkostemp's O_BINARY flag. * src/emacs.c [MSDOS]: * src/emacs.c (main) [DOS_NT]: Don't mess with _fmode. (main) [MSDOS]: Use SET_BINARY instead of setmode. * src/minibuf.c: Include binary-io.h instead of fcntl.h. (read_minibuf_noninteractive): Use set_binary_mode instead of handcrafted code. Don't call emacs_set_tty if emacs_get_tty failed. * src/sysdep.c, src/systty.h (emacs_get_tty): Return int, not void. * src/sysdep.c (emacs_open, emacs_pipe): Use O_BINARY. * src/w32.c (pipe2): Adjust eassert to include O_BINARY. Fixes: debbugs:18006
* | * macros.c (Fstart_kbd_macro): Avoid need for overflow check.Paul Eggert2014-07-141-1/+1
| |
* | * macros.c (Fstart_kbd_macro): Simplify.Paul Eggert2014-07-141-0/+6
| | | | | | | | | | This works around a GCC compiler bug when Emacs is configured with --enable-gcc-warnings.
* | src/ChangeLog: Fix a typo in a recently added entry.Eli Zaretskii2014-07-141-1/+1
| |
* | * term.c (tty_menu_add_pane, tty_menu_add_selection):Dmitry Antipov2014-07-141-0/+4
| | | | | | | | | | Use menu_item_width. (tty_menu_show): Simplify because ty_menu_create never return NULL.
* | * lisp.h (CHECK_VECTOR_OR_STRING): Return number of elementsDmitry Antipov2014-07-141-0/+9
| | | | | | | | | | | | | | | | or characters in string, respectively. Add comment. * fringe.c (Fdefine_fringe_bitmap): * fns.c (Fsubstring, substring_both): Use it. * keymap.c (Fdefine_key, Flookup_key): * macros.c (Fstart_kbd_macro): Likewise. Avoid call to Flength.
* | Improve behavior of 'bzr up; cd src; make -k'.Paul Eggert2014-07-131-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (ACLOCAL_INPUTS): Add all m4/*.m4 files. * src/Makefile.in (top_srcdir): New var. (ntsource, lispsource, ALL_CFLAGS, gl-stamp, emacs.res): Use '$(top_srcdir)' instead of '$(srcdir)/..'; its expansion is a bit shorter. (../config.status): Actually build config.status instead of just complaining. (ACLOCAL_INPUTS, AUTOCONF_INPUTS): New macros, copied and relocated from ../Makefile.in. ($(top_srcdir)/aclocal.m4, $(top_srcdir)/configure, config.in) (../config.status, Makefile): New dependencies and rules, copied with relocation from ../Makefile.in. This should be more likely to rebuild the build machinery properly if you do a 'make' in the src directory.
* | Merge from emacs-24; up to 2014-06-22T05:00:14Z!dmantipov@yandex.ruGlenn Morris2014-07-121-0/+10
|\ \ | |/
| * Attempt to fix bug #17962 with SIGSEGV in display_line.Eli Zaretskii2014-07-121-0/+3
| | | | | | | | src/xdisp.c (display_line): Don't call FETCH_BYTE with argument less than 1.
| * Document the behavior of file selection dialogs on Windows 7 (bug #17950).Eli Zaretskii2014-07-121-0/+9
| | | | | | | | | | | | | | | | | | | | etc/PROBLEMS: Mention the problem from bug #17950. src/w32fns.c (Fx_file_dialog): Mention in the doc string the behavior on Windows 7 and later when the function is repeatedly invoked with the same value of DIR. src/xfns.c (Fx_file_dialog) [USE_MOTIF, USE_GTK]: Update the doc string to match the one in w32fns.c.
* | Minor fix for read_minibuf_noninteractive on MS-Windows.Eli Zaretskii2014-07-121-0/+5
| | | | | | | | | | | | | | src/minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Switch stdin to binary mode only if it is connected to a terminal. Fixes: debbugs:17839
* | Coalesce extern decls.Paul Eggert2014-07-111-0/+8
| | | | | | | | | | | | | | * minibuf.c (emacs_get_tty, emacs_set_tty, suppress_echo_on_tty): * sysdep.c (emacs_get_tty, emacs_set_tty): Move duplicate extern decls from here ... * systty.h: ... to here, so that there's just one copy.
* | Add ifdef NS_IMPL_COCOA aound OSX version check (for clang)Jan Djärv2014-07-111-0/+6
| | | | | | | | | | | | * nsfns.m (Fns_popup_font_panel): Ditto. * nsterm.m (changeFont:): Add ifdef NS_IMPL_COCOA.
* | Fix reading input without echoing on MS-Windows.Eli Zaretskii2014-07-111-0/+1
| | | | | | | | | | | | | | src/minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Switch stdin to binary mode when not echoing input. Fixes: debbugs:17839
* | Implement echo suppression in non-interactive mode for MS-Windows.Eli Zaretskii2014-07-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | src/minibuf.c (read_minibuf_noninteractive): Finish reading on '\r', not only on '\n'. src/sysdep.c (emacs_get_tty, emacs_set_tty, suppress_echo_on_tty) [DOS_NT]: Implement for WINDOWSNT. src/systty.h (struct emacs_tty) [DOS_NT]: The struct member is now unsigned. Fixes: debbugs:17839
* | * sysdep.c (suppress_echo_on_tty): New function.Michael Albinus2014-07-111-0/+5
| | | | | | | | * minibuf.c (read_minibuf_noninteractive): Use it.
* | * src/alloc.c (Fmemory_info) [HAVE_LINUX_SYSINFO]: Return nil ifDmitry Antipov2014-07-111-0/+5
| | | | | | | | | | | | | | sysinfo failed. Adjust docstring. * doc/lispref/internals.texi (Garbage Collection): Mention memory-info. * lisp/files.el (out-of-memory-warning-percentage): New defcustom. (warn-maybe-out-of-memory): Use it.
* | Implement memory-info for MS-DOS.Eli Zaretskii2014-07-111-0/+7
| | | | | | | | | | | | | | | | src/dosfns.c (dos_memory_info): New function. src/dosfns.h (dos_memory_info): Add prototype. src/alloc.c (Fmemory_info) [MSDOS]: Call dos_memory_info. src/vm-limit.c (get_lim_data) [MSDOS]: Call dos_memory_info, instead of doing some of its job.
* | Temporary fix for the MS-Windows build broken by last commit.Eli Zaretskii2014-07-111-0/+5
| | | | | | | | | | | | | | src/minibuf.c (read_minibuf_noninteractive) [WINDOWSNT]: Don't reference termios structure members. Fixes: debbugs:17839
* | Hide password in batch modeMichael Albinus2014-07-111-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/minibuf.texi (Intro to Minibuffers, Reading a Password): Password hiding is available in batch mode, do not mention it in the exclusion list. Mention `read-hide-char'. * lisp/subr.el (read-passwd): Use `read-hide-char' if non-nil. Bind it when calling `read-string'. * src/minibuf.c (top): Include systty.h. Declare external emacs_get_tty and emacs_set_tty. (Vread_hide_char): New lisp variable. (read_minibuf_noninteractive): Hide characters with Vread_hide_char if it is a character. * src/sysdep.c (emacs_get_tty, emacs_set_tty): Make them externally visible. Fixes: debbugs:17839
* | Implement memory-info for MS-Windows.Eli Zaretskii2014-07-101-0/+7
| | | | | | | | | | | | src/w32.c (w32_memory_info): New function. src/w32.h (w32_memory_info): Prototype it. src/alloc.c (Fmemory_info) [WINDOWSNT]: Call it.
* | * configure.ac: Check whether sys/sysinfo.h providesDmitry Antipov2014-07-101-0/+2
| | | | | | | | | | | | | | Linux 'sysinfo' function and 'struct sysinfo' type. * src/alloc.c (Fmemory_info): New function. * lisp/files.el (warn-maybe-out-of-memory): New function. (find-file-noselect): Use it.
* | * coding.h (struct coding_system): Remove 'error_positions' (unused)Dmitry Antipov2014-07-101-0/+11
| | | | | | | | | | | | | | | | | | | | and 'errors' (set but unused) fields. Use bitfields for 'eol_seen', 'mode', 'common_flags' and 'result' fields, adjust layout to avoid extra padding and shrink struct coding_system by 56 bytes (x86_64). * coding.c (decode_coding_utf_8, decode_coding_utf_16) (decode_coding_emacs_mule, decode_coding_iso_2022, decode_coding_sjis) (decode_coding_big5, decode_coding_charset, decode_coding) (encode_coding): Adjust users.