bpt/emacs.git
10 years ago* lisp/emacs-lisp/edebug.el (edebug-debugger): Use edebug-eval to run the
Stefan Monnier [Thu, 8 Aug 2013 23:14:20 +0000 (19:14 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-debugger): Use edebug-eval to run the
break-condition in the context of the debugged code.

Fixes: debbugs:12685

10 years ago* lisp/comint.el:
Christopher Schmidt [Thu, 8 Aug 2013 19:22:58 +0000 (21:22 +0200)]
* lisp/comint.el:
Do not use an overlay to highlight the last prompt.  (Bug#14744)
(comint-mode): Make comint-last-prompt buffer local.
(comint-last-prompt): New variable.
(comint-last-prompt-overlay): Remove.  Superseded by
comint-last-prompt.
(comint-snapshot-last-prompt, comint-output-filter): Use
comint-last-prompt.

10 years ago* nsterm.m (ns_update_begin): Don't change clip path if it would be
Jan Djärv [Thu, 8 Aug 2013 17:52:00 +0000 (19:52 +0200)]
* nsterm.m (ns_update_begin): Don't change clip path if it would be
larger than the NSWindow.

Fixes: debbugs:14934

10 years agolisp/ChangeLog: Fix typo in previous change.
Juanma Barranquero [Thu, 8 Aug 2013 16:13:32 +0000 (18:13 +0200)]
lisp/ChangeLog: Fix typo in previous change.

10 years agolisp/frameset.el (frameset-save): Check validity of the resulting frameset.
Juanma Barranquero [Thu, 8 Aug 2013 15:59:14 +0000 (17:59 +0200)]
lisp/frameset.el (frameset-save): Check validity of the resulting frameset.
(frameset-valid-p): Doc fix.

10 years agoRedesign redisplay interface to drop global variable updated_window.
Dmitry Antipov [Thu, 8 Aug 2013 14:51:07 +0000 (18:51 +0400)]
Redesign redisplay interface to drop global variable updated_window.
Always pass currently updated window as a parameter to update routines.
* dispextern.h (updated_window): Remove declaration.
(struct redisplay_interface): Pass window parameter to
write_glyphs, insert_glyphs, clear_end_of_line, cursor_to
and after_update_window_hook.
(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line, x_cursor_to):
Adjust prototypes.
* dispnew.c (updated_window): Remove.
(redraw_overlapped_rows, update_marginal_area, update_text_area)
(update_window_line): Adjust to match redisplay interface changes.
* nsterm.m (ns_update_window_begin, ns_update_window_end)
(ns_scroll_run, ns_after_update_window_line):
* w32term.c (x_update_window_begin, x_update_window_end)
(x_after_update_window_line, x_scroll_run):
* xterm.c (x_update_window_begin, x_update_window_end)
(x_after_update_window_line, x_scroll_run):
* xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
Likewise.  Adjust comments where appropriate.
(x_cursor_to): Simplify because this is always called during window
update (but install debugging check anyway).
(expose_window): Check must_be_updated_p flag to see whether this
function is called during window update.

10 years agodoc/lispref/buffers.texi: Add documentation for ido-record-command(s).
Xue Fuqiao [Thu, 8 Aug 2013 14:03:56 +0000 (22:03 +0800)]
doc/lispref/buffers.texi: Add documentation for ido-record-command(s).

* lisp/ido.el (ido-record-command): Add doc string.

10 years agodoc/lispref/buffers.texi: Add documentation of some user options for Ido.
Xue Fuqiao [Thu, 8 Aug 2013 13:53:30 +0000 (21:53 +0800)]
doc/lispref/buffers.texi: Add documentation of some user options for Ido.

10 years agoAdd documentation of `ido-confirm-unique-completion'.
Xue Fuqiao [Thu, 8 Aug 2013 12:52:25 +0000 (20:52 +0800)]
Add documentation of `ido-confirm-unique-completion'.

doc/misc/ido.texi: (Misc Customization): Add documentation of `ido-confirm-unique-completion'.

10 years agoAdd documentation for working directory in Ido.
Xue Fuqiao [Thu, 8 Aug 2013 12:31:38 +0000 (20:31 +0800)]
Add documentation for working directory in Ido.

* doc/misc/ido.texi (Top): Insert node "Working Directories" in menu.
(Working Directories): New node.

doc/misc/sc.texi: (What Supercite Does): Typo fix.

10 years agolisp/frameset.el: Doc fixes.
Juanma Barranquero [Thu, 8 Aug 2013 10:44:07 +0000 (12:44 +0200)]
lisp/frameset.el: Doc fixes.

10 years agolisp/frameset.el: Revert to built-in frameset-p; document slot accessors.
Juanma Barranquero [Thu, 8 Aug 2013 09:54:29 +0000 (11:54 +0200)]
lisp/frameset.el: Revert to built-in frameset-p; document slot accessors.
(frameset): Do not disable creation of the default frameset-p predicate.
Doc fix.
(frameset-valid-p): New function, copied from the old predicate-p.
Add additional checks.
(frameset-restore): Check with frameset-valid-p.
(frameset-p, frameset-version, frameset-timestamp, frameset-app)
(frameset-name, frameset-description, frameset-properties)
(frameset-states): Add docstring.

10 years agoDo not reset window modification event counters excessively.
Dmitry Antipov [Thu, 8 Aug 2013 04:42:40 +0000 (08:42 +0400)]
Do not reset window modification event counters excessively.
These leftovers and poor man's tricky methods to catch extra
redisplay's attention are no longer needed.
* frame.c (set_menu_bar_lines_1):
* minibuf.c (read_minibuf_unwind):
* window.c (Fset_window_start, set_window_buffer, window_resize_apply)
(grow_mini_window, shrink_mini_window, window_scroll_pixel_based)
(window_scroll_line_based, Fset_window_configuration):
* xdisp.c (redisplay_window): Do not reset last_modified and
last_overlay_modified counters.

10 years agolisp/frameset.el (frameset-p, frameset-prop): Doc fixes.
Juanma Barranquero [Thu, 8 Aug 2013 03:54:41 +0000 (05:54 +0200)]
lisp/frameset.el (frameset-p, frameset-prop): Doc fixes.

10 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): New function,
Stefan Monnier [Thu, 8 Aug 2013 01:37:47 +0000 (21:37 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): New function,
extracted from byte-compile-callargs-warn and byte-compile-normal-call.
(byte-compile-callargs-warn, byte-compile-function-form): Use it.
(byte-compile-normal-call): Remove obsolescence check.

10 years agolisp/frameset.el (frameset-restore): Doc fix.
Juanma Barranquero [Thu, 8 Aug 2013 01:19:11 +0000 (03:19 +0200)]
lisp/frameset.el (frameset-restore): Doc fix.

10 years agoetc/NEWS: Document new keybinding of `C-x r f' to frameset-to-register.
Juanma Barranquero [Thu, 8 Aug 2013 00:46:48 +0000 (02:46 +0200)]
etc/NEWS: Document new keybinding of `C-x r f' to frameset-to-register.

10 years ago* lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register.
Juanma Barranquero [Thu, 8 Aug 2013 00:44:22 +0000 (02:44 +0200)]
* lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register.

* 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.

10 years agolisp/frameset.el: Convert `frameset' to vector and add new slots.
Juanma Barranquero [Wed, 7 Aug 2013 22:54:08 +0000 (00:54 +0200)]
lisp/frameset.el: Convert `frameset' to vector and add new slots.
(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.

10 years ago* lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var.
Stefan Monnier [Wed, 7 Aug 2013 22:53:18 +0000 (18:53 -0400)]
* lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var.
(bat-mode): Use it.
(bat-mode-syntax-table): Mark \n as end-of-comment.
(bat-font-lock-keywords): Remove comment rule.

10 years ago* lisp/progmodes/bat-mode.el: Rename from dos.el. Use "bat-" prefix.
Stefan Monnier [Wed, 7 Aug 2013 22:42:44 +0000 (18:42 -0400)]
* lisp/progmodes/bat-mode.el: Rename from dos.el.  Use "bat-" prefix.
(dos-mode-help): Remove.  Use describe-mode (C-h m) instead.

10 years ago* lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f.
Stefan Monnier [Wed, 7 Aug 2013 17:33:30 +0000 (13:33 -0400)]
* lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f.
(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.

10 years agoFix typo in ChangeLog entry.
Dmitry Antipov [Wed, 7 Aug 2013 17:03:46 +0000 (21:03 +0400)]
Fix typo in ChangeLog entry.

10 years ago* xselect.c (x_send_client_event): Set send_event and serial, memset
Jan Djärv [Wed, 7 Aug 2013 16:59:23 +0000 (18:59 +0200)]
* xselect.c (x_send_client_event): Set send_event and serial, memset
data.l as it might be bigger than data.b.   Use 24 bit mask to
XSendEvent.

Fixes: debbugs:15034

10 years agoMinor fixes in lisp/progmodes/dos.el.
Eli Zaretskii [Wed, 7 Aug 2013 16:37:04 +0000 (19:37 +0300)]
Minor fixes in lisp/progmodes/dos.el.

 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.

10 years ago* lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode.
Stefan Monnier [Wed, 7 Aug 2013 15:50:16 +0000 (11:50 -0400)]
* lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode.
(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.

10 years ago* lisp/progmodes/dos.el: New file.
Arni Magnusson [Wed, 7 Aug 2013 15:43:57 +0000 (11:43 -0400)]
* lisp/progmodes/dos.el: New file.
* lisp/generic-x.el (bat-generic-mode): Redefine as an obsolete alias to
dos-mode.

10 years agoxdisp.c: Fix a typo in a comment for the last commit.
Eli Zaretskii [Wed, 7 Aug 2013 15:14:23 +0000 (18:14 +0300)]
xdisp.c: Fix a typo in a comment for the last commit.

10 years agoMinor fixes in the ToDo Mode manual.
Eli Zaretskii [Wed, 7 Aug 2013 14:15:23 +0000 (17:15 +0300)]
Minor fixes in the ToDo Mode manual.

 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.

10 years agoFix bug #15038 with incorrect Texinfo in Emacs Lisp Intro manual.
Eli Zaretskii [Wed, 7 Aug 2013 13:58:41 +0000 (16:58 +0300)]
Fix bug #15038 with incorrect Texinfo in Emacs Lisp Intro manual.

 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.

10 years agoFix bug #14616 with unnecessary redrawing of TTY frames.
Eli Zaretskii [Wed, 7 Aug 2013 13:49:47 +0000 (16:49 +0300)]
Fix bug #14616 with unnecessary redrawing of TTY frames.

 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.

10 years agoIn w32fullscreen_hook really maximize frame when asked for (Bug#14841).
Martin Rudalics [Wed, 7 Aug 2013 13:34:17 +0000 (15:34 +0200)]
In w32fullscreen_hook really maximize frame when asked for (Bug#14841).

* w32term.c (w32fullscreen_hook): Really maximize frame when
asked for (Bug#14841).

10 years agoPrefer selected_window to Fselected_window, likewise for frames.
Dmitry Antipov [Wed, 7 Aug 2013 13:21:59 +0000 (17:21 +0400)]
Prefer selected_window to Fselected_window, likewise for frames.
* 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.

10 years agoIndex and whitespace fixes for doc/misc/sc.texi.
Xue Fuqiao [Wed, 7 Aug 2013 13:19:48 +0000 (21:19 +0800)]
Index and whitespace fixes for doc/misc/sc.texi.

* 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.

10 years ago* doc/misc/newsticker.texi (Usage): Use @key for RET.
Xue Fuqiao [Wed, 7 Aug 2013 12:44:16 +0000 (20:44 +0800)]
* doc/misc/newsticker.texi (Usage): Use @key for RET.

10 years agoBe more careful if selected window shows the buffer other than current,
Dmitry Antipov [Wed, 7 Aug 2013 10:32:08 +0000 (14:32 +0400)]
Be more careful if selected window shows the buffer other than current,
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.

10 years agodoc/misc/cl.texi: Add index for compiler macro.
Xue Fuqiao [Wed, 7 Aug 2013 07:01:54 +0000 (15:01 +0800)]
doc/misc/cl.texi: Add index for compiler macro.

10 years agodoc/misc/cl.texi: Add indexes.
Xue Fuqiao [Wed, 7 Aug 2013 02:25:52 +0000 (10:25 +0800)]
doc/misc/cl.texi: Add indexes.

* doc/misc/cl.texi (Argument Lists):
(For Clauses): Add indexes.

10 years ago* lisp/calendar/calendar.el (calendar-font-lock-keywords): Set to nil
Glenn Morris [Wed, 7 Aug 2013 00:06:43 +0000 (20:06 -0400)]
* lisp/calendar/calendar.el (calendar-font-lock-keywords): Set to nil

10 years agocalendar.el: Add new faces, and day-header-array
Glenn Morris [Tue, 6 Aug 2013 23:53:49 +0000 (19:53 -0400)]
calendar.el: Add new faces, and day-header-array

* 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

10 years agognus-icalendar.el (gnus-icalendar-event-from-ical): Replace pcase with cond for backw...
Jan Tatarik [Tue, 6 Aug 2013 22:09:27 +0000 (22:09 +0000)]
gnus-icalendar.el (gnus-icalendar-event-from-ical): Replace pcase with cond for backwards compatability

10 years agoFurther shr width computation fixes
Lars Magne Ingebrigtsen [Tue, 6 Aug 2013 22:05:33 +0000 (00:05 +0200)]
Further shr width computation fixes

(shr-make-table-1): Redo last change to fix the real problem in
colspan handling.

10 years agoshr table rendering touch-ups
Lars Magne Ingebrigtsen [Tue, 6 Aug 2013 21:28:38 +0000 (23:28 +0200)]
shr table rendering touch-ups

* 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.

10 years ago* NEWS: Mention Todo mode user manual.
Stephen Berman [Tue, 6 Aug 2013 20:28:23 +0000 (22:28 +0200)]
* NEWS: Mention Todo mode user manual.

10 years ago* window.c (window_scroll, window_scroll_pixel_based)
Dmitry Antipov [Tue, 6 Aug 2013 16:51:41 +0000 (20:51 +0400)]
* window.c (window_scroll, window_scroll_pixel_based)
(window_scroll_line_based): Use bool for booleans.

10 years ago* lisp/files.el (cache-long-line-scans): Make
Dmitry Antipov [Tue, 6 Aug 2013 16:33:14 +0000 (20:33 +0400)]
* lisp/files.el (cache-long-line-scans): Make
obsolete alias to `cache-long-scans'.
* etc/NEWS: Mention `cache-long-scans'.

10 years ago* process.c: Fix minor off-by-one issues in descriptor counts.
Paul Eggert [Tue, 6 Aug 2013 14:17:25 +0000 (07:17 -0700)]
* process.c: Fix minor off-by-one issues in descriptor counts.

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.

10 years agolisp/gnus/mm-decode.el (mm-display-external): Work for xdg-open
Katsumi Yamaoka [Tue, 6 Aug 2013 13:52:59 +0000 (13:52 +0000)]
lisp/gnus/mm-decode.el (mm-display-external): Work for xdg-open

10 years agolisp/frameset.el: Doc fixes.
Juanma Barranquero [Tue, 6 Aug 2013 12:18:43 +0000 (14:18 +0200)]
lisp/frameset.el: Doc fixes.
(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>.

10 years agolisp/find-lisp.el: Fix typos in docstrings.
Juanma Barranquero [Tue, 6 Aug 2013 12:12:33 +0000 (14:12 +0200)]
lisp/find-lisp.el: Fix typos in docstrings.

10 years ago* frame.el (get-other-frame): Tiny cleanup.
Dmitry Antipov [Tue, 6 Aug 2013 10:59:39 +0000 (14:59 +0400)]
* frame.el (get-other-frame): Tiny cleanup.

10 years agolisp/vc/vc.el: Silence byte-compiler warning.
Juanma Barranquero [Tue, 6 Aug 2013 09:38:41 +0000 (11:38 +0200)]
lisp/vc/vc.el: Silence byte-compiler warning.

10 years agoUse region cache to speedup bidi_find_paragraph_start.
Dmitry Antipov [Tue, 6 Aug 2013 06:53:09 +0000 (10:53 +0400)]
Use region cache to speedup bidi_find_paragraph_start.
* 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'.

10 years agoInvalidate region caches only if buffer text is going to be changed.
Dmitry Antipov [Tue, 6 Aug 2013 05:30:18 +0000 (09:30 +0400)]
Invalidate region caches only if buffer text is going to be changed.
* 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.

10 years agolisp/frameset.el: Various fixes.
Juanma Barranquero [Tue, 6 Aug 2013 01:26:29 +0000 (03:26 +0200)]
lisp/frameset.el: Various fixes.
(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.

10 years agolisp/dired.el (dired-insert-directory): Revert change in 2013-06-21T12:24:37Z!lekktu...
Juanma Barranquero [Tue, 6 Aug 2013 01:03:08 +0000 (03:03 +0200)]
lisp/dired.el (dired-insert-directory): Revert change in 2013-06-21T12:24:37Z!lekktu@gmail.com.

Fixes: debbugs:15028

10 years agoRevert introduction of isearch-filter-predicates.
Stefan Monnier [Mon, 5 Aug 2013 18:05:46 +0000 (14:05 -0400)]
Revert introduction of isearch-filter-predicates.
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

10 years agoFix bugs in update-game-score, on MS-Windows and elsewhere.
Eli Zaretskii [Mon, 5 Aug 2013 17:09:28 +0000 (20:09 +0300)]
Fix bugs in update-game-score, on MS-Windows and elsewhere.

 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.

10 years agoetc/tutorials/TUTORIAL.es: Fix typo (bug#15027).
Juanma Barranquero [Mon, 5 Aug 2013 16:29:09 +0000 (18:29 +0200)]
etc/tutorials/TUTORIAL.es: Fix typo (bug#15027).

10 years agoadmin/make-tarball.txt: mention platform-testers mailing list
Glenn Morris [Mon, 5 Aug 2013 16:18:57 +0000 (09:18 -0700)]
admin/make-tarball.txt: mention platform-testers mailing list

10 years agoDo not call to `selected-window' where it is assumed by default.
Dmitry Antipov [Mon, 5 Aug 2013 14:26:57 +0000 (18:26 +0400)]
Do not call to `selected-window' where it is assumed by default.
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.

10 years agognus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can create...
Dave Abrahams [Mon, 5 Aug 2013 14:15:37 +0000 (14:15 +0000)]
gnus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can create nndoc groups that excerpt other groups

10 years ago* doc/misc/cl.texi (Blocks and Exits): Add an index.
Xue Fuqiao [Mon, 5 Aug 2013 13:28:29 +0000 (21:28 +0800)]
* doc/misc/cl.texi (Blocks and Exits): Add an index.

10 years agolisp/frameset.el: New frame-id functions.
Juanma Barranquero [Mon, 5 Aug 2013 13:06:29 +0000 (15:06 +0200)]
lisp/frameset.el: New frame-id functions.
(frameset--set-id): Doc fix.
(frameset-frame-id, frameset-frame-id-equal-p)
(frameset-locate-frame-id): New functions.
(frameset--process-minibuffer-frames, frameset--reuse-frame)
(frameset-restore): Use them.

10 years ago* doc/lispref/windows.texi (Window Start and End): Add an index.
Xue Fuqiao [Mon, 5 Aug 2013 11:37:47 +0000 (19:37 +0800)]
* doc/lispref/windows.texi (Window Start and End): Add an index.

10 years agoDo not call to `selected-frame' where it is assumed by default.
Dmitry Antipov [Mon, 5 Aug 2013 10:35:55 +0000 (14:35 +0400)]
Do not call to `selected-frame' where it is assumed by default.
Affected functions are `raise-frame', `redraw-frame',
`frame-first-window', `frame-terminal' and `delete-frame'.
* lisp/calendar/appt.el (appt-disp-window):
* lisp/epg.el (epg-wait-for-completion):
* lisp/follow.el (follow-delete-other-windows-and-split)
(follow-avoid-tail-recenter):
* lisp/international/mule.el (set-terminal-coding-system):
* lisp/mail/rmail.el (rmail-mail-return):
* lisp/net/newst-plainview.el (newsticker--buffer-set-uptodate):
* lisp/progmodes/f90.el (f90-add-imenu-menu):
* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar-toggle):
* lisp/server.el (server-switch-buffer):
* lisp/simple.el (delete-completion-window):
* lisp/talk.el (talk):
* lisp/term/xterm.el (terminal-init-xterm-modify-other-keys)
(xterm-turn-on-modify-other-keys, xterm-remove-modify-other-keys):
* lisp/vc/ediff-util.el (ediff-status-info, ediff-show-diff-output):
* lisp/vc/ediff.el (ediff-documentation): Related users changed.
* lisp/frame.el (selected-terminal): Remove the leftover.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 5 Aug 2013 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* calendar/calendar.el (calendar-generate-month, calendar-font-lock-keywords):
Glenn Morris [Mon, 5 Aug 2013 06:54:30 +0000 (23:54 -0700)]
* calendar/calendar.el (calendar-generate-month, calendar-font-lock-keywords):
Fix for calendar-day-header-width > length of any day name.

10 years ago* lisp/calendar/calendar.el (calendar-generate-month):
Glenn Morris [Mon, 5 Aug 2013 06:49:37 +0000 (23:49 -0700)]
* lisp/calendar/calendar.el (calendar-generate-month):
Fix for calendar-column-width != 1 + calendar-day-digit-width.

10 years ago* lisp/frameset.el: Miscellaneous cleanups.
Juanma Barranquero [Mon, 5 Aug 2013 04:45:17 +0000 (06:45 +0200)]
* lisp/frameset.el: Miscellaneous cleanups.
  (frameset): Add docstring.  Move :version property to its
  own `version' slot.
  (frameset-copy): Rename from copy-frameset.
  (frameset-p): Check more thoroughly.
  (frameset-prop): Do not check for :version, which is no longer a prop.
  (frameset-live-filter-alist, frameset-persistent-filter-alist):
  Use new :never value instead of t.
  (frameset-filter-alist): Expand and clarify docstring.
  (frameset-filter-tty-to-GUI, frameset-filter-sanitize-color)
  (frameset-filter-minibuffer, frameset-filter-save-param)
  (frameset-filter-restore-param, frameset-filter-iconified):
  Add pointer to docstring of frameset-filter-alist.
  (frameset-filter-params): Rename filter values to be more meaningful:
  :never instead of t, and reverse the meanings of :save and :restore.
  (frameset--process-minibuffer-frames): Clarify error message.
  (frameset-save): Avoid unnecessary and confusing call to framep.
  Use new BOA constructor for framesets.
  (frameset--reuse-list): Doc fix.
  (frameset--restore-frame): Rename from frameset--get-frame.  Doc fix.
  (frameset--minibufferless-last-p): Rename from frameset--sort-states.
  (frameset-minibufferless-first-p): Doc fix.
  Rename from frameset-sort-frames-for-deletion.
  (frameset-restore): Doc fixes.  Use new function names.
  Most changes suggested by Drew Adams <drew.adams@oracle.com>.

* lisp/desktop.el (desktop-clear): Use new name of sort predicate.

10 years agoNew macro to iterate over live buffers similar to frames.
Dmitry Antipov [Mon, 5 Aug 2013 04:14:43 +0000 (08:14 +0400)]
New macro to iterate over live buffers similar to frames.
* buffer.h (FOR_EACH_LIVE_BUFFER): New macro.
(Vbuffer_alist, Qpriority, Qbefore_string, Qafter_string):
Declare buffer-related variables here to offload lisp.h.
* buffer.c (Vbuffer_alist): Adjust comment.
(Fget_file_buffer, get_truename_buffer, Fother_buffer)
(other_buffer_safely):
* data.c (store_symval_forwarding):
* dispnew.c (Fframe_or_buffer_changed_p):
* fileio.c (Fdo_auto_save):
* filelock.c (unlock_all_files):
* minibuf.c (read_minibuf): Use FOR_EACH_LIVE_BUFFER.

10 years agoExtract truncate-string-to-width tests to a separate file
Glenn Morris [Mon, 5 Aug 2013 01:32:00 +0000 (18:32 -0700)]
Extract truncate-string-to-width tests to a separate file

* test/automated/mule-util.el: New file, with tests extracted from
lisp/international/mule-util.el.
Copyright years based on when the original test-suite comment was
added to lisp/international/mule-util.el (in 2002).

* lisp/international/mule-util.el: Extract comment test-suite out to
separate file.

10 years ago* lisp/frameset.el: Add new predicate values for frameset-restore args.
Juanma Barranquero [Sun, 4 Aug 2013 22:12:18 +0000 (00:12 +0200)]
* lisp/frameset.el: Add new predicate values for frameset-restore args.
  (frameset-live-filter-alist, frameset-persistent-filter-alist):
  New variables.
  (frameset-filter-alist): Use them.  Add autoload cookie.
  (frameset-filter-tty-to-GUI): Move from desktop.el and rename.
  (frameset--set-id, frameset--reuse-frame): Rename `frame-id' to
  `frameset--id' (it's supposed to be internal to frameset.el).
  (frameset--process-minibuffer-frames): Ditto.  Doc fix.
  (frameset--initial-params): New function.
  (frameset--get-frame): Use it.  Doc fix.
  (frameset--move-onscreen): Accept new PRED value for FORCE-ONSCREEN.
  Accept :all, not 'all.
  (frameset-restore): Add new predicate values for FORCE-ONSCREEN and
  FORCE-DISPLAY.  Use :keywords for constant arguments to avoid collision
  with fbound symbols.  Fix frame id matching, and remove matching ids if
  the frame being restored is deleted.  Obey :delete.

* lisp/desktop.el (desktop-restore-forces-onscreen)
  (desktop-restore-reuses-frames): Document :keyword constant values.
  (desktop-filter-parameters-alist): Remove, now identical to
  frameset-filter-alist.
  (desktop--filter-tty*): Remove, moved to frameset.el.
  (desktop-save-frameset, desktop-restore-frameset):
  Do not pass :filters argument.

10 years agoAdd Todo mode user manual.
Stephen Berman [Sun, 4 Aug 2013 21:27:49 +0000 (23:27 +0200)]
Add Todo mode user manual.

* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add todo-mode.
(todo-mode, $(buildinfodir)/todo-mode$(INFO_EXT)):
(todo-mode.dvi, todo-mode.pdf): New rules.

* doc/misc/todo-mode.texi: New file.

* info/dir: Add todo-mode.

10 years ago* lisp/subr.el (macrop): New function.
Stefan Monnier [Sun, 4 Aug 2013 20:18:11 +0000 (16:18 -0400)]
* lisp/subr.el (macrop): New function.
(text-clone--maintaining): New var.
(text-clone--maintain): Rename from text-clone-maintain.  Use it
instead of inhibit-modification-hooks.

* lisp/emacs-lisp/nadvice.el (advice--normalize): For aliases to macros, use
a proxy, so as handle autoloads and redefinitions of the target.
(advice--defalias-fset, advice-remove): Use advice--symbol-function.

* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
Remove bogus (arrayp . stringp) pair.  Add entries for `vectorp'.
(pcase--mutually-exclusive-p): New function.
(pcase--split-consp): Use it.
(pcase--split-pred): Use it.  Optimize the case where `pat' is a qpat
mutually exclusive with the current predicate.

* test/automated/advice-tests.el (advice-tests-nadvice): Test removal
before definition.
(advice-tests-macroaliases): New test.

* lisp/emacs-lisp/edebug.el (edebug-lookup-function): Remove function.
(edebug-macrop): Remove.  Use `macrop' instead.
* lisp/emacs-lisp/advice.el (ad-subr-p): Remove.  Use `subrp' instead.
(ad-macro-p):
* lisp/eshell/esh-cmd.el (eshell-macrop):
* lisp/apropos.el (apropos-macrop): Remove.  Use `macrop' instead.

10 years agoMS-Windows followup to last commit.
Eli Zaretskii [Sun, 4 Aug 2013 17:52:25 +0000 (20:52 +0300)]
MS-Windows followup to last commit.

 lib-src/ntlib.h: Include fcntl.h.
 (mkostemp): Declare prototype.
 (mktemp): Don't redefine.
 lib-src/ntlib.c (mkostemp): New function.

Fixes: debbugs:15015

10 years agoFix some minor races in hosts lacking mkostemp.
Paul Eggert [Sun, 4 Aug 2013 16:56:56 +0000 (09:56 -0700)]
Fix some minor races in hosts lacking mkostemp.

Gnulib's emulation of mkostemp doesn't have races that Emacs's does.
* configure.ac (mkostemp): Remove check for this function;
gnulib does the check now.
(mkstemp): Remove check for this no-longer-used function.
* lib/mkostemp.c, lib/secure_getenv.c, lib/tempname.c, lib/tempname.h:
* m4/mkostemp.m4, m4/secure_getenv.m4, m4/tempname.m4:
New files, copied from Gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add mkostemp.
* lib-src/movemail.c (main):
* lib-src/update-game-score.c (write_scores):
Use mkostemp (which now works on all platforms, due to changes
in the portability layer) rather than mktemp (which has a race)
or mkstemp (which we no longer bother with).
* src/callproc.c (create_temp_file):
* src/filelock.c (create_lock_file):
Assume mkostemp, since it's now provided by Gnulib.

Fixes: debbugs:15015

10 years agoMinor fix of the last commit.
Eli Zaretskii [Sun, 4 Aug 2013 15:43:10 +0000 (18:43 +0300)]
Minor fix of the last commit.

10 years agoImplement mkostemp for MS-Windows.
Eli Zaretskii [Sun, 4 Aug 2013 15:32:12 +0000 (18:32 +0300)]
Implement mkostemp for MS-Windows.

 nt/mingw-cfg.site (ac_cv_func_mkostemp): New var with value of "yes".
 nt/inc/ms-w32.h (mkostemp): Declare prototype.
 nt/config.nt (HAVE_MKOSTEMP): Define to 1.

 src/w32.c (mkostemp): New function.
 (mktemp): Remove, no longer used.  Most of the code reused in mkostemp.

Fixes: debbugs:15015

10 years ago* lisp/emacs-lisp/nadvice.el (advice-function-mapc): Rename from advice-mapc.
Stefan Monnier [Sun, 4 Aug 2013 06:48:00 +0000 (02:48 -0400)]
* lisp/emacs-lisp/nadvice.el (advice-function-mapc): Rename from advice-mapc.
(advice-mapc): New function, using it.
(advice-function-member-p): New function.
(advice--normalize): Store the cdr in advice--saved-rewrite since
that's the part that will be changed.
(advice--symbol-function): New function.
(advice-remove): Handle removal before the function is defined.
Adjust to new advice--saved-rewrite.
(advice-member-p): Use advice-function-member-p and
advice--symbol-function.

10 years ago* ert-tests.el: Disable failing test that no-one seems to know how to fix.
Glenn Morris [Sun, 4 Aug 2013 04:37:10 +0000 (21:37 -0700)]
* ert-tests.el: Disable failing test that no-one seems to know how to fix.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sun, 4 Aug 2013 04:34:01 +0000 (21:34 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Remove debug messages.

10 years ago* dispnew.c (glyph_matrix_count, glyph_pool_count):
Dmitry Antipov [Sun, 4 Aug 2013 04:07:18 +0000 (08:07 +0400)]
* dispnew.c (glyph_matrix_count, glyph_pool_count):
Move under GLYPH_DEBUG and ENABLE_CHECKING.
(new_glyph_matrix, free_glyph_matrix, new_glyph_pool)
(free_glyph_pool, check_glyph_memory): Likewise for
all users.  Adjust comments where appropriate.

10 years agoMerge: cleanup for vc-ignore.
Xue Fuqiao [Sun, 4 Aug 2013 03:01:42 +0000 (11:01 +0800)]
Merge: cleanup for vc-ignore.

10 years agoMerge from mainline.
Xue Fuqiao [Sun, 4 Aug 2013 02:59:08 +0000 (10:59 +0800)]
Merge from mainline.

10 years agolisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame.
Juanma Barranquero [Sun, 4 Aug 2013 02:57:45 +0000 (04:57 +0200)]
lisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame.
(frameset--set-id, frameset--process-minibuffer-frames)
(frameset-restore): Rename parameter `frameset-id' to `frame-id'.

10 years agoCleanup for vc-ignore.
Xue Fuqiao [Sun, 4 Aug 2013 02:55:45 +0000 (10:55 +0800)]
Cleanup for vc-ignore.

* vc/vc.el (vc-ignore): Rewrite.
(vc-default-ignore-completion-table):
(vc--read-lines):
(vc--add-line, vc--remove-regexp): New functions.

* vc/vc-svn.el (vc-svn-ignore): Doc fix.
(vc-svn-ignore-completion-table): New function.

* vc/vc-hg.el (vc-hg-ignore): Rewrite.
(vc-hg-ignore-completion-table):
(vc-hg-find-ignore-file): New functions.

* vc/vc-git.el (vc-git-ignore): Rewrite.
(vc-git-ignore-completion-table):
(vc-git-find-ignore-file): New functions.

* vc/vc-dir.el (vc-dir-menu-map): Add menu for vc-dir-ignore.

* vc/vc-bzr.el (vc-bzr-ignore): Rewrite.
(vc-bzr-ignore-completion-table):
(vc-bzr-find-ignore-file): New functions.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sun, 4 Aug 2013 02:30:11 +0000 (19:30 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Try more precise TZ specification.

10 years agoetc/NEWS: Fix description of frame-restoring options.
Juanma Barranquero [Sun, 4 Aug 2013 01:43:26 +0000 (03:43 +0200)]
etc/NEWS: Fix description of frame-restoring options.

10 years agolisp/frameset.el: Fix typos and autoload cookies.
Juanma Barranquero [Sun, 4 Aug 2013 00:58:32 +0000 (02:58 +0200)]
lisp/frameset.el: Fix typos and autoload cookies.
(frameset-p, frameset-save): Fix autoload cookies.
(frameset-filter-minibuffer): Doc fix.
(frameset-restore): Fix autoload cookie.  Fix typo in docstring.

10 years agolisp/desktop.el (desktop-clear): Be more careful about deleting frames.
Juanma Barranquero [Sun, 4 Aug 2013 00:31:33 +0000 (02:31 +0200)]
lisp/desktop.el (desktop-clear): Be more careful about deleting frames.
Do it only when called interactively and desktop-restore-frames is non-nil.
Doc fix.
(desktop-read): Set desktop-saved-frameset to nil.

10 years ago* composite.h: Minor fixups.
Paul Eggert [Sat, 3 Aug 2013 21:09:57 +0000 (14:09 -0700)]
* composite.h: Minor fixups.

(composition_registered_p): Rename from COMPOSITION_REGISTERD_P
to fix a misspelling, and change it to an inline function while
we're at it (it need not be a macro).  All uses changed.
(composition_method, composition_valid_p):
Rewrite to avoid assignments in if-conditions.

10 years ago* composite.h (compose_region): Remove the leftover.
Dmitry Antipov [Sat, 3 Aug 2013 18:23:23 +0000 (22:23 +0400)]
* composite.h (compose_region): Remove the leftover.

10 years agoDo not use global Lisp_Object in composition macros.
Dmitry Antipov [Sat, 3 Aug 2013 18:16:43 +0000 (22:16 +0400)]
Do not use global Lisp_Object in composition macros.
* composite.h (composition_temp): Remove declaration.
(COMPOSITION_METHOD, COMPOSITION_VALID_P): Replace with...
(composition_method, composition_valid_p): ...inline functions.
* composite.c (composition_temp): Remove.
(run_composition_function, update_compositions)
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal):
* coding.c (handle_composition_annotation):
* xdisp.c (handle_composition_prop, check_point_in_composition):
Related users changed.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sat, 3 Aug 2013 16:44:18 +0000 (09:44 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Add debug messages.

10 years agoetc/NEWS: Document new package frameset.el.
Juanma Barranquero [Sat, 3 Aug 2013 15:10:13 +0000 (17:10 +0200)]
etc/NEWS: Document new package frameset.el.

10 years agolisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.
Juanma Barranquero [Sat, 3 Aug 2013 13:33:22 +0000 (15:33 +0200)]
lisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.

10 years agolisp/frameset.el (frameset-prop): New function and setter.
Juanma Barranquero [Sat, 3 Aug 2013 09:57:07 +0000 (11:57 +0200)]
lisp/frameset.el (frameset-prop): New function and setter.
(frameset-save): Do not modify frame list passed by the caller.

10 years agoDrop FRAME_PTR typedef.
Dmitry Antipov [Sat, 3 Aug 2013 03:29:03 +0000 (07:29 +0400)]
Drop FRAME_PTR typedef.
* composite.c, font.c, font.h, fontset.c, fontset.h, frame.c, frame.h:
* ftfont.c, ftxfont.c, gtkutil.c, gtkutil.h, image.c, keyboard.c:
* menu.c, menu.h, msdos.c, nsfns.m, nsfont.m, nsmenu.m, nsterm.h:
* nsterm.m, scroll.c, term.c, w32fns.c, w32font.c, w32font.h:
* w32inevt.c, w32inevt.h, w32menu.c, w32notify.c, w32term.c, w32term.h:
* w32uniscribe.c, w32xfns.c, widget.c, window.c, xdisp.c, xfaces.c:
* xfns.c, xfont.c, xftfont.c, xmenu.c, xselect.c, xterm.c:
All related users changed.

10 years ago* etc/TODO: Adjust entry about bug reporting.
Xue Fuqiao [Sat, 3 Aug 2013 02:57:00 +0000 (10:57 +0800)]
* etc/TODO: Adjust entry about bug reporting.