bpt/emacs.git
11 years agoAdd note about release candidate
Glenn Morris [Sun, 10 Mar 2013 02:14:29 +0000 (18:14 -0800)]
Add note about release candidate

11 years ago* doc/misc/calc.texi (Basic Operations on Units): Streamline some
Jay Belanger [Sat, 9 Mar 2013 23:36:02 +0000 (17:36 -0600)]
* doc/misc/calc.texi (Basic Operations on Units): Streamline some
  descriptions.

11 years ago* admin.el: Comment
Glenn Morris [Sat, 9 Mar 2013 20:22:27 +0000 (12:22 -0800)]
* admin.el: Comment
Add missing ChangeLog portion for previous change.

11 years ago* admin/admin.el (add-release-logs): Provide interactive defaults.
Glenn Morris [Sat, 9 Mar 2013 20:19:41 +0000 (12:19 -0800)]
* admin/admin.el (add-release-logs): Provide interactive defaults.
Allow specification of the release date.

11 years agocoding.c (to_unicode): Fix a typo in a comment.
Eli Zaretskii [Sat, 9 Mar 2013 18:09:33 +0000 (20:09 +0200)]
coding.c (to_unicode): Fix a typo in a comment.

11 years ago* lisp/mouse.el (mouse-drag-track): Remove left-over debugging code.
Stefan Monnier [Sat, 9 Mar 2013 17:14:24 +0000 (12:14 -0500)]
* lisp/mouse.el (mouse-drag-track): Remove left-over debugging code.

11 years agoMajor rewrite due to changed D-Bus interface of GVFS 1.14.
Michael Albinus [Sat, 9 Mar 2013 11:06:23 +0000 (12:06 +0100)]
Major rewrite due to changed D-Bus interface of GVFS 1.14.

* net/tramp-gvfs.el (top): Extend check for gvfs availability.
(tramp-gvfs-methods-mounttracker, tramp-gvfs-listmounts)
(tramp-gvfs-mountlocation, tramp-gvfs-mountlocation-signature):
New defconst.
(tramp-gvfs-file-name-handler-alist) [directory-files]:
[directory-files-and-attributes, file-exists-p, file-modes]: Use
Tramp default handler.
[file-acl, file-selinux-context, process-file, set-file-acl]:
[set-file-modes, set-file-selinux-context, shell-command]:
[start-file-process ]: Remove handler.
[verify-visited-file-modtime]: New handler.
(tramp-gvfs-dbus-string-to-byte-array)
(tramp-gvfs-dbus-byte-array-to-string): New defuns.  Replace all
calls of `dbus-string-to-byte-array' and
`tramp-gvfs-dbus-byte-array-to-string'.
(tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-delete-directory)
(tramp-gvfs-handle-delete-file, tramp-gvfs-handle-file-attributes)
(tramp-gvfs-handle-file-directory-p)
(tramp-gvfs-handle-file-executable-p)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-file-writable-p)
(tramp-gvfs-handle-insert-directory)
(tramp-gvfs-handle-insert-file-contents)
(tramp-gvfs-handle-make-directory, tramp-gvfs-handle-rename-file)
(tramp-gvfs-handle-set-visited-file-modtime)
(tramp-gvfs-handle-write-region): Rewrite.
(tramp-gvfs-handle-file-acl)
(tramp-gvfs-handle-file-selinux-context)
(tramp-gvfs-handle-process-file, tramp-gvfs-handle-set-file-acl)
(tramp-gvfs-handle-set-file-modes)
(tramp-gvfs-handle-set-file-selinux-context)
(tramp-gvfs-handle-shell-command)
(tramp-gvfs-handle-start-file-process)
(tramp-gvfs-handle-verify-visited-file-modtime): Remove defuns.
(tramp-gvfs-url-file-name): Do not use `file-truename', we work
over the symlinks.  Fix user handling.
(top, tramp-gvfs-handler-mounted-unmounted): Handle different names
of the D-Bus signals.
(tramp-gvfs-connection-mounted-p): Handle different names of the
D-Bus methods.
(tramp-gvfs-mount-spec-entry): New defun.
(tramp-gvfs-mount-spec): Use it.
(tramp-gvfs-maybe-open-connection): Check, that in case of "smb"
there is a share name.  Handle different names of the D-Bus
signals and methods.
(tramp-gvfs-maybe-open-connection): Set connection properties
needed for `tramp-check-cached-permissions'.
(tramp-gvfs-send-command): Apply `tramp-gvfs-maybe-open-connection'.
Return t or nil.

* net/tramp.el (tramp-backtrace): Move up.
(tramp-error): Apply a backtrace into the debug buffer when
`tramp-verbose > 9.
(tramp-file-mode-type-map, tramp-file-mode-from-int)
(tramp-file-mode-permissions, tramp-get-local-uid)
(tramp-get-local-gid, tramp-check-cached-permissions): Move from
tramp-sh.el.

* net/tramp-sh.el (tramp-file-mode-type-map)
(tramp-check-cached-permissions, tramp-file-mode-from-int)
(tramp-file-mode-permissions, tramp-get-local-uid)
(tramp-get-local-gid): Move to tramp.el.

11 years agoSeparate mouse-1-click-follows-link from mouse-drag-region.
Stefan Monnier [Sat, 9 Mar 2013 04:15:53 +0000 (23:15 -0500)]
Separate mouse-1-click-follows-link from mouse-drag-region.
* lisp/mouse.el (mouse--down-1-maybe-follows-link): New function.
(key-translation-map): Use it to implement mouse-1-click-follows-link.
(mouse-drag-line, mouse-drag-track): Remove mouse-1-click-follows-link code.
(mouse--remap-link-click-p): Remove.
* src/keyboard.c (access_keymap_keyremap): Accept nil return value from
functions to mean "no change".
* src/keyboard.h (EVENT_START, EVENT_END, POSN_WINDOW, POSN_POSN)
(POSN_WINDOW_POSN, POSN_TIMESTAMP): Be careful since events may come
from Elisp via unread-command-events.

