bpt/emacs.git
11 years ago* movemail.c (main): Call umask on all systems.
Paul Eggert [Wed, 13 Mar 2013 00:54:47 +0000 (17:54 -0700)]
* movemail.c (main): Call umask on all systems.

This is OK since Emacs already assumes umask elsewhere.

11 years agoMerge from gnulib.
Paul Eggert [Wed, 13 Mar 2013 00:38:42 +0000 (17:38 -0700)]
Merge from gnulib.

This incorporates:
2013-03-12 mktime: fix configure typo
2013-03-11 regex: port to mingw's recent addition of undeclared alarm
2013-03-11 putenv: avoid compilation warning on mingw
2013-03-11 unistd: don't prevent Tru64 Unix from using gnulib strtod.

11 years agoMention etc/HELLO.
Paul Eggert [Tue, 12 Mar 2013 23:53:35 +0000 (16:53 -0700)]
Mention etc/HELLO.

11 years agoRemove incorrect comment about hanja3.el.
Paul Eggert [Tue, 12 Mar 2013 20:54:53 +0000 (13:54 -0700)]
Remove incorrect comment about hanja3.el.

11 years agoAdd coding tags for iso-2022-7bit files that are not already tagged.
Paul Eggert [Tue, 12 Mar 2013 16:53:31 +0000 (09:53 -0700)]
Add coding tags for iso-2022-7bit files that are not already tagged.

* HELLO, tutorials/TUTORIAL.ko, tutorials/TUTORIAL.th:
Add coding tag.  For TUTORIAL.th this prevents Emacs from
misinterpreting the file.

11 years ago* progmodes/cfengine.el: add CFEngine 3-specific indentation.
Ted Zlatanov [Tue, 12 Mar 2013 15:49:26 +0000 (11:49 -0400)]
* progmodes/cfengine.el: add CFEngine 3-specific indentation.

11 years agoPrefer UTF-8 in documentation.
Paul Eggert [Tue, 12 Mar 2013 02:40:08 +0000 (19:40 -0700)]
Prefer UTF-8 in documentation.

11 years agoPrefer UTF-8 in commentary.
Paul Eggert [Tue, 12 Mar 2013 02:25:36 +0000 (19:25 -0700)]
Prefer UTF-8 in commentary.

11 years agoUse locate-user-emacs-file.
Stefan Monnier [Tue, 12 Mar 2013 02:08:21 +0000 (22:08 -0400)]
Use locate-user-emacs-file.
* lisp/type-break.el (type-break-file-name):
* lisp/textmodes/remember.el (remember-data-file):
* lisp/strokes.el (strokes-file):
* lisp/shadowfile.el (shadow-initialize):
* lisp/saveplace.el (save-place-file):
* lisp/ps-bdf.el (bdf-cache-file):
* lisp/progmodes/idlwave.el (idlwave-config-directory):
* lisp/net/quickurl.el (quickurl-url-file):
* lisp/international/kkc.el (kkc-init-file-name):
* lisp/ido.el (ido-save-directory-list-file):
* lisp/emulation/viper.el (viper-custom-file-name):
* lisp/emulation/vip.el (vip-startup-file):
* lisp/calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top):
* lisp/calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file.

11 years agoSwitch encodings of tutorials, thai-word to UTF-8.
Paul Eggert [Tue, 12 Mar 2013 01:14:08 +0000 (18:14 -0700)]
Switch encodings of tutorials, thai-word to UTF-8.

* etc/refcards/ru-refcard.tex:
* etc/tutorials/TUTORIAL.bg, etc/tutorials/TUTORIAL.bg, etc/tutorials/TUTORIAL.cn:
* etc/tutorials/TUTORIAL.cs, etc/tutorials/TUTORIAL.de, etc/tutorials/TUTORIAL.eo:
* etc/tutorials/TUTORIAL.es, etc/tutorials/TUTORIAL.fr, etc/tutorials/TUTORIAL.it:
* etc/tutorials/TUTORIAL.nl, etc/tutorials/TUTORIAL.pl, etc/tutorials/TUTORIAL.pt_BR:
* etc/tutorials/TUTORIAL.ro, etc/tutorials/TUTORIAL.sk, etc/tutorials/TUTORIAL.sv:
* etc/tutorials/TUTORIAL.zh:
* lisp/language/thai-word.el:
Switch to UTF-8.

Fixes: debbugs:13880

11 years ago* admin/notes/unicode: Fix "the these" typo.
Paul Eggert [Mon, 11 Mar 2013 22:35:04 +0000 (15:35 -0700)]
* admin/notes/unicode: Fix "the these" typo.

