1. 07 Aug, 2013 16 commits
  2. 06 Aug, 2013 17 commits
    • Glenn Morris's avatar
      calendar.el: Add new faces, and day-header-array · 3b5c03d3
      Glenn Morris authored
      * lisp/calendar/calendar.el (calendar-weekday-header)
      (calendar-weekend-header, calendar-month-header): New faces.
      (calendar-day-header-construct): New function.
      (calendar-day-header-width): Also :set calendar-day-header-array.
      (calendar-american-month-header, calendar-european-month-header)
      (calendar-iso-month-header): Use calendar- faces.
      (calendar-generate-month):
      Use calendar-day-header-array for day headers; apply faces to them.
      (calendar-mode): Check calendar-font-lock-keywords non-nil.
      (calendar-abbrev-construct): Add optional maxlen argument.
      (calendar-day-name-array): Doc fix.
      (calendar-day-name-array, calendar-abbrev-length)
      (calendar-day-abbrev-array):
      Also :set calendar-day-header-array, and maybe redraw.
      (calendar-day-header-array): New option. 
      (calendar-font-lock-keywords): Use calendar-day-header-array,
      and calendar- faces.  Make obsolete.
      (calendar-day-name): Add option to use header array.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:15007
      3b5c03d3
    • Jan Tatarik's avatar
      gnus-icalendar.el (gnus-icalendar-event-from-ical): Replace pcase with cond... · ec956438
      Jan Tatarik authored
      gnus-icalendar.el (gnus-icalendar-event-from-ical): Replace pcase with cond for backwards compatability
      ec956438
    • Lars Magne Ingebrigtsen's avatar
      Further shr width computation fixes · 2122cb6d
      Lars Magne Ingebrigtsen authored
      (shr-make-table-1): Redo last change to fix the real problem in
      colspan handling.
      2122cb6d
    • Lars Magne Ingebrigtsen's avatar
      shr table rendering touch-ups · ec6a2d7a
      Lars Magne Ingebrigtsen authored
      * net/shr.el (shr-render-td): Remove debugging.
      (shr-render-td): Make width computation consistent by defaulting
      all zero-width columns to 10 characters.  This may not be optimal,
      but it's at least consistent.
      ec6a2d7a
    • Stephen Berman's avatar
      * NEWS: Mention Todo mode user manual. · 8bcced1f
      Stephen Berman authored
      8bcced1f
    • Dmitry Antipov's avatar
      * window.c (window_scroll, window_scroll_pixel_based) · 56b5d5b1
      Dmitry Antipov authored
      (window_scroll_line_based): Use bool for booleans.
      56b5d5b1
    • Dmitry Antipov's avatar
      * lisp/files.el (cache-long-line-scans): Make · ed4fd9c5
      Dmitry Antipov authored
      obsolete alias to `cache-long-scans'.
      * etc/NEWS: Mention `cache-long-scans'.
      ed4fd9c5
    • Paul Eggert's avatar
      * process.c: Fix minor off-by-one issues in descriptor counts. · 2878ba7e
      Paul Eggert authored
      This shouldn't fix any real bugs, but it cleans up the code a bit.
      (max_process_desc, max_input_desc): -1, not 0, means none.
      All uses changed.
      (delete_input_desc): New function.
      (delete_write_fd, delete_keyboard_wait_descriptor): Use it.
      (deactivate_process): Scan backwards when recomuting max_process_desc;
      that should be faster.
      (init_process_emacs): Initialize max_input_desc.
      2878ba7e
    • Katsumi Yamaoka's avatar
    • Juanma Barranquero's avatar
      lisp/frameset.el: Doc fixes. · 024b38fc
      Juanma Barranquero authored
      (frameset, frameset-filter-alist, frameset-filter-params, frameset-save)
      (frameset--reuse-frame, frameset--minibufferless-last-p, frameset-restore):
      Doc fixes.
      (frameset-compute-pos): Rename from frameset--compute-pos, and add docstring.
      (frameset-move-onscreen): Use frameset-compute-pos.
      Most changes suggested by Drew Adams <drew.adams@oracle.com>.
      024b38fc
    • Juanma Barranquero's avatar
      64e22afe
    • Dmitry Antipov's avatar
      c8c2aca8
    • Juanma Barranquero's avatar
      8951efef
    • Dmitry Antipov's avatar
      Use region cache to speedup bidi_find_paragraph_start. · e30b79c1
      Dmitry Antipov authored
      * src/buffer.h (struct buffer): New member bidi_paragraph_cache.
      Rename cache_long_line_scans to cache_long_scans.
      * src/buffer.c (bset_cache_long_line_scans): Rename to
      bset_cache_long_scans.
      (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer)
      (Fbuffer_swap_text, init_buffer_once): Take bidi_paragraph_cache
      into account.
      (syms_of_buffer): Rename cache-long-line-scans to
      cache-long-scans.  Adjust docstring.
      * src/search.c (newline_cache_on_off):
      * src/indent.c (width_run_cache_on_off): Adjust users.
      * src/bidi.c (bidi_paragraph_cache_on_off): New function.
      (bidi_find_paragraph_start): Use bidi_paragraph_cache if needed.
      * src/insdel.c (prepare_to_modify_buffer): Invalidate
      bidi_paragraph_cache if enabled.
      * doc/lispref/positions.texi (Motion by Screen Lines):
      * doc/lispref/display.texi (Truncation): Rename `cache-long-line-scans'
      to `cache-long-scans'.
      e30b79c1
    • Dmitry Antipov's avatar
      Invalidate region caches only if buffer text is going to be changed. · 00012b86
      Dmitry Antipov authored
      * lisp.h (modify_region_1): Remove 3rd arg and rename to...
      (modify_text): ...new prototype.
      (prepare_to_modify_buffer_1): New prototype.
      * textprop.c (modify_region): Rename to...
      (modify_text_properties): ...new function.
      (add_text_properties_1, set_text_properties, Fremove_text_properties)
      (Fremove_list_of_text_properties): Adjust users.
      * insdel.c (modify_region_1): Remove 3rd arg and reimplement as...
      (modify_text): ...new function.
      (prepare_to_modify_buffer): Reimplement mostly as a wrapper for...
      (prepare_to_modify_buffer_1): ...new function.
      * casefiddle.c (casify_region):
      * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
      (Ftranspose_regions): Use modify_text.
      00012b86
    • Juanma Barranquero's avatar
      lisp/frameset.el: Various fixes. · 307764cc
      Juanma Barranquero authored
      (frameset-p): Don't check non-nullness of the `properties'
      slot , which can indeed be nil.
      (frameset-live-filter-alist, frameset-persistent-filter-alist):
      Move entry for `left' from persistent to live filter alist.
      (frameset-filter-alist, frameset--minibufferless-last-p, frameset-save):
      Doc fixes.
      (frameset-filter-params): When restoring a frame, copy items added to
      `filtered', to avoid unwittingly modifying the original parameters.
      (frameset-move-onscreen): Rename from frameset--move-onscreen.  Doc fix.
      (frameset--restore-frame): Fix reference to frameset-move-onscreen.
      307764cc
    • Juanma Barranquero's avatar
  3. 05 Aug, 2013 7 commits
    • Stefan Monnier's avatar
      Revert introduction of isearch-filter-predicates. · dc6c0eda
      Stefan Monnier authored
      Rely on add-function instead.
      * lisp/loadup.el: Preload nadvice.
      * lisp/isearch.el (isearch-filter-predicates): Rename it back to
      isearch-filter-predicate.
      (isearch-message-prefix): Use advice-function-mapc and advice
      properties to get the isearch-message-prefix.
      (isearch-search, isearch-lazy-highlight-search): Revert to funcall
      instead of run-hook-with-args-until-failure.
      (isearch-filter-visible): Not obsolete any more.
      * lisp/replace.el (perform-replace): Revert to funcall
      instead of run-hook-with-args-until-failure.
      * lisp/wdired.el (wdired-change-to-wdired-mode): Use add-function.
      * lisp/dired-aux.el (dired-isearch-filenames-mode): Rename from
      dired-isearch-filenames-toggle; make it into a proper minor mode.
      Use add/remove-function.
      (dired-isearch-filenames-setup, dired-isearch-filenames-end):
      Call the minor-mode rather than add/remove-hook.
      (dired-isearch-filter-filenames):
      Remove isearch-message-prefix property.
      * lisp/info.el (Info--search-loop): New function, extracted from Info-search.
      Funcall isearch-filter-predicate instead of
      run-hook-with-args-until-failure isearch-filter-predicates.
      (Info-search): Use it.
      (Info-mode): Use isearch-filter-predicate instead of
      isearch-filter-predicates.
      * src/lisp.mk (lisp): Add nadvice.elc.
      * lib-src/makefile.w32-in (lisp2): Add nadvice.elc.
      
      Fixes: debbugs:14714
      dc6c0eda
    • Eli Zaretskii's avatar
      Fix bugs in update-game-score, on MS-Windows and elsewhere. · 98a428c1
      Eli Zaretskii authored
       lib-src/update-game-score.c (read_score): Try reading a character before
       probing the stream for EOF.  Initialize score->score to zero,
       before reading and accumulating the score.
       (read_scores): Fix logic that determines which value to return.
       Close the input stream when finished reading the scores (avoids
       failures in overwriting the file with a new one on MS-Windows,
       since a file that is open cannot be deleted).
       lib-src/ntlib.h (rename): Don't undefine.
       lib-src/ntlib.c (sys_rename): New function, needed for
       update-game-score.
      98a428c1
    • Juanma Barranquero's avatar
      5c0e57fe
    • Glenn Morris's avatar
    • Dmitry Antipov's avatar
      Do not call to `selected-window' where it is assumed by default. · 290d5b58
      Dmitry Antipov authored
      Affected functions are `window-minibuffer-p', `window-dedicated-p',
      `window-hscroll', `window-width', `window-height', `window-buffer',
      `window-frame', `window-start', `window-point', `next-window'
      and `window-display-table'.
      * abbrev.el (abbrev--default-expand):
      * bs.el (bs--show-with-configuration):
      * buff-menu.el (Buffer-menu-mouse-select):
      * calc/calc.el (calc):
      * calendar/calendar.el (calendar-generate-window):
      * calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
      (diary-make-entry):
      * comint.el (send-invisible, comint-dynamic-complete-filename)
      (comint-dynamic-simple-complete, comint-dynamic-list-completions):
      * completion.el (complete):
      * dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
      * disp-table.el (describe-current-display-table):
      * doc-view.el (doc-view-insert-image):
      * ebuff-menu.el (Electric-buffer-menu-mouse-select):
      * ehelp.el (with-electric-help):
      * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
      * emacs-lisp/helper.el (Helper-help-scroller):
      * emulation/cua-base.el (cua--post-command-handler-1):
      * eshell/esh-mode.el (eshell-output-filter):
      * ffap.el (ffap-gnus-wrapper):
      * help-macro.el (make-help-screen):
      * hilit-chg.el (highlight-compare-buffers):
      * hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
      * hl-line.el (global-hl-line-highlight):
      * icomplete.el (icomplete-simple-completing-p):
      * isearch.el (isearch-done):
      * jit-lock.el (jit-lock-stealth-fontify):
      * mail/rmailsum.el (rmail-summary-scroll-msg-up):
      * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
      * mpc.el (mpc-tagbrowser, mpc):
      * net/rcirc.el (rcirc-any-buffer):
      * play/gomoku.el (gomoku-max-width, gomoku-max-height):
      * play/landmark.el (landmark-max-width, landmark-max-height):
      * play/zone.el (zone):
      * progmodes/compile.el (compilation-goto-locus):
      * progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
      * progmodes/etags.el (find-tag-other-window):
      * progmodes/fortran.el (fortran-column-ruler):
      * progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
      * progmodes/verilog-mode.el (verilog-point-text):
      * reposition.el (reposition-window):
      * rot13.el (toggle-rot13-mode):
      * server.el (server-switch-buffer):
      * shell.el (shell-dynamic-complete-command)
      (shell-dynamic-complete-environment-variable):
      * simple.el (insert-buffer, set-selective-display)
      (delete-completion-window):
      * speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
      (speedbar-recenter):
      * startup.el (fancy-splash-head):
      * textmodes/ispell.el (ispell-command-loop):
      * textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
      * tutorial.el (help-with-tutorial):
      * vc/add-log.el (add-change-log-entry):
      * vc/compare-w.el (compare-windows):
      * vc/ediff-help.el (ediff-indent-help-message):
      * vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
      * vc/ediff-wind.el (ediff-skip-unsuitable-frames)
      (ediff-setup-control-frame):
      * vc/emerge.el (emerge-position-region):
      * vc/pcvs-util.el (cvs-bury-buffer):
      * window.el (walk-windows, mouse-autoselect-window-select):
      * winner.el (winner-set-conf, winner-undo): Related users changed.
      290d5b58
    • Dave Abrahams's avatar
      gnus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can... · b27a1bd5
      Dave Abrahams authored
      gnus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can create nndoc groups that excerpt other groups
      b27a1bd5
    • Xue Fuqiao's avatar
      57fedd9f