11 years ago* refcards/calccard.tex: Remove incorrect entry.
Jay Belanger [Sat, 9 Mar 2013 02:27:46 +0000 (20:27 -0600)]
* refcards/calccard.tex: Remove incorrect entry.

11 years agoregion-cache.c, scroll.c, search.c: Use bool for booleans.
Paul Eggert [Fri, 8 Mar 2013 21:37:41 +0000 (13:37 -0800)]
region-cache.c, scroll.c, search.c: Use bool for booleans.

* lisp.h (compile_pattern):
* scroll.c (do_scrolling, do_direct_scrolling):
* search.c (struct regexp_cache, compile_pattern_1)
(compile_pattern, string_match_1, search_command)
(trivial_regexp_p, search_buffer, Freplace_match, match_limit)
(search_regs_saved, Fregexp_quote):
Use bool for boolean.
* region-cache.c (region_cache_forward, region_cache_backward):
Fix comments to match code: these functions return int, not boolean.

11 years ago* search.c (find_newline): Accept start and end byte positions
Dmitry Antipov [Fri, 8 Mar 2013 09:34:35 +0000 (13:34 +0400)]
* search.c (find_newline): Accept start and end byte positions
as arguments and allow -1 if not known.
(find_newline_no_quit): Likewise for start position.
* lisp.h (find_newline, find_newline_no_quit): Adjust prototype.
* bidi.c (bidi_find_paragraph_start): Pass byte position to
find_newline_no_quit, thus eliminating CHAR_TO_BYTE.
* editfns.c (Fconstrain_to_field): Break long line.  Adjust
call to find_newline.
* indent.c (vmotion): Adjust calls to find_newline_no_quit.
Use DEC_BOTH to start next search from the previous buffer
position, where appropriate.
* xdisp.c (back_to_previous_line_start, forward_to_next_line_start)
(get_visually_first_element, move_it_vertically_backward): Likewise.
Obtain byte position from the display iterator, where appropriate.

11 years ago* doc/misc/faq.texi (Top): Don't say this was updated @today.
Glenn Morris [Fri, 8 Mar 2013 08:37:59 +0000 (00:37 -0800)]
* doc/misc/faq.texi (Top): Don't say this was updated @today.
That's irrelevant and leads to spurious diffs.

11 years agoFix doc typo in previous change
Glenn Morris [Fri, 8 Mar 2013 08:11:59 +0000 (00:11 -0800)]
Fix doc typo in previous change

11 years agoChangeLog entries should be attributed to the author of the changes
Glenn Morris [Fri, 8 Mar 2013 08:11:28 +0000 (00:11 -0800)]
ChangeLog entries should be attributed to the author of the changes

11 years agoMerge from emacs-24; up to 2012-12-25T15:07:59Z!dmantipov@yandex.ru
Glenn Morris [Fri, 8 Mar 2013 08:04:30 +0000 (00:04 -0800)]
Merge from emacs-24; up to 2012-12-25T15:07:59Z!dmantipov@yandex.ru

11 years agoFix critical bug in Org.
Bastien Guerry [Fri, 8 Mar 2013 06:37:21 +0000 (07:37 +0100)]
Fix critical bug in Org.