11 years ago* notes/unicode: Improve notes about Emacs source file encoding.
Paul Eggert [Mon, 11 Mar 2013 22:32:07 +0000 (15:32 -0700)]
* notes/unicode: Improve notes about Emacs source file encoding.

11 years ago* lisp/recentf.el (recentf-save-file): Use locate-user-emacs-file.
Stefan Monnier [Mon, 11 Mar 2013 20:37:00 +0000 (16:37 -0400)]
* lisp/recentf.el (recentf-save-file): Use locate-user-emacs-file.

Fixes: debbugs:13870

11 years ago* lisp/net/net-utils.el (net-utils-remove-ctrl-m-filter):
Thierry Volpiatto [Mon, 11 Mar 2013 18:30:49 +0000 (14:30 -0400)]
* lisp/net/net-utils.el (net-utils-remove-ctrl-m-filter):
Use with-current-buffer and don't move point.
(net-utils-run-simple): Remove useless code.
(net-utils-remove-ctl-m): Remove unused custom.

11 years ago* lisp/international/characters.el (glyphless-set-char-table-range): New fun.
Per Starbäck [Mon, 11 Mar 2013 17:45:23 +0000 (13:45 -0400)]
* lisp/international/characters.el (glyphless-set-char-table-range): New fun.
(update-glyphless-char-display): Use it.

Fixes: debbugs:13744

11 years agoUpdate ChangeLog for 2013-03-11T17:17:13Z!tzz@lifelogs.com.
Ted Zlatanov [Mon, 11 Mar 2013 17:21:31 +0000 (13:21 -0400)]
Update ChangeLog for 2013-03-11T17:17:13Z!tzz@lifelogs.com.

11 years ago* progmodes/cfengine.el: Update for CFEngine 3.4.2 and higher.
Ted Zlatanov [Mon, 11 Mar 2013 17:17:13 +0000 (13:17 -0400)]
* progmodes/cfengine.el: Update for CFEngine 3.4.2 and higher.

11 years ago* lisp/progmodes/gdb-mi.el: Speed up initialization. Use lexical-binding.
Jean-Philippe Gravel [Mon, 11 Mar 2013 17:13:39 +0000 (13:13 -0400)]
* lisp/progmodes/gdb-mi.el: Speed up initialization.  Use lexical-binding.
Fix up docstring according to conventions.
(gdbmi-debug-mode): New var.
(gdbmi-start-with, gdbmi-same-start, gdbmi-is-number, gdbmi-bnf-init)
(gdbmi-bnf-output, gdbmi-bnf-skip-unrecognized, gdbmi-bnf-gdb-prompt)
(gdbmi-bnf-result-record, gdbmi-bnf-out-of-band-record)
(gdbmi-bnf-async-record, gdbmi-bnf-stream-record)
(gdbmi-bnf-console-stream-output, gdbmi-bnf-target-stream-output)
(gdbmi-bnf-log-stream-output, gdbmi-bnf-result-and-async-record-impl)
(gdbmi-bnf-incomplete-record-result): New functions.
(gdb-car<): Remove function.
(gdbmi-record-list): Remove variable.
(gdbmi-bnf-state, gdbmi-bnf-offset): New vars.
(gdbmi-bnf-result-state-configs): New const.
(gud-gdbmi-marker-filter): Rewrite.
(gdb-ignored-notification, gdb-thread-created, gdb-thread-exited)
(gdb-thread-selected, gdb-running, gdb-starting, gdb-stopped):
Add `token' argument.
(gdb-done, gdb-error): New functions.
(gdb-done-or-error): Add `is-complete' argument.  Change arg order.

Fixes: debbugs:10580

11 years ago* control.texi (Pattern matching case statement): Fix typo.
Ted Zlatanov [Mon, 11 Mar 2013 17:05:30 +0000 (13:05 -0400)]
* control.texi (Pattern matching case statement): Fix typo.

11 years agoMerge from emacs-24; up to 2012-12-25T17:37:29Z!eliz@gnu.org
Glenn Morris [Mon, 11 Mar 2013 16:31:55 +0000 (09:31 -0700)]
Merge from emacs-24; up to 2012-12-25T17:37:29Z!eliz@gnu.org

11 years ago* lisp/term/xterm.el (xterm--report-background-handler): Don't burp
Stefan Monnier [Mon, 11 Mar 2013 14:08:44 +0000 (10:08 -0400)]
* lisp/term/xterm.el (xterm--report-background-handler): Don't burp
upon timeout.
(xterm--version-handler): Extract from terminal-init-xterm.
(xterm--query): Don't mishandle timeout.  Remove debugging messages.
Allow multiple handlers.
(terminal-init-xterm): Handle OSX's Terminal.app's incorrect answer.

