1. 08 Aug, 2013 1 commit
    • Juanma Barranquero's avatar
      * lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register. · 2805a651
      Juanma Barranquero authored
      * lisp/register.el: Add support for framesets.
        (frameset-frame-id, frameset-frame-with-id)
        (frameset-p, frameset-restore, frameset-save): Declare.
        (register-alist): Document framesets.
        (frameset-session-filter-alist): Declare.
        (frameset-to-register): New function.
        (jump-to-register): Implement jumping to framesets.  Doc fix.
        (describe-register-1): Describe framesets.
      2805a651
  2. 07 Aug, 2013 21 commits
    • Juanma Barranquero's avatar
      lisp/frameset.el: Convert `frameset' to vector and add new slots. · a912c016
      Juanma Barranquero authored
      (frameset): Use type vector, not list (incompatible change).
      Do not declare a new constructor, use the default one.
      Upgrade suggested properties `app', `name' and `desc' to slots `app',
      `name' and `description', respectively, and add read-only slot `timestamp'.
      Doc fixes.
      (frameset-copy, frameset-persistent-filter-alist)
      (frameset-filter-alist, frameset-switch-to-gui-p)
      (frameset-switch-to-tty-p, frameset-filter-tty-to-GUI)
      (frameset-filter-sanitize-color, frameset-filter-minibuffer)
      (frameset-filter-iconified, frameset-keep-original-display-p):
      Doc fixes.
      (frameset-filter-shelve-param, frameset-filter-unshelve-param):
      Rename from frameset-filter-(save|restore)-param.  All callers changed.
      Doc fix.
      (frameset-p): Adapt to change to vector and be more thorough.
      Change arg name to OBJECT.  Doc fix.
      (frameset-prop): Rename arg PROP to PROPERTY.  Doc fix.
      (frameset-session-filter-alist): Rename from frameset-live-filter-alist.
      All callers changed.
      (frameset-frame-with-id): Rename from frameset-locate-frame-id.
      All callers changed.
      (frameset--record-minibuffer-relationships): Rename from
      frameset--process-minibuffer-frames.  All callers changed.
      (frameset-save): Add new keyword arguments APP, NAME and DESCRIPTION.
      Use new default constructor (again).  Doc fix.
      (frameset--find-frame-if): Rename from `frameset--find-frame.
      All callers changed.
      (frameset--reuse-frame): Rename arg FRAME-CFG to PARAMETERS.
      (frameset--initial-params): Rename arg FRAME-CFG to PARAMETERS.
      Doc fix.
      (frameset--restore-frame): Rename args FRAME-CFG and WINDOW-CFG to
      PARAMETERS and WINDOW-STATE, respectively.
      (frameset-restore): Add new keyword argument PREDICATE.
      Reset frameset--target-display to nil.  Doc fix.
      
      lisp/desktop.el (desktop-save-frameset): Use new frameset-save args.
      Use lexical-binding.
      a912c016
    • Stefan Monnier's avatar
      * lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var. · f001e98e
      Stefan Monnier authored
      (bat-mode): Use it.
      (bat-mode-syntax-table): Mark \n as end-of-comment.
      (bat-font-lock-keywords): Remove comment rule.
      f001e98e
    • Stefan Monnier's avatar
      * lisp/progmodes/bat-mode.el: Rename from dos.el. Use "bat-" prefix. · 7679edb1
      Stefan Monnier authored
      (dos-mode-help): Remove.  Use describe-mode (C-h m) instead.
      7679edb1
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f. · bb41480a
      Stefan Monnier authored
      (byte-compile-callargs-warn): Use `push'.
      (byte-compile-arglist-warn): Ignore higher-order "calls".
      (byte-compile-file-form-autoload): Use `pcase'.
      (byte-compile-function-form): If quoting a symbol, check that it exists.
      bb41480a
    • Dmitry Antipov's avatar
      Fix typo in ChangeLog entry. · e5eefe9b
      Dmitry Antipov authored
      e5eefe9b
    • Jan Djärv's avatar
      * xselect.c (x_send_client_event): Set send_event and serial, memset · 8fd9c92e
      Jan Djärv authored
      data.l as it might be bigger than data.b.   Use 24 bit mask to
      XSendEvent.
      
      Fixes: debbugs:15034
      8fd9c92e
    • Eli Zaretskii's avatar
      Minor fixes in lisp/progmodes/dos.el. · cdc1ebb9
      Eli Zaretskii authored
       lisp/progmodes/dos.el (dos-font-lock-keywords): Rename LINUX to UNIX
       and add a few popular commands found in batch files.
       (dos, dos-label-face, dos-cmd-help, dos-run, dos-run-args)
       (dos-mode): Doc fixes.
      cdc1ebb9
    • Stefan Monnier's avatar
      * lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode. · 312b1740
      Stefan Monnier authored
      (dos-mode): Use setq-local.  Add space after "rem".
      (dos-mode-syntax-table): Don't use "w" for symbol chars.
      (dos-font-lock-keywords): Try to adjust font-lock rules accordingly.
      312b1740
    • Arni Magnusson's avatar
      * lisp/progmodes/dos.el: New file. · 400a3178
      Arni Magnusson authored
      * lisp/generic-x.el (bat-generic-mode): Redefine as an obsolete alias to
      dos-mode.
      400a3178
    • Eli Zaretskii's avatar
      03eb60c1
    • Eli Zaretskii's avatar
      Minor fixes in the ToDo Mode manual. · 2a024334
      Eli Zaretskii authored
       doc/misc/todo-mode.texi: Update @dircategory.
       (Overview, Todo Items as Diary Entries, Todo Mode Entry Points)
       (File Editing, Marked Items, Item Prefix): Fix usage of @xref and
       @ref.
      2a024334
    • Eli Zaretskii's avatar
      Fix bug #15038 with incorrect Texinfo in Emacs Lisp Intro manual. · f2243267
      Eli Zaretskii authored
       doc/lispintro/emacs-lisp-intro.texi (Beginning init File): Rename from
       "Beginning a .emacs File", since a node name cannot include a
       period.
       (Top, Emacs Initialization, Change a defun): All references
       changed.
      f2243267
    • Eli Zaretskii's avatar
      Fix bug #14616 with unnecessary redrawing of TTY frames. · 0ee18172
      Eli Zaretskii authored
       src/xdisp.c (prepare_menu_bars): Don't call x_consider_frame_title
       for TTY frames that are not the top frame on their console.
      0ee18172
    • Martin Rudalics's avatar
      In w32fullscreen_hook really maximize frame when asked for (Bug#14841). · 16ddd1a6
      Martin Rudalics authored
      * w32term.c (w32fullscreen_hook): Really maximize frame when
      asked for (Bug#14841).
      16ddd1a6
    • Dmitry Antipov's avatar
      Prefer selected_window to Fselected_window, likewise for frames. · d2a95ffb
      Dmitry Antipov authored
      * buffer.c (Fbuffer_swap_text):
      * data.c (Fvariable_binding_locus):
      * window.c (run_window_configuration_change_hook): Adjust users.
      * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
      Use decode_live_frame.
      d2a95ffb
    • Xue Fuqiao's avatar
      Index and whitespace fixes for doc/misc/sc.texi. · 998ad848
      Xue Fuqiao authored
      * sc.texi (Introduction): Fix indexes.
      (Usage Overview):
      (Citations, Citation Elements, Recognizing Citations)
      (Information Keys and the Info Alist, Reference Headers)
      (The Built-in Header Rewrite Functions)
      (Electric References, Reply Buffer Initialization)
      (Filling Cited Text, Selecting an Attribution)
      (Attribution Preferences)
      (Anonymous Attributions, Author Names)
      (Using Regi, Post-yank Formatting Commands)
      (Citing Commands, Insertion Commands)
      (Mail Field Commands)
      (Hints to MUA Authors, Thanks and History): Change from one space
      between sentences to two.
      998ad848
    • Xue Fuqiao's avatar
      98374c9a
    • Dmitry Antipov's avatar
      Be more careful if selected window shows the buffer other than current, · 170da1ec
      Dmitry Antipov authored
      use window_outdated only if this is not so.  This change should also
      address some weird issues discussed in Bug#13012.
      * window.h (window_outdated): New prototype.
      * window.c (window_outdated): Now here.  Convert from static and
      always assume window's buffer.
      (Fwindow_end, Fwindow_line_height): Use it.
      * xdisp.c (reconsider_clip_changes): Remove prototype, drop 2nd arg
      and always assume window's buffer.
      (redisplay_window): Adjust user.
      (redisplay_internal): Call to reconsider_clip_change once and
      check whether mode line should be updated only if selected window
      shows current buffer.
      (run_window_scroll_functions): Use eassert for debugging check.
      (Fmove_point_visually, note_mouse_highlight): Use window_outdated.
      170da1ec
    • Xue Fuqiao's avatar
      20940c20
    • Xue Fuqiao's avatar
      doc/misc/cl.texi: Add indexes. · c85989f5
      Xue Fuqiao authored
      * doc/misc/cl.texi (Argument Lists):
      (For Clauses): Add indexes.
      c85989f5
    • Glenn Morris's avatar
  3. 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
  4. 05 Aug, 2013 1 commit
    • 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