11 years agoProvide for customizing default regexp in hi-lock commands (Bug#13892).
Jambunathan K [Fri, 8 Mar 2013 04:18:16 +0000 (09:48 +0530)]
Provide for customizing default regexp in hi-lock commands (Bug#13892).

* lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): New var.
(hi-lock-read-regexp-defaults):  New defun.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Propagate above change.  Update
docstring.

* lisp/subr.el (find-tag-default-as-regexp): New defun.
* lisp/replace.el (read-regexp): Propagate above change.

11 years agoprint.c, process.c: Use bool for booleans.
Paul Eggert [Fri, 8 Mar 2013 02:32:21 +0000 (18:32 -0800)]
print.c, process.c: Use bool for booleans.

* lisp.h (wait_reading_process_output):
* print.c (print_output_debug_flag, PRINTDECLARE, printchar)
(strout, debug_output_compilation_hack, float_to_string, print)
(print_object):
* process.c (kbd_is_on_hold, inhibit_sentinels, process_output_skip)
(decode_status, status_message, create_process, create_pty)
(Fmake_network_process, Fnetwork_interface_info)
(wait_reading_process_output, read_process_output)
(write_queue_push, write_queue_pop, process_send_signal)
(handle_child_signal, keyboard_bit_set, kbd_on_hold_p):
* process.h (struct Lisp_Process, inhibit_sentinels, kbd_on_hold_p):
Use bool for booleans.
* process.c (Fnetwork_interface_list): Remove unused local.
(connect_counter): Now EMACS_INT, not int.

11 years ago* doc/misc/calc.texi (Basic Operations on Units): Fix
Jay Belanger [Fri, 8 Mar 2013 02:11:25 +0000 (20:11 -0600)]
* doc/misc/calc.texi (Basic Operations on Units): Fix
  cross-reference.

* calc/calc-units.el (calc-convert-units): Fix the way that default
  new units are stored.

11 years ago* bidi.c (bidi_fetch_char): Swap first and second arguments
Dmitry Antipov [Thu, 7 Mar 2013 23:37:36 +0000 (03:37 +0400)]
* bidi.c (bidi_fetch_char): Swap first and second arguments
to match other functions accepting character and byte positions.
Adjust comment.
(bidi_resolve_explicit_1, bidi_level_of_next_char): Adjust users.
(bidi_paragraph_init): Likewise.  Use DEC_BOTH which is faster
when you need just to move to the previous buffer position.
* xdisp.c (Fcurrent_bidi_paragraph_direction): Use DEC_BOTH.

11 years ago* bookmark.el: Define a face to highlight bookmark names in
Karl Fogel [Thu, 7 Mar 2013 22:35:47 +0000 (16:35 -0600)]
* bookmark.el: Define a face to highlight bookmark names in
bookmark menu buffers, where the default is a bold face similarly
to buffer names in buffer menu buffers.  Patch by Matthias Meulien
<orontee {_AT_} gmail.com>.

(bookmark-menu-bookmark): New face to highlight bookmark names.
(bookmark-insert-location): Removes dupplicated text property to
conform to buffer list (see `list-buffers')
(bookmark-bmenu-list, bookmark-bmenu-hide-filenames): Apply face
`bookmark-menu-bookmark' to bookmark names.

11 years ago* bookmark.el: Display the bookmark list header similarly to the
Karl Fogel [Thu, 7 Mar 2013 22:33:22 +0000 (16:33 -0600)]
* bookmark.el: Display the bookmark list header similarly to the
buffer list header (see `list-buffers'), where the default is now
an immovable/immutable header line.  Patch by Matthias Meulien
<orontee {_AT_} gmail.com> with a few tweaks by me.

(bookmark-bmenu-use-header-line): New variable.
(bookmark-bmenu-inline-header-height): New name for
`bookmark-bmenu-header-height', to avoid confusion with the code
for the new immovable header.  All references changed.
(bookmark-bmenu-set-header): New function.
(bookmark-bmenu-list, bookmark-bmenu-toggle-filenames):
Conditionalize header construction accordingly.
(bookmark-bmenu-ensure-position): Conditionalize the skipping of
the inline header height.
(bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames):
Conditionalize the skipping of the inline header height.

11 years ago* lisp/progmodes/js.el (js--multi-line-declaration-indentation): Merge
Dmitry Gutov [Thu, 7 Mar 2013 16:08:33 +0000 (20:08 +0400)]
* lisp/progmodes/js.el (js--multi-line-declaration-indentation): Merge
from js2-mode (https://github.com/mooz/js2-mode/issues/89).

11 years agosrc/.gdbinit (prowlims): Display the enabled_p flag of the row.
Eli Zaretskii [Thu, 7 Mar 2013 11:31:07 +0000 (13:31 +0200)]
src/.gdbinit (prowlims): Display the enabled_p flag of the row.

11 years agodoc/misc/gnus-faq.texi (FAQ 3-11): Now Gnus supports POP3 UIDL
Katsumi Yamaoka [Thu, 7 Mar 2013 10:24:23 +0000 (10:24 +0000)]
doc/misc/gnus-faq.texi (FAQ 3-11): Now Gnus supports POP3 UIDL

11 years agoSpecify utf-8, not iso-8859-1, for ASCII files.
Paul Eggert [Thu, 7 Mar 2013 07:28:51 +0000 (23:28 -0800)]
Specify utf-8, not iso-8859-1, for ASCII files.

11 years agoMention checking autotools when testing tarfile.
Glenn Morris [Thu, 7 Mar 2013 07:03:18 +0000 (23:03 -0800)]
Mention checking autotools when testing tarfile.

11 years agoAvoid character to byte conversions in motion subroutines.
Dmitry Antipov [Thu, 7 Mar 2013 04:42:59 +0000 (08:42 +0400)]
Avoid character to byte conversions in motion subroutines.
* indent.h (compute_motion, vmotion): Add byte position argument.
* indent.c (compute_motion): Use it and avoid CHAR_TO_BYTE.
Add eassert.
(Fcompute_motion): Break long line.  Adjust call to compute_motion.
Use list5 for return value.
(vmotion): Use byte position argument and avoid call to CHAR_TO_BYTE.
Adjust comments, style and calls to compute_motion.
(Fvertical_motion): Adjust call to vmotion.
* window.c (Fdelete_other_windows_internal): Record window start
byte position and adjust call to vmotion.
(window_scroll_line_based): Likewise with call to compute_motion.
Use SET_PT_BOTH.
(Frecenter): Adjust calls to vmotion.

11 years ago* lisp.h (list2i, list3i): New functions.
Dmitry Antipov [Thu, 7 Mar 2013 03:01:17 +0000 (07:01 +0400)]
* lisp.h (list2i, list3i): New functions.
(list4i): Move from window.c and make LISP_INLINE.
* editfns.c (make_lisp_time):
* fns.c (Flocale_info):
* keyboard.c (parse_modifiers):
* xterm.c (x_ewmh_activate_frame): Use list2i.
* instel.c (signal_after_change):
* nsfns.m (Fx_server_version, Fxw_color_values):
* w32fns.c (Fxw_color_values, Fx_server_version):
* xfns.c (Fxw_color_values, Fx_server_version): Use list3i.
* fileio.c (Fvisited_file_modtime):
* nsfns.m (Fns_display_usable_bounds):
* w32.c (ltime): Use list4i.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Only
Dmitry Gutov [Wed, 6 Mar 2013 18:56:29 +0000 (22:56 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Only
propertize regexp when not inside a string.

Fixes: debbugs:13885

11 years agoRename find_next_newline to find_newline_no_quit.
Eli Zaretskii [Wed, 6 Mar 2013 16:35:23 +0000 (18:35 +0200)]
Rename find_next_newline to find_newline_no_quit.

 src/search.c (find_newline_no_quit): Rename from find_next_newline.
 Add commentary.
 src/lisp.h (find_newline_no_quit): Rename prototype.
 src/xdisp.c (back_to_previous_line_start)
 (forward_to_next_line_start, get_visually_first_element)
 (move_it_vertically_backward): Callers of find_newline_no_quit changed.
 src/indent.c (vmotion): Callers of find_newline_no_quit changed.
 src/bidi.c (bidi_find_paragraph_start): Callers of
 find_newline_no_quit changed.

11 years agoFix bug #13879 with raw-text encoding of msdos.c.
Eli Zaretskii [Wed, 6 Mar 2013 16:21:26 +0000 (18:21 +0200)]
Fix bug #13879 with raw-text encoding of msdos.c.

 src/msdos.c: Change encoding to cp850.  (Bug#13879)
 (fr_keyboard, it_keyboard, dk_keyboard): Update keyboard layouts.

11 years agoCorrect the position of point in some line-up functions.
Alan Mackenzie [Wed, 6 Mar 2013 14:24:39 +0000 (14:24 +0000)]
Correct the position of point in some line-up functions.
progmodes/cc-align.el (c-lineup-whitesmith-in-block, c-lineup-assignments)
(c-lineup-gcc-asm-reg ): take position of point at column 0 rather than
at a random place in the line.
doc/misc/cc-mode.texi (Custom Line-Up): State explicitly that point
starts at a random position in the line being indented.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 6 Mar 2013 12:17:43 +0000 (07:17 -0500)]
Auto-commit of generated files.

11 years agoCoding system support cleanup and minor refactoring.
Dmitry Antipov [Wed, 6 Mar 2013 11:26:30 +0000 (15:26 +0400)]
Coding system support cleanup and minor refactoring.
* coding.h (enum coding_result_code): Remove
CODING_RESULT_INCONSISTENT_EOL and CODING_RESULT_INSUFFICIENT_MEM.
(toplevel): Remove unused CODING_MODE_INHIBIT_INCONSISTENT_EOL.
(CODING_MODE_LAST_BLOCK, CODING_MODE_SELECTIVE_DISPLAY)
(CODING_MODE_DIRECTION, CODING_MODE_FIXED_DESTINATION)
(CODING_MODE_SAFE_ENCODING): Rearrange bit values.
(decode_coding_region, encode_coding_region, decode_coding_string):
Remove unused compatibility macros.
* coding.c (Qinconsistent_eol, Qinsufficient_memory): Remove.
(record_conversion_result): Adjust user.
(syms_of_coding): Likewise.
(ALLOC_CONVERSION_WORK_AREA): Use SAFE_ALLOCA.
(decode_coding, encode_coding): Add USE_SAFE_ALLOCA and SAFE_FREE.
(decode_coding_object): Simplify since xrealloc never returns NULL.
Add eassert.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 6 Mar 2013 11:17:39 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoMerge from emacs-24; up to 2012-12-25T11:37:21Z!dmantipov@yandex.ru
Glenn Morris [Wed, 6 Mar 2013 08:01:47 +0000 (00:01 -0800)]
Merge from emacs-24; up to 2012-12-25T11:37:21Z!dmantipov@yandex.ru

11 years agoFix a build failure on OpenBSD 4.x and MirBSD.
Paul Eggert [Wed, 6 Mar 2013 07:46:09 +0000 (23:46 -0800)]
Fix a build failure on OpenBSD 4.x and MirBSD.

* sysdep.c (list_system_processes): Make it a stub on all BSD_SYSTEM
hosts, except for DARWIN_OS and FreeBSD where it's been tested.

Fixes: debbugs:13881

11 years agoMention GZIP_PROG in INSTALL.
Paul Eggert [Wed, 6 Mar 2013 06:26:55 +0000 (22:26 -0800)]
Mention GZIP_PROG in INSTALL.

11 years agolisp/gnus/nndir.el (nndir-request-list): Remove 2nd argument passed to nnml-request...
Katsumi Yamaoka [Wed, 6 Mar 2013 03:55:49 +0000 (03:55 +0000)]
lisp/gnus/nndir.el (nndir-request-list): Remove 2nd argument passed to nnml-request-list (Bug#13873)

11 years ago* lisp.h (find_next_newline_no_quit): Rename to find_next_newline.
Dmitry Antipov [Tue, 5 Mar 2013 23:08:11 +0000 (03:08 +0400)]
* lisp.h (find_next_newline_no_quit): Rename to find_next_newline.
* xdisp.c (back_to_previous_line_start, forward_to_next_line_start)
(get_visually_first_element, move_it_vertically_backward): Ajust users.
* bidi.c (bidi_find_paragraph_start): Likewise.
* indent.c (vmotion): Likewise.

11 years agoFILE's lock is now always .#FILE and may be a regular file.
Paul Eggert [Tue, 5 Mar 2013 22:35:41 +0000 (14:35 -0800)]
FILE's lock is now always .#FILE and may be a regular file.

* etc/NEWS: Document this.
* nt/inc/unistd.h (O_NOFOLLOW): New macro.
* src/filelock.c: Include <c-ctype.h>.
(MAX_LFINFO): New top-level constant.
(lock_info_type): Remove members pid, boot_time.  Add members at,
dot, colon.  Change user member to be the entire buffer, not a
pointer.  This allows us to handle the case where a foreign
pid or boot time exceeds the local range.  All uses changed.
(LINKS_MIGHT_NOT_WORK): New constant.
(FREE_LOCK_INFO): Remove, as the pieces no longer need freeing.
(defined_WINDOWSNT): Remove.
(MAKE_LOCK_NAME, file_in_lock_file_name):
Always use .#FILE (not .#-FILE) for the file lock,
even if it is a regular file.
(rename_lock_file): New function.
(create_lock_file): Use it.
(create_lock_file, read_lock_data):
Prefer a symbolic link for the lock file, falling back on a
regular file if symlinks don't work.  Do not try to create
symlinks on MS-Windows, due to security hassles.  Stick with
POSIXish functions (open, read, write, close, fchmod, readlink, symlink,
link, rename, unlink, mkstemp) when creating locks, as a GNUish
host may be using a Windowsish file system, and cannot use
MS-Windows-only system calls.  Fall back on mktemp if mkstemp
doesn't work.  Don't fail merely because of a symlink-contents
length limit in the current file system; fall back on regular
files.  Increase the symlink contents length limit to 8 KiB, this
should be big enough for any real use and doesn't crunch the
stack.
(create_lock_file, lock_file_1, read_lock_data):
Simplify allocation of lock file buffers now that they fit in 8 KiB.
(lock_file_1): Return error number, not bool.  All callers changed.
(ELOOP): New macro, if not already defined.
(read_lock_data): Return size of lock file contents, not Lisp object.
All callers changed.  Handle a race condition if some other process
replaces a regular-file lock with a symlink lock or vice versa,
while we're trying to read the lock.
(current_lock_owner): Parse contents more carefully, to help avoid
confusing a regular-file lock with some other application's use
of the file.  Check for lock file contents being too long, or
not parsing correctly.
(current_lock_owner, lock_file):
Allow foreign pid and boot times that exceed the local range.
(current_lock_owner, lock_if_free, lock_file):
Simplify allocation of lock file contents.
* src/w32.c (sys_rename_replace): New function, containing most of
the contents of the old sys_rename.
(sys_rename): Use it.
(fchmod): New dummy function.
* src/w32.h (sys_rename_replace, fchmod): New decls.

Fixes: debbugs:13807

11 years agoFix a build failure on OpenBSD 4.x and MirBSD.
Paul Eggert [Tue, 5 Mar 2013 21:56:36 +0000 (13:56 -0800)]
Fix a build failure on OpenBSD 4.x and MirBSD.

* sysdep.c (list_system_processes) [__OpenBSD__ || __MirBSD__]:
Make it a stub in this case; otherwise the build might fail,
and even if the build worked the function would just return nil anyway.
Problem reported by Nelson H. F. Beebe in
<http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>
and analyzed by Jérémie Courrèges-Anglas in
<http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00062.html>.

Fixes: debbugs:13881

11 years agoDon't sync charpos and bytepos in bidi_resolve_explicit_1.
Eli Zaretskii [Tue, 5 Mar 2013 18:12:25 +0000 (20:12 +0200)]
Don't sync charpos and bytepos in bidi_resolve_explicit_1.

 src/bidi.c (bidi_resolve_explicit_1): Don't call CHAR_TO_BYTE or
 bidi_count_bytes, as the callers now arrange for bidi_it->charpos
 to be in sync with bidi_it->bytepos.  Suggested by Dmitry Antipov
 <dmantipov@yandex.ru>.

11 years ago* notes/unicode: Add notes about Emacs source file encoding.
Paul Eggert [Tue, 5 Mar 2013 17:55:41 +0000 (09:55 -0800)]
* notes/unicode: Add notes about Emacs source file encoding.

11 years ago* configure.ac (TERM_HEADER): Remove duplicate definition.
Paul Eggert [Tue, 5 Mar 2013 17:25:50 +0000 (09:25 -0800)]
* configure.ac (TERM_HEADER): Remove duplicate definition.

It can mess up 'configure' runs.

Fixes: debbugs:13872

11 years agoPrefer UTF-8 when the encoding shouldn't matter and changes are small.
Paul Eggert [Tue, 5 Mar 2013 17:13:01 +0000 (09:13 -0800)]
Prefer UTF-8 when the encoding shouldn't matter and changes are small.

11 years ago* net/tramp-compat.el (tramp-compat-delete-directory): Implement
Michael Albinus [Tue, 5 Mar 2013 15:55:53 +0000 (16:55 +0100)]
* net/tramp-compat.el (tramp-compat-delete-directory): Implement
TRASH argument.

11 years ago* indent/octave.m: Fix encoding error in comment. Add coding tag.
Paul Eggert [Tue, 5 Mar 2013 08:06:54 +0000 (00:06 -0800)]
* indent/octave.m: Fix encoding error in comment.  Add coding tag.

11 years agoKeep pre-existing highlighting in completion candidates.
Dmitry Gutov [Tue, 5 Mar 2013 07:38:16 +0000 (11:38 +0400)]
Keep pre-existing highlighting in completion candidates.
* lisp/minibuffer.el (completions-first-difference): State that the
face is "added" in the docstring.
(completions-common-part): Same.  And don't inherit from default.
(completion-hilit-commonality): Prepend 'completions-common-part
and 'completion-first-difference faces to the 'face property,
instead of replacing the value(s).
(completion--insert-strings): Same with 'completions-annotations face.
(completion-hilit-commonality): Use 'face instead of
'font-lock-face, because it gets priority if the completion
strings already have 'face set.

Fixes: debbugs:13250

11 years agoRemove stray character from license URL.
Paul Eggert [Tue, 5 Mar 2013 07:10:55 +0000 (23:10 -0800)]
Remove stray character from license URL.

11 years agoMerge from emacs-24; up to 2012-12-24T15:56:17Z!eliz@gnu.org
Glenn Morris [Tue, 5 Mar 2013 03:59:35 +0000 (19:59 -0800)]
Merge from emacs-24; up to 2012-12-24T15:56:17Z!eliz@gnu.org

11 years agoRegenerate AUTHORS and ldefs-boot.el
Glenn Morris [Tue, 5 Mar 2013 03:55:25 +0000 (19:55 -0800)]
Regenerate AUTHORS and ldefs-boot.el

11 years agoBump version to 24.3 (only a release candidate at the moment)
Glenn Morris [Tue, 5 Mar 2013 03:53:34 +0000 (19:53 -0800)]
Bump version to 24.3 (only a release candidate at the moment)

11 years ago* Makefile.in (install-man): Ignore gzip exit status.
Glenn Morris [Tue, 5 Mar 2013 03:43:52 +0000 (19:43 -0800)]
* Makefile.in (install-man): Ignore gzip exit status.

11 years agoAlso port to MirBSD.
Paul Eggert [Tue, 5 Mar 2013 02:15:35 +0000 (18:15 -0800)]
Also port to MirBSD.

11 years agoFix a build failure on OpenBSD 4.x.
Paul Eggert [Tue, 5 Mar 2013 02:03:05 +0000 (18:03 -0800)]
Fix a build failure on OpenBSD 4.x.

* sysdep.c (KERN_PROC, kinfo_proc) [BSD_SYSTEM && !KERN_PROC]:
Define to KERN_PROC2 and kinfo_proc2, for OpenBSD 4.9.
list-system-processes still returns nil, but at least it doesn't crash.
Problem reported by Nelson H. F. Beebe in
<http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>.

11 years ago* composite.c (get_composition_id, fill_gstring_header):
Dmitry Antipov [Tue, 5 Mar 2013 01:48:30 +0000 (05:48 +0400)]
* composite.c (get_composition_id, fill_gstring_header):
Use make_uninit_vector where appropriate.
* font.c (Ffont_get_glyphs, build_style_table): Likewise.
* xselect.c (clean_local_selection_data): Likewise.

11 years agoReplace `last-command-event' by `last-command-char' in XEmacs.
Alan Mackenzie [Mon, 4 Mar 2013 19:33:23 +0000 (19:33 +0000)]
Replace `last-command-event' by `last-command-char' in XEmacs.
progmodes/cc-defs.el (c-last-command-char): New macro.
progmodes/cc-align.el (c-semi&comma-inside-parenlist)
(c-semi&comma-no-newlines-before-nonblanks)
(c-semi&comma-no-newlines-for-oneline-inliners): Use the new macro in
place of `last-command-event'.
progmodes/cc-cmds.el (c-electric-pound, c-electric-brace)
(c-electric-slash, c-electric-semi&comma, c-electric-lt-gt)
(c-electric-paren, c-electric-continued-statement): Use the new macro in
place of `last-command-event'.

11 years agoFix misuse of ImageMagick that caused core dump.
Paul Eggert [Mon, 4 Mar 2013 17:35:29 +0000 (09:35 -0800)]
Fix misuse of ImageMagick that caused core dump.

* image.c (imagemagick_load_image): Calculate height and width
after flattening the image, not before.

Fixes: debbugs:13846

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Mon, 4 Mar 2013 17:14:08 +0000 (18:14 +0100)]
nt/config.nt: Sync with autogen/config.in.
(DATA_START, ORDINARY_LINK): Remove.
(HAVE_DATA_START, HAVE__PUTENV): New macros.

11 years agolisp/gnus/shr.el: Make all the overlays set the `evaporate' property so that they...
Ted Phelps [Mon, 4 Mar 2013 10:27:33 +0000 (10:27 +0000)]
lisp/gnus/shr.el: Make all the overlays set the `evaporate' property so that they're removed properly

11 years agoPrefer UTF-8 for documentation.
Paul Eggert [Mon, 4 Mar 2013 08:45:03 +0000 (00:45 -0800)]
Prefer UTF-8 for documentation.

With GNU Texinfo 5.0, this generates nicer-looking info files,
since they can use curly quotes.  With older Texinfo it doesn't matter.

11 years ago* font.c (Ffont_get_glyphs): Use convenient LGLYPH_NEW.
Dmitry Antipov [Mon, 4 Mar 2013 07:41:01 +0000 (11:41 +0400)]
* font.c (Ffont_get_glyphs): Use convenient LGLYPH_NEW.
* ftfont.c (ftfont_shape_by_flt): Likewise.
* w32uniscribe.c (uniscribe_shape): Likewise.

11 years ago* semantic/wisent/wisent.el (wisent): Stick to ASCII in the ASCII art.
Paul Eggert [Mon, 4 Mar 2013 07:39:48 +0000 (23:39 -0800)]
* semantic/wisent/wisent.el (wisent): Stick to ASCII in the ASCII art.

11 years ago* files.el (inhibit-local-variables-regexps): Add .diff and .patch.
Glenn Morris [Mon, 4 Mar 2013 07:37:30 +0000 (23:37 -0800)]
* files.el (inhibit-local-variables-regexps): Add .diff and .patch.

Fixes: debbugs:13862

11 years agoFix encoding problem in javat-wy.el.
Paul Eggert [Mon, 4 Mar 2013 07:25:17 +0000 (23:25 -0800)]
Fix encoding problem in javat-wy.el.

* admin/grammars/java-tags.wy (CHAR): Remove "('\u0000' to '\uffff')"
from summary, as this causes javat-wy.el to contain both a null byte
and a byte sequence that is not valid UTF-8, which is inconvenient.
* lisp/cedet/semantic/wisent/javat-wy.el: Regenerate.

11 years agoAdd and/or fix coding tags for refcard sources.
Paul Eggert [Mon, 4 Mar 2013 02:39:05 +0000 (18:39 -0800)]
Add and/or fix coding tags for refcard sources.

11 years ago* emacs-lisp-intro.texi (Simple Extension): Fix typos.
Glenn Morris [Sun, 3 Mar 2013 18:44:56 +0000 (10:44 -0800)]
* emacs-lisp-intro.texi (Simple Extension): Fix typos.

11 years ago* tramp.texi (External methods): Tramp does not connect Android
Michael Albinus [Sun, 3 Mar 2013 11:47:20 +0000 (12:47 +0100)]
* tramp.texi (External methods): Tramp does not connect Android
devices by itself.

11 years ago* net/tramp-adb.el (tramp-adb-maybe-open-connection): Cache,
Michael Albinus [Sun, 3 Mar 2013 10:31:01 +0000 (11:31 +0100)]
* net/tramp-adb.el (tramp-adb-maybe-open-connection): Cache,
whether the "su" command is available on the device.

11 years ago* bzrmerge.el (bzrmerge-apply): Omit Latin-1 char from diagnostic.
Paul Eggert [Sun, 3 Mar 2013 07:26:39 +0000 (23:26 -0800)]
* bzrmerge.el (bzrmerge-apply): Omit Latin-1 char from diagnostic.

If there were a real need, it should be UTF-8 anyway.

11 years agoSpelling fixes.
Paul Eggert [Sun, 3 Mar 2013 06:40:21 +0000 (22:40 -0800)]
Spelling fixes.

11 years ago* make-dist: Remove lzma (it's replaced by xz).
Glenn Morris [Sun, 3 Mar 2013 02:43:30 +0000 (18:43 -0800)]
* make-dist: Remove lzma (it's replaced by xz).

11 years agoMerge from emacs-24; up to 2012-12-24T06:24:08Z!eggert@cs.ucla.edu
Glenn Morris [Sun, 3 Mar 2013 02:39:57 +0000 (18:39 -0800)]
Merge from emacs-24; up to 2012-12-24T06:24:08Z!eggert@cs.ucla.edu

11 years agoFix date of merged ChangeLog entry
Glenn Morris [Sun, 3 Mar 2013 02:38:33 +0000 (18:38 -0800)]
Fix date of merged ChangeLog entry

11 years ago* emacs-lisp-intro.texi (defcustom): Fix typo.
Glenn Morris [Sun, 3 Mar 2013 02:37:26 +0000 (18:37 -0800)]
* emacs-lisp-intro.texi (defcustom): Fix typo.

11 years ago* emacs-lisp-intro.texi (Digression into C): Update example.
Glenn Morris [Sun, 3 Mar 2013 02:34:48 +0000 (18:34 -0800)]
* emacs-lisp-intro.texi (Digression into C): Update example.

11 years ago* doc/lispref/objects.texi (Symbol Type): Fix typo.
Glenn Morris [Sun, 3 Mar 2013 02:09:31 +0000 (18:09 -0800)]
* doc/lispref/objects.texi (Symbol Type): Fix typo.

11 years agoMerge from mh-e; up to 2012-01-03T02:14:40Z!lekktu@gmail.com.
Bill Wohler [Sun, 3 Mar 2013 00:12:29 +0000 (16:12 -0800)]
Merge from mh-e; up to 2012-01-03T02:14:40Z!lekktu@gmail.com.

11 years agoRelease MH-E version 8.5.
Bill Wohler [Sun, 3 Mar 2013 00:04:12 +0000 (16:04 -0800)]
Release MH-E version 8.5.

* mh-e.el (Version, mh-version): Update for release 8.5.

11 years agoRelease MH-E version 8.5.
Bill Wohler [Sun, 3 Mar 2013 00:02:19 +0000 (16:02 -0800)]
Release MH-E version 8.5.

* NEWS, MH-E-NEWS: Update for MH-E release 8.5.

11 years ago* mh-e.texi (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for
Bill Wohler [Sat, 2 Mar 2013 23:20:11 +0000 (15:20 -0800)]
* mh-e.texi (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for
release 8.5.

* mh-e.texi (Preface, Conventions, Getting Started)
(Using This Manual, Folder Selection, Viewing, Aliases)
(Identities, Speedbar, Menu Bar, Tool Bar, Scan Line Formats)
(Bug Reports, Mailing Lists, MH FAQ and Support, Getting MH-E): Update
URLs.

11 years agoMerge from trunk; up to 2013-03-02T21:05:52Z!eggert@cs.ucla.edu.
Bill Wohler [Sat, 2 Mar 2013 22:55:12 +0000 (14:55 -0800)]
Merge from trunk; up to 2013-03-02T21:05:52Z!eggert@cs.ucla.edu.

11 years ago* filelock.c (lock_file): Don't access freed storage.
Paul Eggert [Sat, 2 Mar 2013 21:05:52 +0000 (13:05 -0800)]
* filelock.c (lock_file): Don't access freed storage.

11 years agoThe lock for FILE is now .#FILE or .#-FILE.
Paul Eggert [Sat, 2 Mar 2013 20:41:53 +0000 (12:41 -0800)]
The lock for FILE is now .#FILE or .#-FILE.

The old approach, which fell back on DIR/.#FILE.0 through
DIR/.#FILE.9, had race conditions that could not be easily fixed.
If DIR/.#FILE is a non-symlink file, Emacs now does not create a
lock file for DIR/FILE; that is, DIR/FILE is no longer partly
protected by a lock if DIR/.#FILE is a non-symlink file ("partly"
because the locking mechanism was never reliable in that case).
This patch fixes this and other bugs discovered by a code
inspection that was prompted by
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00531.html>.
Also, this patch switches to .#-FILE (not .#FILE) on MS-Windows,
to avoid interoperability problems between the MS-Windows and
non-MS-Windows implementations.  MS-Windows and non-MS-Windows
instances of Emacs now ignore each others' locks.
* etc/NEWS: Document this.
* src/filelock.c (defined_WINDOWSNT): New constant.
(MAKE_LOCK_NAME, fill_in_lock_file_name):
Don't create DIR/.#FILE.0 through DIR/.#FILE.9.  Instead, create
DIR/.#FILE symlinks on non-MS-Windows hosts, and DIR/.#-FILE
regular files on MS-Windows hosts.
(MAKE_LOCK_NAME, unlock_file, Ffile_locked_p):
Use SAFE_ALLOCA to avoid problems with long file names.
(MAX_LFINFO): Now a local constant, not a global macro.
(IS_LOCK_FILE): Remove.
(lock_file_1): Don't inspect errno if symlink call succeeds;
that's not portable.
(lock_file): Document that this function can return if lock
creation fails.

Fixes: debbugs:13807

11 years agoMerge from emacs-24; up to 2012-12-23T17:06:58Z!eliz@gnu.org
Glenn Morris [Sat, 2 Mar 2013 20:10:05 +0000 (12:10 -0800)]
Merge from emacs-24; up to 2012-12-23T17:06:58Z!eliz@gnu.org

11 years ago* textprop.c: Use bool for booleans.
Paul Eggert [Sat, 2 Mar 2013 18:39:34 +0000 (10:39 -0800)]
* textprop.c: Use bool for booleans.

(validate_interval_range, Fadd_text_properties)
(Fremove_text_properties): Prefer bool to int when either works.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 2 Mar 2013 11:17:34 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoProtect against changes of interval tree when adding/removing text props.
Eli Zaretskii [Sat, 2 Mar 2013 09:28:53 +0000 (11:28 +0200)]
Protect against changes of interval tree when adding/removing text props.

 src/textprop.c (Fadd_text_properties, Fremove_text_properties): If
 the interval tree changes as a side effect of calling
 modify_region, re-do processing starting from the call to
 validate_interval_range.  (Bug#13743)

11 years agoRevert last commit; fixed on emacs-24 branch instead.
Eli Zaretskii [Sat, 2 Mar 2013 09:02:12 +0000 (11:02 +0200)]
Revert last commit; fixed on emacs-24 branch instead.

11 years agoFix bug #13734 with errors in lisp.h macro expansion.
Eli Zaretskii [Sat, 2 Mar 2013 08:19:45 +0000 (10:19 +0200)]
Fix bug #13734 with errors in lisp.h macro expansion.

 src/lisp.h (XPNTR) [!USE_LSB_TAG]: Fix parentheses nesting.

11 years agoFixes: debbugs:13734
Andreas Schwab [Sat, 2 Mar 2013 07:48:18 +0000 (08:48 +0100)]
Fixes: debbugs:13734

* lisp.h (XPNTR) [!USE_LSB_TAG]: Remove extra paren.

11 years agoFix typo in comment (bug#13851).
Bastien Guerry [Sat, 2 Mar 2013 07:19:10 +0000 (08:19 +0100)]
Fix typo in comment (bug#13851).

Thanks to Reuben Thomas for reporting this.

11 years ago* tramp.texi (External methods): Explain user name and host name
Michael Albinus [Fri, 1 Mar 2013 21:14:59 +0000 (22:14 +0100)]
* tramp.texi (External methods): Explain user name and host name
specification for "adb".

11 years ago* net/tramp-adb.el (tramp-adb-prompt): Extend regexp.
Michael Albinus [Fri, 1 Mar 2013 21:12:26 +0000 (22:12 +0100)]
* net/tramp-adb.el (tramp-adb-prompt): Extend regexp.
(tramp-adb-handle-process-file): Remove superfluous setting.
(tramp-adb-command-exit-status): Handle case that COMMAND is nil.
(tramp-adb-barf-unless-okay): Use `tramp-adb-command-exit-status'.
(tramp-adb-maybe-open-connection): Apply "su" if user is defined.

11 years ago* lisp/textmodes/ispell.el: Fix nitpicks and byte-compiler warnings.
Stefan Monnier [Fri, 1 Mar 2013 17:46:57 +0000 (12:46 -0500)]
* lisp/textmodes/ispell.el: Fix nitpicks and byte-compiler warnings.
(ispell-print-if-debug): Build `format' in.  Avoid end-of-buffer.
(ispell-parse-hunspell-affix-file): Avoid beginning-of-buffer.
Use dict-key rather than dict-name for the error message.

11 years ago* lisp/net/net-utils.el (net-utils-run-simple): Don't display-buffer
Thierry Volpiatto [Fri, 1 Mar 2013 17:27:57 +0000 (12:27 -0500)]
* lisp/net/net-utils.el (net-utils-run-simple): Don't display-buffer
when reverting.

Fixes: debbugs:13831

11 years agotextmodes/ispell.el: Expand hunspell affix-file paths. Improve debug messages printing.
Agustín Martín [Fri, 1 Mar 2013 17:13:04 +0000 (18:13 +0100)]
textmodes/ispell.el: Expand hunspell affix-file paths. Improve debug messages printing.

* textmodes/ispell.el (ispell-find-hunspell-dictionaries):
  Always expand affix-file before storing to protect against changed
  `default-directory'.
  (ispell-print-if-debug): Make sure message is printed at the end
  of the debug buffer.

11 years agoMerge from gnulib.
Paul Eggert [Fri, 1 Mar 2013 15:16:43 +0000 (07:16 -0800)]
Merge from gnulib.

2013-02-21 putenv: port better to native Windows
2013-02-18 extern-inline: avoid compilation error with HP-UX cc
2013-02-14 putenv: fix heap corruption with mixed putenv/_putenv