1. 14 May, 2015 4 commits
    • Eli Zaretskii's avatar
      Fix daemon crashes when linum-mode is turned on early on · f85318cd
      Eli Zaretskii authored
      * src/window.c (Fwindow_end): Don't try calling display engine
      functions on initial-frame frame.  (Bug#20565)
    • Jan D's avatar
      Fixes Bug#20142. · f2c4fd22
      Jan D authored
      * gtkutil.c (delete_cb): Don't send delete event here, it does arrive
      in the main loop, even for Gtk 3 (Bug#20142).
    • Jan D's avatar
      Don't access display after i/o error (Bug#19147). · 9341956c
      Jan D authored
      * xterm.c (x_connection_closed): Add third arg ioerror.
      If ioerror, set display to 0 (Bug#19147).
      (x_error_quitter): Call x_connection_closed with third arg false.
      (x_io_error_quitter): Call x_connection_closed with third arg true.
    • Jan D's avatar
      Handle GTK_SCALE, fixes Bug#20432. · c0055ff5
      Jan D authored
      * gtkutil.c (xg_get_gdk_scale): New function.
      (x_wm_set_size_hint, xg_get_default_scrollbar_width)
      (xg_update_horizontal_scrollbar_pos): Take GTK_SCALE in to account
      when setting sizes (Bug#20432).
  2. 13 May, 2015 3 commits
  3. 12 May, 2015 1 commit
  4. 10 May, 2015 1 commit
  5. 08 May, 2015 2 commits
  6. 06 May, 2015 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/testcover.el: Don't use edebug--read (bug#20487) · 1340aefd
      Stefan Monnier authored
      * lisp/emacs-lisp/testcover.el: Use lexical-binding.
      (testcover--read): Rename from testcover-read.  Change calling convention.
      Use edebug-read-and-maybe-wrap-form now that edebug-read is gone.
      (testcover-start): Use add-function.  Move edebug-all-defs binding to
      (testcover-this-defun): Tighten scope of edebug-all-defs binding.
      (testcover-mark): Remove unused var `item'.
      * src/lread.c (syms_of_lread): Default load-read-function to `read'.
  7. 04 May, 2015 1 commit
    • Daniel Colascione's avatar
      Add `save-mark-and-excursion', which has the old `save-excursion' behavior · 255a011f
      Daniel Colascione authored
      * doc/lispref/positions.texi (Excursions): Document
      * lisp/font-lock.el (font-lock-fontify-block): Use
      `save-mark-and-excursion' instead of `save-excursion', restoring
      Emacs 24 behavior.
      * lisp/simple.el (save-mark-and-excursion--save)
      (save-mark-and-excursion--restore): New functions.
      (save-mark-and-excursion): New user macro.
      * src/editfns.c (Fsave_excursion): Mention
      `save-mark-and-excursion' in `save-excursion' documentation.
  8. 02 May, 2015 1 commit
  9. 30 Apr, 2015 1 commit
  10. 29 Apr, 2015 1 commit
  11. 27 Apr, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix redisplay of frame after loading new fonts · d89687b1
      Eli Zaretskii authored
      * src/xdisp.c (redisplay_internal): When retrying redisplay of a
      frame because new fonts were loaded, disable all redisplay
      optimizations on that frame by calling SET_FRAME_GARBAGED.
  12. 25 Apr, 2015 4 commits
    • Paul Eggert's avatar
      Don't freeze with unreadable processes · 2c1b8604
      Paul Eggert authored
      Don't freeze if an exiting process can't be read from. (Bug#19860).
      This fixes a bug I introduced in
      "* process.c: Add sanity checks for file descriptors."
      Dmitry Gutov did most of the legwork in finding the problem.
      * src/process.c (wait_reading_process_output):
      Treat non-running processes that can't be read from
      the same as other non-running processes.
    • Eli Zaretskii's avatar
      Improve doc string of 'insert-buffer-substring' · bac119a5
      Eli Zaretskii authored
      * src/editfns.c (Finsert_buffer_substring): Doc fix.  (Bug#20421)
    • Paul Eggert's avatar
      Spelling fixes · 2f5da6d4
      Paul Eggert authored
    • Paul Eggert's avatar
      Port --enable-gcc-warnings to GCC 5.1 x86-64 · 52ba851d
      Paul Eggert authored
      * lib-src/ebrowse.c (dump_sym):
      * lib-src/hexl.c (main):
      * src/ccl.c (ccl_driver):
      * src/character.c (string_escape_byte8):
      * src/dbusbind.c (xd_retrieve_arg, xd_add_watch):
      * src/gnutls.c (Fgnutls_boot):
      * src/gtkutil.c (xg_check_special_colors):
      * src/image.c (x_build_heuristic_mask):
      * src/print.c (safe_debug_print, print_object):
      * src/term.c (produce_glyphless_glyph):
      * src/xdisp.c (get_next_display_element)
      * src/xterm.c (x_draw_glyphless_glyph_string_foreground):
      Don't use a signed format to print an unsigned integer, or vice
      versa.  GCC 5.1's new -Wformat-signedness option warns about this.
      * src/image.c (png_load_body, jpeg_load_body):
      Silence a bogus setjump diagnostic from GCC 5.1 (GCC bug 54561).
  13. 24 Apr, 2015 1 commit
    • Eli Zaretskii's avatar
      Clarify doc strings of functions that search for properties · 168609cc
      Eli Zaretskii authored
      * src/textprop.c (Fnext_char_property_change)
      (Fprevious_single_char_property_change, Fnext_property_change)
      (Fnext_single_property_change, Fprevious_property_change)
      (Fprevious_single_property_change): Clarify doc strings wrt return
      value and the optional LIMIT argument.  (Bug#20411)
  14. 23 Apr, 2015 2 commits
  15. 22 Apr, 2015 2 commits
    • Paul Eggert's avatar
      Omit needless "\ " after multibyte then newline · 7128b0de
      Paul Eggert authored
      * src/print.c: Include <c-ctype.h>, for c_isxdigit.
      (print_object): When print-escape-multibyte is non-nil and a
      multibyte character is followed by a newline or formfeed, followed
      by a hex digit, don't output a needless "\ " before the hex digit.
      * test/automated/print-tests.el (print-hex-backslash): New test.
    • Oleh Krehel's avatar
      Add a new `inhibit-message' variable · df61b078
      Oleh Krehel authored
      * src/xdisp.c (syms_of_xdisp): Define a boolean `inhibit_message'.
      (message3): Don't call `message3_nolog' (i.e. use the Echo Area) when
      `inhibit_message' is non-zero.
      * etc/NEWS: Add an entry.
      * doc/lispref/display.texi: Add an entry for `inhibit-message',
        mention it in `message'.
  16. 21 Apr, 2015 1 commit
  17. 20 Apr, 2015 1 commit
  18. 19 Apr, 2015 4 commits
    • Paul Eggert's avatar
      Use bool for boolean in textprop.c, undo.c · 62e17007
      Paul Eggert authored
      * src/textprop.c (soft, hard): Now constants instead of macros.
      (validate_plist): Rewrite to avoid need for boolean local.
      (interval_has_all_properties, interval_has_some_properties)
      (interval_has_some_properties_list, add_properties)
      (remove_properties, get_char_property_and_overlay)
      (Fprevious_single_char_property_change, add_text_properties_1)
      (Fremove_text_properties, Fremove_list_of_text_properties)
      * src/tparam.c (tparam1):
      * src/undo.c (record_change, record_property_change)
      Use 'true' and 'false' for booleans.
    • Paul Eggert's avatar
      * src/widget.c (set_frame_size): Prefer 'int' to 'unsigned' · e5bd39b2
      Paul Eggert authored
      where either will do.
    • Paul Eggert's avatar
      Refactor low-level printing for simplicity · 96bfe816
      Paul Eggert authored
      * src/print.c (PRINTDECLARE): Remove.  Move its contents into
      PRINTPREPARE; doable now that we assume C99.  All callers changed.
      (PRINTCHAR): Remove, as it adds more mystery than clarity.
      All callers changed.
      (strout): Assume that caller computes length.  All callers changed.
      (print_c_string): New function.
      (write_string, write_string_1): Compute length instead of asking
      the caller to compute it.  All callers changed.
      (write_string): Simplify by using write_string_1.
      (write_string_1): Simplify by using print_c_string.
      (Fterpri): Compute default val more clearly.
      (Fprin1_to_string, print_object):
      Assume C99 to avoid unnecessary nesting.
      (print_object): Prefer print_c_string to multiple printchar, or
      to calling strout with -1 length.  Coalesce into sprintf when
      this is easy.
    • Paul Eggert's avatar
  19. 16 Apr, 2015 1 commit
    • Paul Eggert's avatar
      '[:graph:]' now excludes whitespace, not just ' ' · 3074a9fa
      Paul Eggert authored
      * doc/lispref/searching.texi (Char Classes):
      * lisp/emacs-lisp/rx.el (rx): Document [:graph:] to be [:print:]
      sans whitespace (not sans space).
      * src/character.c (graphicp): Exclude all Unicode whitespace chars,
      not just space.
      * src/regex.c (ISGRAPH): Exclude U+00A0 (NO-BREAK SPACE).
  20. 15 Apr, 2015 2 commits
    • Stefan Monnier's avatar
      * src/lread.c (intern_1): Make sure we'd find the symbol we add · 66ae3cff
      Stefan Monnier authored
      Fixes: debbugs:20334
      * src/xfaces.c (resolve_face_name): Don't use `intern' with Lisp_Strings.
    • Paul Eggert's avatar
      Make [:graph:] act like [:print:] sans space · a122a027
      Paul Eggert authored
      In POSIX [[:print:]] is equivalent to [ [:graph:]], so change
      [:graph:] so that it matches everything that [:print:] does,
      except for space.
      * doc/lispref/searching.texi (Char Classes):
      * etc/NEWS:
      * lisp/emacs-lisp/rx.el (rx):
      Document [:graph:] to be [:print:] sans ' '.
      * src/character.c, src/character.h (graphicp): New function.
      * src/regex.c (ISGRAPH) [emacs]: Use it.
      (BIT_GRAPH): New macro.
      (BIT_PRINT): Increase to 0x200, to make room for BIT_GRAPH.
      (re_wctype_to_bit) [! WIDE_CHAR_SUPPORT]:
      Return BIT_GRAPH for RECC_GRAPH.
      (re_match_2_internal) [emacs]: Use ISGRAPH if BIT_GRAPH,
      and ISPRINT if BIT_PRINT.
  21. 14 Apr, 2015 5 commits
    • Eli Zaretskii's avatar
      Make [:print:] support non-ASCII characters correctly · 6c284c6b
      Eli Zaretskii authored
      * src/regex.c (ISPRINT): Call 'printablep' for multibyte characters.
      (BIT_PRINT): New bit mask.
      (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT.
      * src/character.c (printablep): New function.
      * src/character.h (printablep): Add prototype.
      * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior
      of 'print', 'alnum', and 'alphabetic'.
      * doc/lispref/searching.texi (Char Classes): Document the new
      behavior of [:print:].
      * etc/NEWS: Mention the new behavior of [:print:].
    • Paul Eggert's avatar
      Assume C89 offsetof in xterm.c, xlwmenu.c · b5919771
      Paul Eggert authored
      * lwlib/xlwmenu.c (offset):
      * src/xterm.c (cvt_string_to_pixel_args):
      Use offsetof, not XtOffset.
    • Paul Eggert's avatar
      Assume C89 offsetof in widget.c · 96a858a4
      Paul Eggert authored
      * src/widget.c (XtOffset): Remove; no longer needed.
      (offset): Implement via offsetof instead of via pre-C89 XtOffset hack.
    • Paul Eggert's avatar
      Fix think-o in previous patch · 7744cc7e
      Paul Eggert authored
      * src/window.c (count_windows, get_leaf_windows):
      Don't optimize count_windows incorrectly.
    • Paul Eggert's avatar
      Avoid some int overflows in window.c · b80c5ebc
      Paul Eggert authored
      * src/print.c (print_object):
      * src/window.c (sequence_number):
      * src/window.h (struct window.sequence_number):
      Don't assume window sequence number fits in int.
      * src/window.c (window_select_count):
      * src/window.h (struct window.use_time, window_select_count):
      Don't assume window use time fits in int.
      * src/window.c (Fsplit_window_internal):
      Don't assume user-supplied integer, or sum, fits in int.
      (Fset_window_configuration, count_windows, get_leaf_windows)
      (save_window_save, Fcurrent_window_configuration):
      Use ptrdiff_t for object counts.
      (Fset_window_configuration): Omit unused local 'n'.
      (count_windows): Simplify by writing in terms of get_leaf_windows.
      (get_leaf_windows): Don't store through FLAT if it's null.
      (extract_dimension): New static function.
      (set_window_margins, set_window_fringes, set_window_scroll_bars):
      Use it to avoid undefined behavior when converting user-supplied
      integer to 'int'.