1. 19 May, 2012 1 commit
    • Paul Eggert's avatar
      Remove no-longer-used macro HAVE_FTIME. · 003fdae2
      Paul Eggert authored
      * configure.in (machine): Do not set to 'vax', since src/m/vax.h
      is being removed.
      (AC_CHECK_FUNCS): Remove ftime.
      * admin/CPP-DEFINES (HAVE_FTIME): Remove.
      * nt/config.nt (HAVE_FTIME): Remove undef; not needed.
      * src/m/vax.h: Remove; no longer needed since HAVE_FTIME is being removed.
      * src/s/ms-w32.h (HAVE_FTIME): Remove; not needed.
      003fdae2
  2. 18 May, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix compilation with -DGLYPH_DEBUG=1 on MS-Windows. · 784b56e2
      Eli Zaretskii authored
       src/w32term.c [GLYPH_DEBUG]: Add prototype for x_check_font.
       (x_check_font) [GLYPH_DEBUG]: New function, copied from xterm.c
       src/w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: Fix broken
       reference to image_cache->refcount.
       (x_create_tip_frame): Fix broken use of FRAME_IMAGE_CACHE.
      784b56e2
  3. 17 May, 2012 1 commit
    • Juri Linkov's avatar
      Move word search functions from search.c to isearch.el (bug#10145, bug#11381). · a0a79cde
      Juri Linkov authored
      * lisp/isearch.el (word-search-regexp, word-search-backward)
      (word-search-forward, word-search-backward-lax)
      (word-search-forward-lax): Move functions from search.c.
      
      * src/search.c (Fword_search_regexp, Fword_search_backward)
      (Fword_search_forward, Fword_search_backward_lax)
      (Fword_search_forward_lax): Move functions to isearch.el.
      a0a79cde
  4. 16 May, 2012 1 commit
  5. 15 May, 2012 1 commit
  6. 14 May, 2012 5 commits
  7. 13 May, 2012 2 commits
    • Eli Zaretskii's avatar
      Fix bug #11464 with pos-visible-in-window-p and R2L text in L2R paragraph. · c8fb9dc6
      Eli Zaretskii authored
       src/xdisp.c (pos_visible_p): Don't report a position visible when move_it_to
       stopped at the last line of window, which happens to be scanned
       backwards by the bidi iteration.
      c8fb9dc6
    • Eli Zaretskii's avatar
      Fix bug #11417 with infloop when left-fringe/right-fringe spec is used on TTY. · ac268e67
      Eli Zaretskii authored
       src/xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we
       already have overlays loaded.
       (handle_single_display_spec): Before returning without displaying
       fringe bitmap, synchronize the bidi iterator with the main display
       iterator, by calling iterate_out_of_display_property.
       (iterate_out_of_display_property): Detect buffer iteration by
       testing that it->string is a Lisp string.
       (get_next_display_element): When the current object is exhausted,
       and there's something on it->stack, call set_iterator_to_next to
       proceed with what's on the stack, instead of returning zero.
       (set_iterator_to_next): If called at the end of a Lisp string,
       proceed to consider_string_end without incrementing string
       position.  Don't increment display vector index past the end of
       the display vector.
      ac268e67
  8. 12 May, 2012 3 commits
    • Glenn Morris's avatar
      Remove trailing / from $ns_appbindir · 9e6b06ed
      Glenn Morris authored
      * configure.in (ns_appbindir): Remove trailing "/".
      * src/ns.mk: Update for ns_appbindir no longer having trailing "/".
      9e6b06ed
    • Eli Zaretskii's avatar
      Update src/lisp.mk as required by 2012-05-07T20:48:41Z!monnier@iro.umontreal.ca. · c1a1d7a3
      Eli Zaretskii authored
       src/lisp.mk (lisp): Add newcomment.elc.
      c1a1d7a3
    • Glenn Morris's avatar
      Let configure test for a suitable mkdir -p · 3fe7cdc8
      Glenn Morris authored
      * configure.in (AC_PROG_MKDIR_P): Call it, to set MKDIR_P.
      (MKDEPDIR): Use $MKDIR_P.
      
      * Makefile.in (MKDIR_P): New, set by configure.
      (mkdir): Use $MKDIR_P.
      
      * doc/emacs/Makefile.in (MKDIR_P): New, set by configure.
      (mkinfodir): Use $MKDIR_P.
      
      * doc/lispintro/Makefile.in (MKDIR_P): New, set by configure.
      (mkinfodir): Use $MKDIR_P.
      
      * doc/lispref/Makefile.in (MKDIR_P): New, set by configure.
      (mkinfodir): Use $MKDIR_P.
      
      * doc/misc/Makefile.in (MKDIR_P): New, set by configure.
      (mkinfodir): Use $MKDIR_P.
      
      * src/Makefile.in (MKDIR_P): New, set by configure.
      
      * src/ns.mk (${ns_appdir}, ${ns_appbindir}Emacs): Use $MKDIR_P.
      3fe7cdc8
  9. 11 May, 2012 2 commits
    • Eli Zaretskii's avatar
      Fix display when left-fringe/right-fringe display spec is invalid. · 82f9b393
      Eli Zaretskii authored
       src/xdisp.c (handle_single_display_spec): Return 1 for left-margin
       and right-margin display specs even if the spec is invalid or we
       are on a TTY, and thus unable to display on the fringes.  That's
       because the text with the property will not be displayed anyway,
       so we need to signal to the caller that this is a "replacing"
       display spec.  This fixes display when the spec is invalid or we
       are on a TTY.
      82f9b393
    • Paul Eggert's avatar
      Remove unused function hourglass_started. · 53f7d2c0
      Paul Eggert authored
      * dispextern.h (hourglass_started):
      * w32fns.c (hourglass_started):
      * xdisp.c (hourglass_started): Remove.
      53f7d2c0
  10. 10 May, 2012 4 commits
  11. 09 May, 2012 4 commits
    • Michael Albinus's avatar
      * dbusbind.c (xd_registered_buses): New internal Lisp object. · 5cb67954
      Michael Albinus authored
      Rename all occurences of Vdbus_registered_buses to xd_registered_buses.
      (syms_of_dbusbind): Remove declaration of Vdbus_registered_buses.
      Initialize xd_registered_buses.
      5cb67954
    • Paul Eggert's avatar
      * unexaix.c (make_hdr): Fix typo in prototype. · 297834cd
      Paul Eggert authored
      This bug broke the build on AIX.  Problem reported by Gilles Pion.
      297834cd
    • Paul Eggert's avatar
      Untag more efficiently if USE_LSB_TAG. · b263a6b0
      Paul Eggert authored
      This is based on a proposal by YAMAMOTO Mitsuharu in
      <http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01876.html>.
      For an admittedly artificial (nth 8000 longlist) benchmark on
      Fedora 15 x86-64, this yields a 25% CPU speedup.  Also, it shrinks
      Emacs's overall text size by 1%.
      * lisp.h (XUNTAG): New macro.
      (XCONS, XVECTOR, XSTRING, XSYMBOL, XFLOAT, XMISC, XPROCESS, XWINDOW)
      (XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE, XSUB_CHAR_TABLE, XBOOL_VECTOR)
      (XSETTYPED_PSEUDOVECTOR, XHASH_TABLE, TYPED_PSEUDOVECTORP): Use it.
      * eval.c (Fautoload):
      * font.h (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT):
      * frame.h (XFRAME): Use XUNTAG.
      b263a6b0
    • Paul Eggert's avatar
      Port recent dbusbind.c changes to 32-bit --with-wide-int. · 3478ec45
      Paul Eggert authored
      * dbusbind.c (xd_append_arg, xd_retrieve_arg, Fdbus_message_internal):
      Remove unportable assumptions about print widths of types like
      dbus_uint32_t.
      (xd_get_connection_address, Fdbus_init_bus): Cast Emacs integer to
      intptr_t when converting between pointer and integer, to avoid GCC
      warnings about wrong width.
      3478ec45
  12. 08 May, 2012 1 commit
  13. 07 May, 2012 2 commits
  14. 06 May, 2012 1 commit
    • Chong Yidong's avatar
      * lisp/buff-menu.el: Convert to Tabulated List mode. · e5f9458f
      Chong Yidong authored
      (Buffer-menu-buffer+size-width): Make obsolete.
      (Buffer-menu-name-width, Buffer-menu-size-width): New variables.
      (Buffer-menu-mode-map): Inherit from tabulated-list-mode-map.
      (Buffer-menu-mode): Derive from tabulated-list-mode.  Move command
      documentation into docstring of buffer-menu.
      (Buffer-menu-toggle-files-only): Add an informative message.
      (Buffer-menu-sort): Convert to alias for tabulated-list-sort.
      (Buffer-menu-buffer, Buffer-menu-beginning, Buffer-menu-mark)
      (Buffer-menu-unmark, Buffer-menu-backup-unmark)
      (Buffer-menu-delete, Buffer-menu-save, Buffer-menu-not-modified)
      (Buffer-menu-execute, Buffer-menu-select)
      (Buffer-menu-marked-buffers, Buffer-menu-toggle-read-only)
      (Buffer-menu-bury): Use Tabulated List machinery.
      (Buffer-menu-mouse-select, Buffer-menu-sort-by-column)
      (Buffer-menu-sort-button-map, Buffer-menu-make-sort-button):
      Deleted.
      (list-buffers--refresh): New function.
      (list-buffers-noselect): Use it.
      (tabulated-list-entry-size->, Buffer-menu--pretty-name)
      (Buffer-menu--pretty-file-name): New helper functions.
      
      * lisp/loadup.el: Preload tabulated-list.
      
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Rename from
      tabulated-list-sort-column.
      (tabulated-list-init-header): Add the initial aligning space even
      if tabulated-list-padding is zero.
      
      * src/lisp.mk (lisp): Update.
      e5f9458f
  15. 05 May, 2012 1 commit
  16. 04 May, 2012 1 commit
    • Stefan Monnier's avatar
      Add new error and function `user-error'. · 71873e2b
      Stefan Monnier authored
      * lisp/subr.el (user-error): New function.
      * lisp/window.el (switch-to-buffer):
      * lisp/vc/smerge-mode.el (smerge-resolve-function, smerge-resolve)
      (smerge-match-conflict):
      * lisp/simple.el (previous-matching-history-element)
      (next-matching-history-element, goto-history-element, undo-more)
      (undo-start):
      * lisp/progmodes/etags.el (visit-tags-table-buffer, find-tag-tag)
      (find-tag-noselect, find-tag-in-order, etags-goto-tag-location)
      (next-file, tags-loop-scan, list-tags, complete-tag):
      * lisp/progmodes/compile.el (compilation-loop):
      * lisp/mouse.el (mouse-minibuffer-check):
      * lisp/man.el (Man-bgproc-sentinel, Man-goto-page):
      * lisp/info.el (Info-find-node-2, Info-extract-pointer, Info-history-back)
      (Info-history-forward, Info-follow-reference, Info-menu)
      (Info-extract-menu-item, Info-extract-menu-counting)
      (Info-forward-node, Info-backward-node, Info-next-menu-item)
      (Info-last-menu-item, Info-next-preorder, Info-last-preorder)
      (Info-next-reference, Info-prev-reference, Info-index)
      (Info-index-next, Info-follow-nearest-node)
      (Info-copy-current-node-name):
      * lisp/imenu.el (imenu--make-index-alist)
      (imenu-default-create-index-function, imenu-add-to-menubar):
      * lisp/files.el (basic-save-buffer, recover-file):
      * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-continue, checkdoc-comments)
      (checkdoc-message-text, checkdoc-defun):
      * lisp/dabbrev.el (dabbrev-completion, dabbrev--abbrev-at-point):
      * lisp/cus-edit.el (customize-changed-options, customize-rogue)
      (customize-saved, custom-variable-set, custom-variable-mark-to-save)
      (custom-variable-mark-to-reset-standard)
      (custom-variable-reset-backup, custom-face-mark-to-reset-standard)
      (custom-file):
      * lisp/completion.el (check-completion-length):
      * lisp/comint.el (comint-search-arg)
      (comint-previous-matching-input-string-position)
      (comint-previous-matching-input)
      (comint-replace-by-expanded-history-before-point, comint-send-input)
      (comint-copy-old-input, comint-backward-matching-input)
      (comint-goto-process-mark, comint-set-process-mark):
      * lisp/calendar/calendar.el (calendar-cursor-to-date): Use it.
      * lisp/bindings.el (debug-ignored-errors): Remove regexps, add `user-error'.
      * src/data.c (PUT_ERROR): New macro.
      (syms_of_data): Use it.  Add new error type `user-error'.
      * src/undo.c (user_error): New function.
      (Fprimitive_undo): Use it.
      * src/print.c (print_error_message): Adjust print style for `user-error'.
      * src/keyboard.c (user_error): New function.
      (Fexit_recursive_edit, Fabort_recursive_edit): Use it.
      71873e2b
  17. 03 May, 2012 1 commit
    • Paul Eggert's avatar
      Do not limit current-time-string to years 1000..9999. · ab0fa4e4
      Paul Eggert authored
      * src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove.
      (Fcurrent_time_string): Support any year that is supported by the
      underlying localtime representation.  Don't use asctime, as it
      has undefined behavior for years outside the range -999..9999.
      * doc/lispref/os.texi (Time of Day): Do not limit current-time-string
      to years 1000..9999.
      * etc/NEWS: Do not limit current-time-string to years 1000..9999.
      ab0fa4e4
  18. 02 May, 2012 5 commits
  19. 01 May, 2012 3 commits
    • Aaron S. Hawley's avatar
      Reimplement execute-extended-command in Elisp. · b593d6a9
      Aaron S. Hawley authored
      * src/keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings):
      Move to simple.el.
      * lisp/simple.el (suggest-key-bindings, execute-extended-command):
      Move from keyboard.c.
      b593d6a9
    • Glenn Morris's avatar
      Remove references to macros that are not defined anywhere · 99cf43f9
      Glenn Morris authored
      * src/syssignal.h: Remove reference to BROKEN_SIGINFO (last used in
      s/ptx4.h), BROKEN_SIGTSTP (last used in m/ustation.h, m/dpx2.h),
      and BROKEN_SIGURG (was in s/gnu-linux.h prior to 2008-02-10).
      All were removed before 23.1.
      99cf43f9
    • Glenn Morris's avatar
      Remove HAVE_LIBNCURSES; it is required to be true · 9311dcff
      Glenn Morris authored
      Also, it was a confusing name, since it does not necessarily mean that
      we literally have libncurses; rather that we have tputs etc.
      
      * configure.in (HAVE_LIBNCURSES): Remove; it is required to be true.
      
      * src/dispnew.c: Remove HAVE_LIBNCURSES test;
      it is always true on relevant platforms.
      
      * nt/config.nt (HAVE_LIBNCURSES): Remove undef; not needed.
      9311dcff