Fixes: debbugs:6758

11 years agoSmall updates for make-manuals admin scripts
Glenn Morris [Mon, 11 Mar 2013 08:09:21 +0000 (01:09 -0700)]
Small updates for make-manuals admin scripts

* admin/admin.el (make-manuals): Add emacs-lisp-intro and some more
doc/misc manuals.
(manual-html-mono, manual-html-node, manual-txt): Pass -I to makeinfo.

11 years ago* lisp/term/xterm.el: Don't discard input. Use lexical-binding.
Stefan Monnier [Mon, 11 Mar 2013 04:24:15 +0000 (00:24 -0400)]
* lisp/term/xterm.el: Don't discard input.  Use lexical-binding.
(xterm--report-background-handler, xterm--query): New functions.
(terminal-init-xterm): Use them.

Fixes: debbugs:6758

11 years ago* progmodes/sql.el Version 3.2
Michael Mauger [Mon, 11 Mar 2013 04:09:37 +0000 (00:09 -0400)]
* progmodes/sql.el Version 3.2
Please note that my address changed to <michael@mauger.com>; the
<mmaug@yahoo.com> address remains active.
(sql-connection-alist): Updates documentation to fix bug#13715.
(sql-connect): Handle missing `sql-connection-alist' correctly.
(sql-mode-oracle-font-lock-keywords): Add missing keywords.
(sql-magic-go, sql-magic-semicolon): Mark with `delete-selection'
property.
(sql-default-value): New function.
(sql-get-login-ext, sql-get-login): Fixes bug where buffer-local
values were not used.
(sql-rename-buffer): Make sure alternate buffer name has no text
properties.
(sql-input-sender, sql-execute-feature): Fetch variable with
`buffer-local-value' rather than `with-current-buffer'.
(sql-*): Use #' function syntax consistently.
(sql-*): Use message/error/user-error consistently.

11 years agoSpelling fixes.
Paul Eggert [Mon, 11 Mar 2013 04:07:45 +0000 (21:07 -0700)]
Spelling fixes.

11 years ago* insdel.c (adjust_after_replace): Use bool for boolean.
Paul Eggert [Mon, 11 Mar 2013 04:02:06 +0000 (21:02 -0700)]
* insdel.c (adjust_after_replace): Use bool for boolean.

11 years ago* lisp/xt-mouse.el (xterm-mouse-event-read): Remove.
Stefan Monnier [Mon, 11 Mar 2013 02:56:18 +0000 (22:56 -0400)]
* lisp/xt-mouse.el (xterm-mouse-event-read): Remove.
(xterm-mouse--read-event-sequence-1000)
(xterm-mouse--read-event-sequence-1006): Use read-event instead.

11 years agoAdd 24.3 release to ChangeLogs
Glenn Morris [Mon, 11 Mar 2013 02:35:23 +0000 (19:35 -0700)]
Add 24.3 release to ChangeLogs

11 years ago* src/keyboard.c: Move keyboard decoding to read_key_sequence.
Stefan Monnier [Mon, 11 Mar 2013 01:17:40 +0000 (21:17 -0400)]
* src/keyboard.c: Move keyboard decoding to read_key_sequence.
(decode_keyboard_code): Remove.
(tty_read_avail_input): Don't try to decode input.
(read_decoded_char): New function.
(read_key_sequence): Use it.

11 years ago2013-03-10 Daniel Colascione <dancol@dancol.org>
Daniel Colascione [Sun, 10 Mar 2013 22:55:25 +0000 (14:55 -0800)]
2013-03-10  Daniel Colascione  <dancol@dancol.org>

* w32term.h (GUISTR, GUI_ENCODE_FILE, GUI_ENCODE_SYSTEM, GUI_FN)
(GUI_SDATA, guichar_t): Macros to abstract out differences between
NTGUI_UNICODE and !NTGUI_UNICODE builds, some moved out of
w32fns.c.

* w32term.c (construct_drag_n_drop): Use the above macros to make
drag-and-drop work for non-ASCII filenames in cygw32 builds.

* w32fns.c (x_set_name, x_set_title): Use the above macros to
properly display non-ASCII frame titles in cygw32 builds.

* w32fns.c (Fw32_shell_execute): Use the above macros to properly
call ShellExecute in cygw32 builds.

* w32fn.c (Fx_file_dialog): Use the above macros to simplify the
common file dialog code.

* w32fns.c (Ffile_system_info): Remove from cygw32 builds, which
can just use du like other systems.

