1. 28 Aug, 2012 2 commits
    • Dmitry Antipov's avatar
      Fix usage of set_buffer_internal. · a3d794a1
      Dmitry Antipov authored
      * buffer.h (set_buffer_internal): Make it BUFFER_INLINE.
      * buffer.c (set_buffer_if_live): Use set_buffer_internal.
      * coding.c (decode_coding): Omit redundant test.
      * fileio.c (decide_coding_unwind): Likewise.
      * fns.c (secure_hash): Likewise.
      * insdel.c (modify_region): Likewise.
      * keyboard.c (command_loop_1): Likewise.
      * print.c (PRINTFINISH): Likewise.
      * xdisp.c (run_window_scroll_functions): Use set_buffer_internal.
      a3d794a1
    • Paul Eggert's avatar
      * dispnew.c: Use bool for boolean. · 59ea14cd
      Paul Eggert authored
      (frame_garbaged, display_completed, delayed_size_change)
      (fonts_changed_p, add_window_display_history)
      (add_frame_display_history, verify_row_hash)
      (adjust_glyph_matrix, clear_window_matrices, glyph_row_slice_p)
      (row_equal_p, realloc_glyph_pool)
      (allocate_matrices_for_frame_redisplay)
      (showing_window_margins_p)
      (adjust_frame_glyphs_for_frame_redisplay)
      (build_frame_matrix_from_leaf_window, make_current)
      (mirrored_line_dance, mirror_line_dance, update_frame)
      (update_window_tree, update_single_window)
      (check_current_matrix_flags, update_window, update_text_area)
      (update_window_line, set_window_update_flags, scrolling_window)
      (update_frame_1, scrolling, buffer_posn_from_coords)
      (do_pending_window_change, change_frame_size)
      (change_frame_size_1, sit_for):
      Use bool for boolean.
      (clear_glyph_matrix_rows): Rename from enable_glyph_matrix_rows,
      and remove last int (actually boolean) argument, which was always 0.
      All callers changed.
      * dispextern.h, frame.h, lisp.h: Reflect above API changes.
      * dispextern.h (struct composition_it): Use bool for boolean.
      (struct glyph_matrix): Don't assume buffer sizes can fit in 'int'.
      (struct bidi_it): Use unsigned:1, not int, for boolean prev_was_pdf.
      * dired.c (file_name_completion):
      Use bool for boolean.  (This was missed in an earlier change.)
      59ea14cd
  2. 27 Aug, 2012 8 commits
    • Martin Rudalics's avatar
      In Fset_window_configuration revert first part of last change. · 95072a94
      Martin Rudalics authored
      * window.c (Fset_window_configuration): Revert first part of
      last change.
      95072a94
    • Jan Djärv's avatar
      * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize · 0f19feff
      Jan Djärv authored
      dialog_return.
      (windowShouldClose:): Use stop instead of stopModalWithCode.
      (clicked:): Ditto, and also set dialog_return.
      (timeout_handler:): Use stop instead of abortModal.  Send a dummy
      event.
      (runDialogAt:): Make ret Lisp_Object.  Set it from dialog_return when
      modal loop returns.
      
      * nsterm.h (NSPanel): New class variable dialog_return.
      
      Fixes: debbugs:12258
      0f19feff
    • Paul Eggert's avatar
      * composite.c, data.c, dbusbind.c, dired.c: Use bool for booleans. · de1339b0
      Paul Eggert authored
      * composite.c (find_composition, composition_gstring_p)
      (composition_reseat_it, find_automatic_composition):
      * data.c (let_shadows_buffer_binding_p)
      (let_shadows_global_binding_p, set_internal, make_blv)
      (Fmake_variable_buffer_local, Fmake_local_variable)
      (Fmake_variable_frame_local, arithcompare, cons_to_unsigned)
      (cons_to_signed, arith_driver):
      * dbusbind.c (xd_in_read_queued_messages):
      * dired.c (directory_files_internal, file_name_completion):
      Use bool for booleans.
      * dired.c (file_name_completion):
      * process.h (fd_callback):
      Omit int (actually boolean) argument.  It wasn't being used.
      All uses changed.
      * composite.h, lisp.h: Reflect above API changes.
      de1339b0
    • Paul Eggert's avatar
      * cmds.c, coding.c: Use bool for booleans. · f10fe38f
      Paul Eggert authored
      * cmds.c (move_point, Fself_insert_command):
      * coding.h (struct composition status, struct coding_system):
      * coding.c (detect_coding_utf_8, encode_coding_utf_8)
      (detect_coding_utf_16, encode_coding_utf_16, detect_coding_emacs_mule)
      (emacs_mule_char, decode_coding_emacs_mule)
      (encode_coding_emacs_mule, detect_coding_iso_2022)
      (decode_coding_iso_2022, encode_invocation_designation)
      (encode_designation_at_bol, encode_coding_iso_2022)
      (detect_coding_sjis, detect_coding_big5, decode_coding_sjis)
      (decode_coding_big5, encode_coding_sjis, encode_coding_big5)
      (detect_coding_ccl, encode_coding_ccl, decode_coding_raw_text)
      (encode_coding_raw_text, detect_coding_charset)
      (decode_coding_charset, encode_coding_charset, detect_eol)
      (detect_coding, get_translation_table, produce_chars)
      (consume_chars, reused_workbuf_in_use)
      (make_conversion_work_buffer, code_conversion_save)
      (decode_coding_object, encode_coding_object)
      (detect_coding_system, char_encodable_p)
      (Funencodable_char_position, code_convert_region)
      (code_convert_string, code_convert_string_norecord)
      (Fset_coding_system_priority):
      * fileio.c (Finsert_file_contents):
      Use bool for booleans.
      * coding.h, lisp.h: Reflect above API changes.
      * coding.c: Remove unnecessary static function decls.
      (detect_coding): Use unsigned, not signed, to copy an unsigned field.
      (decode_coding, encode_coding, decode_coding_gap): Return 'void',
      not a boolean 'int', since callers never look at the return value.
      (ALLOC_CONVERSION_WORK_AREA): Assume caller returns 'void', not 'int'.
      * coding.h (decoding_buffer_size, encoding_buffer_size)
      (emacs_mule_string_char): Remove unused extern decls.
      (struct iso_2022_spec, struct coding_system):
      Use 'unsigned int : 1' for boolean fields, since there's more than one.
      (struct emacs_mule_spec): Remove unused field 'full_support'.
      All initializations removed.
      * cmds.c (internal_self_insert): Don't assume EMACS_INT fits in 'int'.
      f10fe38f
    • Dmitry Antipov's avatar
      Fix spare memory change. · 5474c384
      Dmitry Antipov authored
      * alloc.c (mark_maybe_pointer): Handle MEM_TYPE_SPARE.
      (valid_lisp_object_p): Likewise.
      5474c384
    • Martin Rudalics's avatar
      In dired-pop-to-buffer make window start at beginning of buffer (Bug#12281). · 34f10d41
      Martin Rudalics authored
      * dired.el (dired-pop-to-buffer): Make window start at beginning
      of buffer (Bug#12281).
      34f10d41
    • Martin Rudalics's avatar
      Address two problems in Fset_window_configuration (Bug#8789) and (Bug#12208). · c4b6914d
      Martin Rudalics authored
      * window.c (Fset_window_configuration): Record any window's old
      buffer if it's replaced (see Bug#8789).  If the new current
      buffer doesn't appear in the selected window, go to its old
      point (Bug#12208).
      c4b6914d
    • Dmitry Antipov's avatar
      Special MEM_TYPE_SPARE to denote reserved memory. · 35aaa1ea
      Dmitry Antipov authored
      * alloc.c (enum mem_type): New memory type.
      (refill_memory_reserve): Use new type for spare memory.
      This prevents live_cons_p and live_string_p from incorrect
      detection of uninitialized objects from spare memory as live.
      35aaa1ea
  3. 26 Aug, 2012 13 commits
    • Chong Yidong's avatar
      Make special-display-* and display-buffer-reuse-frames obsolete. · 77f1f99c
      Chong Yidong authored
      * lisp/window.el (special-display-regexps, special-display-frame-alist)
      (special-display-buffer-names, special-display-function)
      (display-buffer-reuse-frames): Mark as obsolete.
      
      * lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.
      
      * help.el (help-print-return-message): Don't treat
      display-buffer-reuse-frames specially.
      77f1f99c
    • Paul Eggert's avatar
      Spelling fixes. · 8b2e00a3
      Paul Eggert authored
      * Makefile.in (.PHONY): versioclean -> versionclean.
      8b2e00a3
    • Glenn Morris's avatar
      Auto-commit of generated files. · 6bd1cda5
      Glenn Morris authored
      6bd1cda5
    • Paul Eggert's avatar
      Remove unused external symbols. · b52d6985
      Paul Eggert authored
      * data.c (Qcons, Qfloat, Qmisc, Qstring, Qvector):
      * window.c (Qwindow_valid_p, decode_valid_window):
      Now static, not extern.
      * data.c (Qinterval): Remove; unused.
      (syms_of_data): Do not define 'interval'.
      * lisp.h (Qinteger, Qstring, Qmisc, Qvector, Qfloat, Qcons):
      * window.h (decode_valid_window):
      Remove decls.
      b52d6985
    • Paul Eggert's avatar
    • Chong Yidong's avatar
      Clean up gdb-mi's usage of display-buffer. · d97af5a0
      Chong Yidong authored
      * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New
      variable, replacing gdb-frame-parameters.
      (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer)
      (gdb-frame-threads-buffer, gdb-frame-memory-buffer)
      (gdb-frame-disassembly-buffer, gdb-frame-stack-buffer)
      (gdb-frame-locals-buffer, gdb-frame-registers-buffer): Use it.
      (def-gdb-frame-for-buffer): Macro deleted.  It is easier to define
      the functions directly with gdb-display-buffer-other-frame-action.
      (gdb-display-breakpoints-buffer, gdb-display-threads-buffer)
      (gdb-display-memory-buffer, gdb-display-disassembly-buffer)
      (gdb-display-stack-buffer, gdb-display-locals-buffer)
      (gdb-display-registers-buffer): Define directly.
      (def-gdb-display-buffer): Macro deleted.
      (gdb-display-buffer): Remove second and third args, callers don't
      use them.  Defer to the default display-buffer behavior, apart
      from making windows dedicated.
      (gdb-setup-windows): Don't call display-buffer unnecessarily.
      
      * window.el (display-buffer-pop-up-frame): Handle a
      pop-up-frame-parameters alist entry.
      (display-buffer): Document it.
      
      * progmodes/gud.el (gud-display-line): Just use display-buffer.
      d97af5a0
    • Paul Eggert's avatar
      * character.c, charset.c, chartab.c: Use bool for booleans. · d5172d4f
      Paul Eggert authored
      * character.c (lisp_string_width, string_count_byte8)
      (string_escape_byte8):
      * charset.c (charset_map_loaded, load_charset_map, read_hex):
      (load_charset_map_from_file, map_charset_chars)
      (Fdefine_charset_internal, define_charset_internal)
      (Fdeclare_equiv_charset, find_charsets_in_text)
      (Ffind_charset_region, char_charset, Fiso_charset):
      * chartab.c (sub_char_table_ref, sub_char_table_ref_and_range)
      (sub_char_table_set, sub_char_table_set_range)
      (char_table_set_range, optimize_sub_char_table)
      (map_sub_char_table):
      Use bool for boolean.
      * character.c (str_to_unibyte): Omit last boolean argument; it was
      always 0.  All callers changed.
      * character.h, charset.h: Adjust to match previous changes.
      * character.h (char_printable_p): Remove decl of nonexistent function.
      * charset.h (struct charset): Members code_linear_p, iso_chars_96,
      ascii_compatible_p, supplementary_p, compact_codes_p, unified_p
      are all boolean, so make them single-bit bitfields.
      d5172d4f
    • Paul Eggert's avatar
      * lisp.h (ASET): Remove attempt to detect side effects. · 6af64513
      Paul Eggert authored
      It was meant to be temporary and it often doesn't work,
      because when IDX has side effects the behavior of IDX==IDX
      is undefined.  See Stefan Monnier in
      <http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00762.html>.
      6af64513
    • Paul Eggert's avatar
      * configure.ac (CFLAGS): Prefer -g3 to -g if -g3 works · 6e8aca60
      Paul Eggert authored
      and if the user has not specified CFLAGS.  -g3 simplifies
      debugging, since it makes macros visible to the debugger.
      6e8aca60
    • Chong Yidong's avatar
      Doc fix for last change. · 2db8bdfc
      Chong Yidong authored
      2db8bdfc
    • Chong Yidong's avatar
      Make ordinary isearch obey search-whitespace-regexp too. · dd7ffad6
      Chong Yidong authored
      * lisp/isearch.el (search-whitespace-regexp): Make string and nil
      values apply to both ordinary and regexp search.  Allow a cons
      cell value to distinguish between the two.
      (isearch-whitespace-regexp, isearch-search-forward)
      (isearch-search-backward): New functions.
      (isearch-occur, isearch-search-fun-default, isearch-search)
      (isearch-lazy-highlight-new-loop): Use them.
      (isearch-forward, isearch-forward-regexp): Doc fix.
      dd7ffad6
    • Barry O'Reilly's avatar
      * src/lisp.h (functionp): New function (extracted from Ffunctionp). · e1f29348
      Barry O'Reilly authored
      (FUNCTIONP): Use it.
      * src/eval.c (Ffunctionp): Use it.
      e1f29348
    • Chong Yidong's avatar
      * faces.el (help-argument-name): Always inherit from italic. · 4c47bd1e
      Chong Yidong authored
      Fixes: debbugs:12213
      4c47bd1e
  4. 25 Aug, 2012 10 commits
  5. 24 Aug, 2012 3 commits
    • Michael Albinus's avatar
      * cmdargs.texi (General Variables): Setting · aa0ecd94
      Michael Albinus authored
      $DBUS_SESSION_BUS_ADDRESS to a dummy value suppresses connections
      to the D-Bus session bus.  (Bug#12112)
      aa0ecd94
    • Paul Eggert's avatar
      * buffer.c, buffer.h: Use bool for boolean. · 37ef52bb
      Paul Eggert authored
      * buffer.c (reset_buffer_local_variables)
      (buffer_lisp_local_variables, Fset_buffer_modified_p)
      (Frestore_buffer_modified_p, Fset_buffer_multibyte):
      (overlays_at, overlays_in, mouse_face_overlay_overlaps)
      (overlay_touches_p, overlay_strings, Foverlay_put)
      (report_overlay_modification, call_overlay_mod_hooks):
      (mmap_enlarge, mmap_set_vars):
      * buffer.h (buffer_has_overlays, uppercasep, lowercasep):
      Use bool for booleans, instead of int.
      * buffer.c (compact_buffer, mmap_free_1): Return void, not int,
      since the 1-or-0 return value is always ignored anyway.
      (mmap_initialized_p):
      * buffer.h (struct buffer_text.inhibit_shrinking): Now bool, not int.
      * buffer.h, lisp.h: Adjust prototypes to match above changes.
      37ef52bb
    • Paul Eggert's avatar
      Fix file time stamp problem with bzr and CVS (Bug#12001). · ca5256ad
      Paul Eggert authored
      * vc/vc-cvs.el (vc-cvs-parse-entry): Ignore subsecond information
      in the file's time stamp, since the version control system loses
      that information.
      ca5256ad
  6. 23 Aug, 2012 3 commits
    • Paul Eggert's avatar
      * bidi.c: Use bool for boolean. · 2cc21167
      Paul Eggert authored
      This is a bit more readable, and makes the text segment of bidi.o
      0.4% smaller on my platform (GCC 4.7.1 x86-64, Fedora 15).
      Presumably it's faster too.
      (bidi_initialized, bidi_ignore_explicit_marks_for_paragraph_level):
      Now bool.
      (bidi_cache_find_level_change, bidi_cache_iterator_state)
      (bidi_unshelve_cache, bidi_init_it, bidi_count_bytes)
      (bidi_char_at_pos, bidi_fetch_char, bidi_paragraph_init)
      (bidi_explicit_dir_char, bidi_level_of_next_char)
      (bidi_find_other_level_edge, bidi_move_to_visually_next):
      Use bool for booleans, instead of int.
      * dispextern.h (bidi_init_it, bidi_paragraph_init)
      (bidi_unshelve_cache): Adjust decls to match code.
      2cc21167
    • Martin Rudalics's avatar
      In Fposn_at_x_y do not allow internal window as argument. · 7db4ddf4
      Martin Rudalics authored
      * keyboard.c (Fposn_at_x_y): Do not allow internal window as
      argument.
      7db4ddf4
    • Paul Eggert's avatar
      * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean. · b1bb8011
      Paul Eggert authored
      * atimer.h: Include <stdbool.h>.
      b1bb8011
  7. 22 Aug, 2012 1 commit