summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix minor problems found by static checking.Paul Eggert2013-08-269-26/+47
| | | | | | | | | | | | | | | * image.c (XGetPixel, XPutPixel) [HAVE_NS]: Now static. (expect): Avoid nested-if warning. (x_build_heuristic_mask) [HAVE_NS]: Avoid unused-var warning. * nsmenu.m (fillWithWidgetValue:): Avoid type warning. * nsterm.h, nsterm.m (ns_select): * xgselect.c, xgselect.h (xg_select): Adjust signature to better match pselect's. * nsterm.m (ns_select): Don't set *TIMEOUT, since pselect doesn't. * regex.c (whitespace_regexp): Now const_re_char *, to avoid diagnostic about assigning const char * to it. * xfaces.c (x_display_info) [HAVE_NS]: Remove; unused.
* * src/lread.c (substitute_object_recurse): Handle hash-tables as well.Stefan Monnier2013-08-262-23/+28
| | | | Fixes: debbugs:15190
* Fix unlikely core dump in init_tty, and simplify terminfo case.Paul Eggert2013-08-263-16/+34
| | | | | | | | | | | | | * term.c (init_tty) [TERMINFO]: Fix check for buffer overrun. The old version incorrectly dumped core if malloc returned a buffer containing only non-NUL bytes. (init_tty): Do not allocate or free termcap buffers; the struct does that for us now. * termchar.h (TERMCAP_BUFFER_SIZE) [!TERMINFO]: New constant. (struct tty_display_info): Define members termcap_term_buffer and termcap_strings_buffer only if !TERMINFO, since terminfo doesn't use them. Allocate them directly in struct rather than indirectly via a pointer, to simplify init_tty.
* * frame.c (check_minibuf_window): Initialize 'window' properly,Paul Eggert2013-08-262-1/+6
| | | | so that Emacs reliably aborts later if 'window' is not initialized.
* Fix ChangeLog typo.Dmitry Antipov2013-08-261-1/+1
|
* * gtkutil.c (xg_initialize): Set gtk-menu-bar-accel to "" insteadJan Djärv2013-08-262-2/+7
| | | | | | of VoidSymbol. Fixes: debbugs:15154
* * lispref/variables.texi (File Local Variables): Don't recommend quoting!Stefan Monnier2013-08-262-2/+5
|
* * lisp.h (Mouse_HLInfo): Drop set-but-unused membersDmitry Antipov2013-08-263-14/+11
| | | | | | | mouse_face_beg_y and mouse_face_end_y. * xdisp.c (note_tool_bar_highlight, mouse_face_from_buffer_pos) (mouse_face_from_string_pos, note_mode_line_or_margin_highlight): Adjust users and update comment where appropriate.
* * minibuffer.el: Revert change from 2013-08-20.Michael Albinus2013-08-268-23/+66
| | | | | | | | | | | | | | | * net/tramp.el (tramp-find-method, tramp-find-user): Mark result with text property `tramp-default', if appropriate. (tramp-check-proper-host): New defun. (tramp-dissect-file-name): Do not check hostname. Revert change of 2013-03-18. (tramp-backtrace): Make VEC-OR-PROC optional. * net/tramp-adb.el (tramp-adb-maybe-open-connection): * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): * net/tramp-sh.el (tramp-maybe-open-connection): * net/tramp-smb.el (tramp-smb-maybe-open-connection): Apply `tramp-check-proper-host'.
* New function check_minibuf_window to fix bug#15183.Martin Rudalics2013-08-262-32/+55
| | | | | | * frame.c (check_minibuf_window): New function. (delete_frame, Fmake_frame_invisible, Ficonify_frame): Call check_minibuf_window (Bug#15183).
* * epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'Tassilo Horn2013-08-262-9/+14
| | | | lambda expression in order to have `describe-variable' display it.
* * window.h (struct window): Replace last_cursor with last_cursor_vposDmitry Antipov2013-08-264-11/+19
| | | | | | | because this is the only last cursor data we need to keep and consult. * window.c (replace_window, set_window_buffer, Fsplit_window_internal): * xdisp.c (mark_window_display_accurate_1, try_cursor_movement): Adjust users.
* * net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):Michael Albinus2013-08-262-2/+7
| | | | BUF can be optional. (Bug#15186)
* Fix recovering from possible decompression error. SinceDmitry Antipov2013-08-262-3/+14
| | | | | | | | | insert_from_gap doesn't always move point, we can't use PT as the position where the partially decompressed data ends, and should count how may bytes was produced so far. * decompress.c (struct decompress_unwind_data): Add nbytes member. (unwind_decompress): Really delete partially uncompressed data. (Fzlib_decompress_region): Take decompressed data size into account.
* * alloc.c (sweep_vectors): Do not initialize 'block' twice.Dmitry Antipov2013-08-261-1/+1
|
* * syntax.c (init_syntax_once): Adjust comment and do an earlyDmitry Antipov2013-08-267-32/+14
| | | | | | | | | initialization of Qchar_table_extra_slots just once... * casetab.c (init_casetab_once): * category.c (init_category_once): * character.c (syms_of_character): * coding.c (syms_of_coding): * xdisp.c (syms_of_xdisp): ...and omit it here.
* Fix broken customization in Flymake.Xue Fuqiao2013-08-263-1/+9
| | | | | * lisp/progmodes/flymake.el (flymake-get-real-file-name-function): Fix broken customization. (Bug#15184)
* Improve indentation of bracelists defined by macros (without "=").Alan Mackenzie2013-08-252-18/+40
| | | | | | * progmodes/cc-engine.el (c-inside-bracelist-p): When a macro expansion begins with "{", regard it as bracelist when it doesn't contain a ";".
* Add a question into configure.bat whether the user want to continue atVincent Belaïche2013-08-252-4/+20
| | | | his/her own risks.
* * INSTALL: Refer to INSTALL.MSYS.Glenn Morris2013-08-252-0/+4
|
* * nt/configure.bat: Disable it.Glenn Morris2013-08-252-2/+8
| | | | Ref http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00705.html
* Parse C++ inher-intro when there's a template split over 2 lines.Alan Mackenzie2013-08-253-8/+15
| | | | | | | | * progmodes/cc-engine.el (c-guess-basic-syntax CASE 5C): Code more rigorously the search for "class" etc. followed by ":". * progmodes/cc-langs.el (c-opt-<>-sexp-key): Make the value for random languages a regexp which never matches rather than nil.
* Handle "/"s more accurately in test for virtual semicolons (AWK Mode).Alan Mackenzie2013-08-253-29/+73
| | | | | | | | | | | | | | | | * progmodes/cc-awk.el (c-awk-one-line-possibly-open-string-re) (c-awk-regexp-one-line-possibly-open-char-list-re) (c-awk-one-line-possibly-open-regexp-re) (c-awk-one-line-non-syn-ws*-re): Remove. (c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re) (c-awk-space*-/-re, c-awk-space*-regexp-/-re) (c-awk-space*-unclosed-regexp-/-re): New constants. (c-awk-at-vsemi-p): Reformulate better to recognize "/"s which aren't regexp delimiters. * progmodes/cc-engine.el (c-crosses-statement-barrier-p): Add in handling for a rare situation in AWK Mode involving unterminated strings/regexps.
* Add commentary for the last commit.Eli Zaretskii2013-08-241-0/+2
|
* Fix bug #15175 with cursor on boxed characters from display tables.Eli Zaretskii2013-08-242-1/+5
| | | | | | src/xdisp.c (get_next_display_element): Don't apply to characters from a display vector the logic of setting it->end_of_box_run_p suitable for characters from a buffer.
* Fix bug #15176 with setting directory times on MS-Windows.Eli Zaretskii2013-08-242-6/+29
| | | | | src/w32.c (fdutimens): Call 'utime', which is implemented on w32.c to handle directories, rather than '_utime' which doesn't.
* * gtkutil.c (x_wm_set_size_hint): Don't set hints when maximizedJan Djärv2013-08-242-0/+16
| | | | | | or fullscreen. Fixes: debbugs:14627
* System-dependent integer overflow fixes.Paul Eggert2013-08-233-29/+55
| | | | | | | | | | | | | | | * process.c (Fset_process_window_size): Signal an error if the window size is outside the range supported by the lower level. * sysdep.c (set_window_size): Return negative on error, nonnegative on success, rather than -1, 0, 1 on not in system, failure, success. This is simpler. Caller changed. (serial_configure): Remove unnecessary initialization of local. (procfs_get_total_memory) [GNU_LINUX]: Don't assume system memory size fits in unsigned long; this isn't true on some 32-bit hosts. Avoid buffer overrun if some future version of /proc/meminfo has a variable name longer than 20 bytes. (system_process_attributes) [__FreeBSD__]: Don't assume hw.availpages fits in 'int'.
* * lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history.Glenn Morris2013-08-232-2/+4
|
* Don't let very long directory names overrun the stack.Paul Eggert2013-08-236-138/+142
| | | | | | | | | | | | | | | | | | | | | Fix some related minor problems involving "//", vfork. * callproc.c (encode_current_directory): New function. (call_process): Don't append "/"; not needed. * fileio.c (file_name_as_directory_slop): New constant. (file_name_as_directory): Allow SRC to be longer than SRCLEN; this can save the caller having to alloca. (Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name): Use SAFE_ALLOCA, not alloca. (directory_file_name, Fexpand_file_name): Leave leading "//" alone, since it can be special even on POSIX platforms. * callproc.c (call_process): * process.c (Fformat_network_address): * sysdep.c (sys_subshell): Use encode_current_directory rather than rolling our own. (create_process): No need to encode directory; caller does that now. * process.h (encode_current_directory): New decl. * sysdep.c (sys_subshell): Work even if vfork trashes saved_handlers. Rework to avoid 'goto xyzzy;'.
* * lisp/files.el (create-file-buffer): Rework previous change.Glenn Morris2013-08-232-10/+9
|
* * lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.Glenn Morris2013-08-232-0/+3
|
* * files.el (create-file-buffer): Handle a file whose basename is all spaces.Glenn Morris2013-08-232-2/+11
| | | | Fixes: debbugs:15162
* * lisp/textmodes/fill.el (fill-match-adaptive-prefix): Don't throw awayStefan Monnier2013-08-232-1/+4
| | | | | | text-properties. Fixes: debbugs:15155
* * lisp/calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn'tStefan Monnier2013-08-232-11/+17
| | | | | | exist any more. (calc-keypad-redraw): Remove unused var `pad'. (calc-keypad-press): Remove unused var `menu'.
* Fix bug #15155 with ignoring face remapping for strings from prefix properties.Eli Zaretskii2013-08-232-3/+12
| | | | | src/xdisp.c (handle_face_prop): If the default face was remapped use the remapped face for strings from prefix properties.
* Auto-commit of generated files.Glenn Morris2013-08-231-11/+31
|
* In display-buffer-pop-up-frame make BUFFER current (Bug#15133).Martin Rudalics2013-08-232-1/+10
| | | | | | * window.el (display-buffer-pop-up-frame): Call pop-up-frame-function with BUFFER current so `make-frame' will use it as the new frame's buffer (Bug#15133).
* * window.c (struct save_window_data): Fix typo.Dmitry Antipov2013-08-231-1/+1
|
* Minor cleanup for redisplay interface and few related functions.Dmitry Antipov2013-08-237-47/+51
| | | | | | | | | | | | | | | * frame.h (enum text_cursor_kinds): Move from here... * dispextern.h (enum text_cursor_kinds): ...to here. (toplevel): Drop unnecessary declarations. (struct redisplay_interface): Use bool and enum text_cursor_kinds in update_window_end_hook and draw_window_cursor functions. (display_and_set_cursor, x_update_cursor): Adjust prototypes. * nsterm.m (ns_update_window_end, ns_draw_window_cursor): * w32term.c (x_update_window_end,w32_draw_window_cursor): * xterm.c (x_update_window_end, x_draw_window_cursor): * xdisp.c (display_and_set_cursor, update_window_cursor) (update_cursor_in_window_tree, x_update_cursor): Use bool and enum text_cursor_kinds where appropriate.
* Redesign redisplay interface to drop updated_row and updated_area.Dmitry Antipov2013-08-234-55/+59
| | | | | | | | | | | | | | * dispextern.h (updated_row, updated_area): Remove declaration. (struct redisplay_interface): Pass glyph row and row area parameters to write_glyphs, insert_glyphs and clear_end_of_line functions. (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line): Adjust prototypes. * dispnew.c (updated_row, updated_area): Remove. (redraw_overlapped_rows, update_window_line): Adjust user. (update_marginal_area, update_text_area): Likewise. Pass updated row as a parameter. Prefer enum glyph_row_area to int where appropriate. * xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line): Adjust users.
* * process.c (flush_pending_output): Remove stub.Paul Eggert2013-08-224-25/+9
| | | | All uses removed.
* * configure.ac (EMACS_CONFIG_OPTIONS): Quote systematically.Paul Eggert2013-08-222-12/+43
| | | | | | | | | This improves on the patch already installed, by quoting options that contain spaces and suchlike systematically, so that EMACS_CONFIG_OPTIONS is no longer ambiguous when options contain these characters. Fixes: debbugs:13274
* * lisp/erc/erc.el: Use lexical-binding.Stefan Monnier2013-08-226-387/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (erc-user-full-name): Minor CSE simplification. (erc-mode-map): Assume command-remapping is available. (erc-once-with-server-event): Replace `forms' arg with a function arg. (erc-once-with-server-event-global): Remove. (erc-ison-p): Adjust to change in erc-once-with-server-event. (erc-get-buffer-create): Remove arg `proc'. (iswitchb-make-buflist-hook): Declare. (erc-setup-buffer): Use pcase; avoid ((lambda ..) ..). (read-passwd): Assume it exists. (erc-display-line, erc-cmd-IDLE): Avoid add-to-list, adjust to change in erc-once-with-server-event. (erc-cmd-JOIN, erc-set-channel-limit, erc-set-channel-key) (erc-add-query): Minor CSE simplification. (erc-cmd-BANLIST, erc-cmd-MASSUNBAN): Adjust to change in erc-once-with-server-event. (erc-echo-notice-in-user-and-target-buffers): Avoid add-to-list. * lisp/erc/erc-track.el: Use lexical-binding. (erc-make-mode-line-buffer-name): Use closures instead of `(lambda...). (erc-faces-in): Avoid add-to-list. * lisp/erc/erc-notify.el: Use lexical-binding. (erc-notify-timer): Adjust to change in erc-once-with-server-event. (erc-notify-QUIT): Use a closure instead of `(lambda...). * lisp/erc/erc-list.el: Use lexical-binding. (erc-list-install-322-handler, erc-cmd-LIST): Adjust to change in erc-once-with-server-event. * lisp/erc/erc-button.el: Use lexical-binding. (erc-button-next-function): Use a closure instead of `(lambda...).
* * lisp/calendar/timeclock.el: Minor cleanups.Stefan Monnier2013-08-212-68/+63
| | | | | | | | | | (timeclock-ask-before-exiting, timeclock-use-display-time): Use `symbol'. (timeclock-modeline-display): Define as alias before the actual definition. (timeclock-mode-line-display): Use define-minor-mode. (timeclock-day-list-template): Make it a function, add an argument. (timeclock-day-list-required, timeclock-day-list-length) (timeclock-day-list-debt, timeclock-day-list-span) (timeclock-day-list-break): Adjust calls accordingly.
* * callproc.c: Fix race that killed background processes.Paul Eggert2013-08-212-17/+36
| | | | | | | | | (call_process): New arg TEMPFILE_INDEX. Callers changed. Record deleted process-id in critical section, not afterwards. Don't mistakenly kill process created by a call-process invocation that discards output and does not wait. Fixes: debbugs:15144
* Imported EIEIO test suite from CEDET upstreamDavid Engster2013-08-214-0/+1491
| | | | | | * automated/eieio-tests.el, automated/eieio-test-persist.el: * automated/eieio-test-methodinvoke.el: EIEIO tests from CEDET upstream. Changed to use ERT.
* * lisp/emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):Stefan Monnier2013-08-212-6/+9
| | | | Use read--expression so that completion works again.
* Auto-commit of generated files.Glenn Morris2013-08-211-1/+1
|
* Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFOREDmitry Antipov2013-08-212-3/+18
| | | | | | | | and GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES. * alloc.c (toplevel): Remove unnecessary nested #if...#endif. (mark_maybe_object) [!GC_MARK_STACK]: Define to emacs_abort to shut up compiler in mark_object. (dump_zombies): Convert to global and add EXTERNALLY_VISIBLE.