* coding.c (from_unicode_buffer): Declare.
* coding.c (from_unicode_buffer): Implement.

11 years ago* src/lread.c: Minor cleanup.
Stefan Monnier [Sun, 10 Mar 2013 21:52:01 +0000 (17:52 -0400)]
* src/lread.c: Minor cleanup.
(FROM_FILE_P): New macro.
(skip_dyn_bytes, unreadchar, read1): Use it.
(read_list): Consolidate duplicated code.

11 years ago* src/bytecode.c (struct byte_stack): Remove `constants' when unused.
Stefan Monnier [Sun, 10 Mar 2013 21:46:55 +0000 (17:46 -0400)]
* src/bytecode.c (struct byte_stack): Remove `constants' when unused.

11 years ago* lisp/term/xterm.el (xterm-function-map): Support format used with
Stefan Monnier [Sun, 10 Mar 2013 21:44:31 +0000 (17:44 -0400)]
* lisp/term/xterm.el (xterm-function-map): Support format used with
formatOtherKeys=1.

Fixes: debbugs:13839

11 years ago* lisp/emacs-lisp/byte-run.el (dont-compile): Declare obsolete.
Stefan Monnier [Sun, 10 Mar 2013 21:40:55 +0000 (17:40 -0400)]
* lisp/emacs-lisp/byte-run.el (dont-compile): Declare obsolete.
(with-no-warnings): Use `declare'.

11 years ago* lisp/whitespace.el (whitespace-enable-predicate): New variable.
Stefan Monnier [Sun, 10 Mar 2013 21:39:11 +0000 (17:39 -0400)]
* lisp/whitespace.el (whitespace-enable-predicate): New variable.
(whitespace-enable-predicate): Use it.

11 years ago* lisp/comint.el: Use with-silent-modifications.
Stefan Monnier [Sun, 10 Mar 2013 21:37:42 +0000 (17:37 -0400)]
* lisp/comint.el: Use with-silent-modifications.
(comint-send-input, comint-snapshot-last-prompt)
(comint-output-filter, comint-update-fence): Use with-silent-modifications.

11 years agoUse macros from dispextern.h where appropriate.
Eli Zaretskii [Sun, 10 Mar 2013 17:28:04 +0000 (19:28 +0200)]
Use macros from dispextern.h where appropriate.

 src/xdisp.c (display_tool_bar_line, redisplay_tool_bar)
 (redisplay_internal, set_cursor_from_row, try_window)
 (try_window_id, dump_glyph_row, extend_face_to_end_of_line)
 (display_line, notice_overwritten_cursor)
 (mouse_face_from_buffer_pos, note_mouse_highlight): Use
 MATRIX_ROW_DISPLAYS_TEXT_P.
 (note_mouse_highlight): Use MATRIX_ROW_GLYPH_START.
 (mouse_face_from_string_pos, fast_find_string_pos): Use
 MATRIX_ROW_VPOS.
 src/xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
 src/w32fns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
 src/xdisp.c (try_cursor_movement): Use MATRIX_ROW and
 MATRIX_MODE_LINE_ROW.
 src/dispnew.c (update_window): Use MATRIX_ROW and MATRIX_MODE_LINE_ROW.

11 years agoFix previous change.
Kenichi Handa [Sun, 10 Mar 2013 15:06:04 +0000 (00:06 +0900)]
Fix previous change.

11 years agomerge trunk
Kenichi Handa [Sun, 10 Mar 2013 14:43:58 +0000 (23:43 +0900)]
merge trunk

11 years agoOn file insertion, skip decoding if all bytes are ASCII.
Kenichi Handa [Sun, 10 Mar 2013 14:36:35 +0000 (23:36 +0900)]
On file insertion, skip decoding if all bytes are ASCII.

11 years agoProvide for customizing default regexp in occur commands (Bug#13892).
Jambunathan K [Sun, 10 Mar 2013 08:44:07 +0000 (14:14 +0530)]
Provide for customizing default regexp in occur commands (Bug#13892).

* lisp/replace.el (occur-read-regexp-defaults-function): New var.
(occur-read-regexp-defaults): New defun.
(occur-read-primary-args): Propagate above change.

11 years ago* admin/admin.el (add-release-logs): Use UTC for release date.
Glenn Morris [Sun, 10 Mar 2013 02:18:49 +0000 (18:18 -0800)]
* admin/admin.el (add-release-logs): Use UTC for release date.

11 years agoFix typo in previous
Glenn Morris [Sun, 10 Mar 2013 02:15:08 +0000 (18:15 -0800)]
Fix typo in previous

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