]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 years agoauto upstream
Joakim Verona [Fri, 8 Feb 2013 23:03:39 +0000 (00:03 +0100)]
auto upstream

11 years ago* src/lread.c (skip_dyn_bytes): New function.
Stefan Monnier [Fri, 8 Feb 2013 17:42:09 +0000 (12:42 -0500)]
* src/lread.c (skip_dyn_bytes): New function.
(read1): Use it.  Use getc instead of READCHAR to read bytes.
(load_each_byte): Remove.  Update users.

Fixes: debbugs:12598
11 years agoMerge from emacs-24; up to 2012-12-14T21:27:39Z!rgm@gnu.org
Glenn Morris [Fri, 8 Feb 2013 17:23:24 +0000 (09:23 -0800)]
Merge from emacs-24; up to 2012-12-14T21:27:39Z!rgm@gnu.org

11 years agoRemove old TODO item - user-error was added
Glenn Morris [Fri, 8 Feb 2013 17:14:58 +0000 (09:14 -0800)]
Remove old TODO item - user-error was added

11 years agoRemove longlines entry (bug#13652)
Glenn Morris [Fri, 8 Feb 2013 17:13:46 +0000 (09:13 -0800)]
Remove longlines entry (bug#13652)

11 years agokeymaps.texi tweak
Glenn Morris [Fri, 8 Feb 2013 17:13:06 +0000 (09:13 -0800)]
keymaps.texi tweak

* doc/lispref/keymaps.texi (Active Keymaps, Searching Keymaps):
Remove confusing mention of "symbolic prefix".

Fixes: debbugs:13643
11 years ago* lisp/emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile):
Stefan Monnier [Fri, 8 Feb 2013 16:17:18 +0000 (11:17 -0500)]
* lisp/emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile):
Eval body right away, now that we do eager macroexpansion.

Fixes: debbugs:13605
11 years ago* lisp/simple.el (end-of-buffer): Don't touch unrelated windows.
Stefan Monnier [Fri, 8 Feb 2013 15:53:49 +0000 (10:53 -0500)]
* lisp/simple.el (end-of-buffer): Don't touch unrelated windows.
(fundamental-mode): Use run-mode-hooks.

Fixes: debbugs:13466
11 years ago* leim/quail/latin-ltx.el: Add greek superscripts.
Stefan Monnier [Fri, 8 Feb 2013 15:48:36 +0000 (10:48 -0500)]
* leim/quail/latin-ltx.el: Add greek superscripts.

11 years ago* lisp/eshell/esh-proc.el (eshell/kill): Fix last change.
Stefan Monnier [Fri, 8 Feb 2013 15:47:07 +0000 (10:47 -0500)]
* lisp/eshell/esh-proc.el (eshell/kill): Fix last change.
* lisp/eshell/em-ls.el (eshell-ls-dir): Fix use of CL in last change.

11 years ago* lisp/eshell: Minor fixes.
Aidan Gauland [Fri, 8 Feb 2013 15:07:03 +0000 (10:07 -0500)]
* lisp/eshell: Minor fixes.
* lisp/eshell/em-ls.el (show-almost-all): Declare.
(eshell-do-ls): Add support for -A argument.
* lisp/eshell/esh-proc.el (eshell/kill): Rewrite.

11 years ago* doc/misc/eshell.texi: Fill most of the missing sections.
Aidan Gauland [Fri, 8 Feb 2013 14:59:24 +0000 (09:59 -0500)]
* doc/misc/eshell.texi: Fill most of the missing sections.

11 years ago* search.c (scan_buffer): Calculate end byte position just once.
Dmitry Antipov [Fri, 8 Feb 2013 14:44:53 +0000 (18:44 +0400)]
* search.c (scan_buffer): Calculate end byte position just once.
(scan_newline): Do not recalculate start_byte.
(search_command): Use eassert.
* syntax.c (struct lisp_parse_state): New member location_byte.
(scan_sexps_forward): Record from_byte and avoid redundant
character to byte position calculation ...
(Fparse_partial_sexp): ... here.  Break too long line.

11 years ago* doc/misc/eshell.texi: Fill most of the missing sections. emacs-23
Aidan Gauland [Fri, 8 Feb 2013 14:44:17 +0000 (09:44 -0500)]
* doc/misc/eshell.texi: Fill most of the missing sections.

11 years agosrc/xdisp.c: Fix commentary of display_count_lines.
Eli Zaretskii [Fri, 8 Feb 2013 14:27:04 +0000 (16:27 +0200)]
src/xdisp.c: Fix commentary of display_count_lines.

11 years ago* lisp/icomplete.el (icomplete-forward-completions)
Jambunathan K [Fri, 8 Feb 2013 07:53:55 +0000 (09:53 +0200)]
* lisp/icomplete.el (icomplete-forward-completions)
(icomplete-backward-completions): Handle corner case.

Fixes: debbugs:13602
11 years ago* lisp.h (make_uninit_vector): New function.
Dmitry Antipov [Fri, 8 Feb 2013 05:28:52 +0000 (09:28 +0400)]
* lisp.h (make_uninit_vector): New function.
* alloc.c (Fvector, Fmake_byte_code):
* ccl.c (Fregister_ccl_program):
* charset.c (Fdefine_charset_internal, define_charset_internal):
* coding.c (make_subsidiaries, Fdefine_coding_system_internal):
* composite.c (syms_of_composite):
* font.c (Fquery_font, Ffont_info, syms_of_font):
* fontset.c (FONT_DEF_NEW, Fset_fontset_font):
* ftfont.c (ftfont_shape_by_flt):
* indent.c (recompute_width_table):
* nsselect.m (clean_local_selection_data):
* syntax.c (init_syntax_once):
* w32unsubscribe.c (uniscribe_shape):
* window.c (Fcurrent_window_configuration):
* xfaces.c (Fx_family_fonts):
* xselect.c (selection_data_to_lisp_data): Use it.

11 years agoauto upstream
Joakim Verona [Thu, 7 Feb 2013 23:03:56 +0000 (00:03 +0100)]
auto upstream

11 years ago* coding.c (Fdefine_coding_system_internal): Use AREF where
Dmitry Antipov [Thu, 7 Feb 2013 16:09:04 +0000 (20:09 +0400)]
* coding.c (Fdefine_coding_system_internal): Use AREF where
argument is known to be a vector.
* fns.c (Flocale_info): Likewise for ASET.
* xselect.c (selection_data_to_lisp_data): Likewise for ASET.
* w32fns.c (w32_parse_hot_key): Likewise for ASIZE and AREF.

11 years ago* vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
Michael Albinus [Thu, 7 Feb 2013 08:50:04 +0000 (09:50 +0100)]
* vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
be nil.  Handle this.  (Bug#13636)

11 years agoMerge from emacs-24; up to 2012-12-14T15:38:50Z!monnier@iro.umontreal.ca
Glenn Morris [Thu, 7 Feb 2013 08:31:21 +0000 (00:31 -0800)]
Merge from emacs-24; up to 2012-12-14T15:38:50Z!monnier@iro.umontreal.ca

11 years agoForce saving without encoding, regardless of current message.
Richard M. Stallman [Thu, 7 Feb 2013 08:04:05 +0000 (03:04 -0500)]
Force saving without encoding, regardless of current message.

11 years agoRegenerate AUTHORS and ldefs-boot.el emacs-24.2.93
Glenn Morris [Thu, 7 Feb 2013 08:03:47 +0000 (00:03 -0800)]
Regenerate AUTHORS and ldefs-boot.el

11 years agoChangeLog author fix
Glenn Morris [Thu, 7 Feb 2013 07:40:58 +0000 (23:40 -0800)]
ChangeLog author fix

11 years agoMerge Org 7.9.3e (commit b07a9bb).
Bastien Guerry [Thu, 7 Feb 2013 07:11:59 +0000 (08:11 +0100)]
Merge Org 7.9.3e (commit b07a9bb).

11 years agoMerge from emacs-24; up to 2012-12-14T15:22:24Z!monnier@iro.umontreal.ca
Glenn Morris [Thu, 7 Feb 2013 06:23:54 +0000 (22:23 -0800)]
Merge from emacs-24; up to 2012-12-14T15:22:24Z!monnier@iro.umontreal.ca

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 7 Feb 2013 06:16:17 +0000 (01:16 -0500)]
Auto-commit of generated files.

11 years agoBump version number to 24.2.93
Glenn Morris [Thu, 7 Feb 2013 06:15:20 +0000 (22:15 -0800)]
Bump version number to 24.2.93

11 years agomouse.el comment
Glenn Morris [Thu, 7 Feb 2013 01:54:50 +0000 (20:54 -0500)]
mouse.el comment

11 years ago* auth-source.el (auth-source-format-prompt): Don't get confused by any "\"
Gabor Vida [Thu, 7 Feb 2013 01:53:26 +0000 (20:53 -0500)]
* auth-source.el (auth-source-format-prompt): Don't get confused by any "\"
in replacement text.

Fixes: debbugs:13637
11 years agoauto upstream
Joakim Verona [Wed, 6 Feb 2013 23:03:33 +0000 (00:03 +0100)]
auto upstream

11 years ago* emacs-lisp/package.el (describe-package-1): Tell what archive is used to
Nicolas Richard [Wed, 6 Feb 2013 16:10:13 +0000 (17:10 +0100)]
* emacs-lisp/package.el (describe-package-1): Tell what archive is used to
install the package.

Patch by Nicolas Richard.

11 years ago* vc/vc-hooks.el (vc-find-file-hook): Don't ask about following links
Glenn Morris [Wed, 6 Feb 2013 08:27:41 +0000 (00:27 -0800)]
* vc/vc-hooks.el (vc-find-file-hook): Don't ask about following links
if we can't get user input.

Fixes: debbugs:6567
11 years agoChangeLog date fix (do not merge to trunk)
Glenn Morris [Wed, 6 Feb 2013 04:37:28 +0000 (20:37 -0800)]
ChangeLog date fix (do not merge to trunk)

11 years ago* doc/misc/cl.texi (Equality Predicates): Mention memql.
Glenn Morris [Wed, 6 Feb 2013 04:36:44 +0000 (20:36 -0800)]
* doc/misc/cl.texi (Equality Predicates): Mention memql.

11 years ago* lisp/startup.el (command-line): If simple.el is missing,
Glenn Morris [Wed, 6 Feb 2013 02:03:35 +0000 (21:03 -0500)]
* lisp/startup.el (command-line): If simple.el is missing,
test and warn about for some possible causes.

11 years agoBackport fix for execvp issue from trunk
Daniel Colascione [Tue, 5 Feb 2013 23:52:03 +0000 (15:52 -0800)]
Backport fix for execvp issue from trunk

11 years agoauto upstream
Joakim Verona [Tue, 5 Feb 2013 23:03:29 +0000 (00:03 +0100)]
auto upstream

11 years agoRelocate NEWS entry from 24.3 section to 24.4 where it belongs
Glenn Morris [Tue, 5 Feb 2013 17:01:25 +0000 (09:01 -0800)]
Relocate NEWS entry from 24.3 section to 24.4 where it belongs

11 years ago* NEWS: Mention ns-use-native-fullscreen.
Jan Djärv [Tue, 5 Feb 2013 12:21:55 +0000 (13:21 +0100)]
* NEWS: Mention ns-use-native-fullscreen.

11 years ago* lisp/cus-start.el (all): Add ns-use-native-fullscreen.
Jan Djärv [Tue, 5 Feb 2013 12:16:35 +0000 (13:16 +0100)]
* lisp/cus-start.el (all): Add ns-use-native-fullscreen.

* src/nsmenu.m (update_frame_tool_bar): Check for negative tool bar
height.

* src/nsterm.h (HAVE_NATIVE_FS): Define if OSX => 10.7.
(EmacsView): Add fs_is_native, fsIsNative, isFullscreen and
updateCollectionBehaviour.

* src/nsterm.m (NEW_STYLE_FS): Remove.
(ns_last_use_native_fullscreen): New variable.
(x_make_frame_visible): Replace NEW_STYLE_FS with isFullscreen.
(x_set_window_size): Do not take title bar and tool bar into account
if isFullscreen returns YES.
(ns_fullscreen_hook): Replace NEW_STYLE_FS with isFullscreen.
(check_native_fs): New function.
(ns_select, ns_read_socket): Call check_native_fs if HAVE_NATIVE_FS.
(ns_term_init): Remove NEW_STYLE_FS.
(updateFrameSize:, windowWillResize:toSize:): Only adjust for title bar
and tool bar if isFullscreen returns NO.
(windowDidResize:): Replace NEW_STYLE_FS with fsIsNative.
(initFrameFromEmacs:): Initialize fs_is_native.  Replace NEW_STYLE_FS
with HAVE_NATIVE_FS.
(window:willUseFullScreenPresentationOptions:): New method.
(windowDidEnterFullScreen:): Replace NEW_STYLE_FS with fsIsNative.
Hide toolbar if not enabled.
(windowDidExitFullScreen:): Call updateCollectionBehaviour.
Restore tool bar if enabled, hide it otherwise (Bug#13444).
(fsIsNative, isFullscreen, updateCollectionBehaviour): New methods.
(toggleFullScreen:): If fs_is_native, call toggleFullScreen on
window.  Do no set FRAME_EXTERNAL_TOOL_BAR (f) to 0.
Check FRAME_EXTERNAL_TOOL_BAR (f) before restoring
FRAME_TOOLBAR_HEIGHT (f).  Call updateFrameSize when going non-fs.
(syms_of_nsterm): Add ns-use-native-fullscreen.

11 years ago* lisp/profiler.el (profiler-report-mode-map): Add a restart menu entry.
Glenn Morris [Tue, 5 Feb 2013 02:12:58 +0000 (21:12 -0500)]
* lisp/profiler.el (profiler-report-mode-map): Add a restart menu entry.

11 years agoFix indentation in previous
Glenn Morris [Tue, 5 Feb 2013 02:06:53 +0000 (21:06 -0500)]
Fix indentation in previous

11 years agogamegrid-add-score-with-update-game-score fix
Glenn Morris [Tue, 5 Feb 2013 02:03:51 +0000 (21:03 -0500)]
gamegrid-add-score-with-update-game-score fix

* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
Fix directory creation in fallback case.

11 years agoauto upstream
Joakim Verona [Mon, 4 Feb 2013 23:03:35 +0000 (00:03 +0100)]
auto upstream

11 years ago* lisp/vc/vc.el (vc-next-action): Fix inf-loop.
Thierry Volpiatto [Mon, 4 Feb 2013 21:23:15 +0000 (16:23 -0500)]
* lisp/vc/vc.el (vc-next-action): Fix inf-loop.
(vc-update-change-log): Use dolist.

Fixes: debbugs:13610
11 years ago* fileio.c (Qchoose_write_coding_system): Now static.
Paul Eggert [Mon, 4 Feb 2013 16:33:30 +0000 (08:33 -0800)]
* fileio.c (Qchoose_write_coding_system): Now static.

11 years agoFix bugs #13623 and 13626 caused by changes in 2013-02-01T07:23:18Z!dmantipov@yandex.ru.
Eli Zaretskii [Mon, 4 Feb 2013 15:39:55 +0000 (17:39 +0200)]
Fix bugs #13623 and 13626 caused by changes in 2013-02-01T07:23:18Z!dmantipov@yandex.ru.

 src/xdisp.c (window_buffer_changed): region_showing can be negative,
 which still means region is being displayed.
 (redisplay_internal): Resurrect code that forced redisplay of the
 whole window when showing region and the mark has changed.  Record
 the new mark position to allow redisplay optimizations.
 (display_line): If it->region_beg_charpos is non-zero, set the
 window's region_showing member to -1.
 src/window.h (struct window) <region_showing>: Declare ptrdiff_t,
 not bitfield of 1 bit.

11 years agoMerge FFAP's URI-detection code into thingatpt.el.
Chong Yidong [Mon, 4 Feb 2013 12:02:25 +0000 (20:02 +0800)]
Merge FFAP's URI-detection code into thingatpt.el.

* lisp/ffap.el: Require thingatpt.
(ffap-url-at-point): Delegate URI detection to thing-at-point.
All URI-valid characters are now recognized.
(ffap-string-at-point): Use use-region-p.
(ffap-url-regexp): Extra character is handled by thing-at-point.
(ffap-string-at-point-mode-alist): Allow parentheses.
(ffap-newsgroup-regexp, ffap-newsgroup-heads, ffap-newsgroup-p):
Convert to aliases; code moved to thingatpt.el.
(ffap-gnus-hook): Use setq-local.

* lisp/thingatpt.el: Rewrite the URL detection routines, absorbing some
code from ffap.el.
(thing-at-point-beginning-of-url-regexp): New var.
(thing-at-point-uri-schemes): Update list of URI schemes.
(thing-at-point-url-regexp): Variable deleted.
(thing-at-point-markedup-url-regexp): Disallow newlines.
(thing-at-point-newsgroup-regexp)
(thing-at-point-newsgroup-heads)
(thing-at-point-default-mail-uri-scheme): New variables.
(thing-at-point-bounds-of-url-at-point): Rewrite.  Use ffap's
method to find the possible bounds of the URI at point.  New
optional argument to find ill-formed URIs.
(thing-at-point-url-at-point): Rewrite.  New arguments for finding
ill-formed URIs.  Use thing-at-point-bounds-of-url-at-point, and
the scheme-adding heuristics from ffap-url-at-point.
(thing-at-point--bounds-of-well-formed-url): New function.  Do
parens matching to decide whether to include parens in the URI

* test/automated/thingatpt.el: New file.

Fixes: debbugs:5673
11 years agoert--explain-format-atom fix for non-characters
Glenn Morris [Mon, 4 Feb 2013 07:46:22 +0000 (23:46 -0800)]
ert--explain-format-atom fix for non-characters

* lisp/emacs-lisp/ert.el (ert--explain-format-atom):
Don't try to print non-characters as characters.

Fixes: debbugs:13543
11 years agoede.texi typo fixes
Glenn Morris [Mon, 4 Feb 2013 03:07:26 +0000 (19:07 -0800)]
ede.texi typo fixes

11 years agoauto upstream
Joakim Verona [Sun, 3 Feb 2013 23:03:35 +0000 (00:03 +0100)]
auto upstream

11 years agoUpdate EDE documentation (bug #11441).
Eric M. Ludlam [Sun, 3 Feb 2013 20:04:46 +0000 (21:04 +0100)]
Update EDE documentation (bug #11441).

* doc/misc/ede.texi (Creating a project): Make ede-new doc less
specific, and only about items it supports, indicating that there
might be more.  Remove refs to simple project and direct automake
from ede new.
(Simple projects): Re-write to not talk about ede-simple-project
which is deprecated, and instead use the term to mean projects
that don't do much management, just project wrapping.  Add
ede-generic-project link.
(ede-generic-project): New node (bug#11441).

11 years ago* doc/misc/cl.texi (Equality Predicates): Fix eq/eql pedantry.
Glenn Morris [Sun, 3 Feb 2013 19:40:00 +0000 (11:40 -0800)]
* doc/misc/cl.texi (Equality Predicates): Fix eq/eql pedantry.

11 years agoDaniel Colascione 2013-02-03 * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC
Daniel Colascione [Sun, 3 Feb 2013 17:02:56 +0000 (09:02 -0800)]
Daniel Colascione 2013-02-03 * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC

11 years ago* net/tramp.el (tramp-debug-message): Extend function exclude list.
Michael Albinus [Sun, 3 Feb 2013 16:49:37 +0000 (17:49 +0100)]
* net/tramp.el (tramp-debug-message): Extend function exclude list.
(tramp-backtrace): New defun.
(tramp-handle-insert-file-contents): Use `visit' when inserting
the local copy.

* net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime): Use
`remote-file-name-inhibit-cache'.

11 years ago* emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that
Daniel Colascione [Sun, 3 Feb 2013 16:45:37 +0000 (08:45 -0800)]
* emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that
daemon mode works on cygw32 when Emacs is installed and not just
during development.

11 years ago* lisp/url/url-cache.el (url-cache-create-filename-using-md5): Don't waste your
Stefan Monnier [Sun, 3 Feb 2013 16:13:36 +0000 (11:13 -0500)]
* lisp/url/url-cache.el (url-cache-create-filename-using-md5): Don't waste your
time `requiring' a builtin feature.
* lisp/subr.el (internal--called-interactively-p--get-frame): Remove
left-over message.

11 years ago* lisp/progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning.
Stefan Monnier [Sun, 3 Feb 2013 15:47:12 +0000 (10:47 -0500)]
* lisp/progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning.

Fixes: debbugs:13614
11 years ago* lisp/subr.el (internal--called-interactively-p--get-frame): Avoid filling
Stefan Monnier [Sun, 3 Feb 2013 15:28:47 +0000 (10:28 -0500)]
* lisp/subr.el (internal--called-interactively-p--get-frame): Avoid filling
current-load-list.

Fixes: debbugs:13366
11 years agoFix byte compilation warning in files testsuite.
Chong Yidong [Sun, 3 Feb 2013 08:55:45 +0000 (16:55 +0800)]
Fix byte compilation warning in files testsuite.

* automated/files.el (file-test--do-local-variables-test): Avoid
compilation warning message.

11 years agoauto upstream
Joakim Verona [Sat, 2 Feb 2013 23:03:44 +0000 (00:03 +0100)]
auto upstream

11 years agoAvoid file time stamp bug on MS-Windows.
Paul Eggert [Sat, 2 Feb 2013 19:18:00 +0000 (11:18 -0800)]
Avoid file time stamp bug on MS-Windows.

* fileio.c (Fwrite_region): Don't use the heuristic on empty files,
as FAT32 doesn't update time stamps when truncating them.
Also, check that a file time stamp is not a multiple of 100 ns;
this should catch all instances of the problem on MS-Windows,
as its native file system resolution is 100 ns or worse, and
checking for a non-multiple of 100 ns should impose only a small
overhead on systems with ns resolution.

Fixes: debbugs:13149
11 years agoFix bug in the state cache mechanism. Remove 'BOD "strategy". Refactor.
Alan Mackenzie [Sat, 2 Feb 2013 18:24:10 +0000 (18:24 +0000)]
Fix bug in the state cache mechanism.  Remove 'BOD "strategy".  Refactor.
cc-engine.el (c-get-fallback-scan-pos): Remove.
(c-parse-state-get-strategy): Don't return 'BOD any more.
(c-append-lower-brace-pair-to-state-cache): Extra parameter HERE instead
of narrowing.  Widen to top of buffer before searching backwards for a
brace pair.
(c-state-push-any-brace-pair): Add HERE parameter to function call.
(c-append-to-state-cache): Extra parameter HERE in place of narrowing.
Narrow to parameter HERE, in place of being called narrowed.
(c-remove-stale-state-cache): Extra parameter HERE in place of narrowing.
Check there's an open brace in the cache before searching for its match.
(c-invalidate-state-cache-1): Add HERE parameter to function call.
(c-parse-state-1): Don't narrow here for 'forward strategy, instead
passing extra parameter HERE to several functions.  Remove 'BOD strategy.

11 years agoAvoid encoding file names run through dostounix_filename on MS-Windows.
Eli Zaretskii [Sat, 2 Feb 2013 17:14:24 +0000 (19:14 +0200)]
Avoid encoding file names run through dostounix_filename on MS-Windows.

 src/w32.c (normalize_filename): Accept an additional argument
 MULTIBYTE; if non-zero, traverse the file name by bytes and don't
 downcase it even if w32-downcase-file-names is non-nil.
 (dostounix_filename): Accept an additional argument MULTIBYTE and
 pass it to normalize_filename.
 (emacs_root_dir): Adjust.
 src/msdos.h (dostounix_filename): Adjust prototype.
 src/w32.h (dostounix_filename): Adjust prototype.
 src/msdos.c (dostounix_filename): Accept an additional argument and
 ignore it.
 (init_environment): Adjust callers of dostounix_filename.
 src/fileio.c (Ffile_name_directory, file_name_as_directory)
 (directory_file_name, Fexpand_file_name)
 (Fsubstitute_in_file_name): [DOS_NT] Adjust call to
 dostounix_filename.
 [WINDOWSNT]: Downcase file names if w32-downcase-file-names is
 non-nil.
 (Fsubstitute_in_file_name): [DOS_NT] Don't downcase environment
 variables, as egetenv is case-insensitive for DOS_NT.
 src/dired.c (file_name_completion): Don't call Fdirectory_file_name
 with an encoded file name.
 src/w32proc.c (Fw32_short_file_name, Fw32_long_file_name): Adjust
 calls to dostounix_filename.
 src/w32fns.c (Fx_file_dialog): Adjust call to dostounix_filename.
 src/unexw32.c (unexec): Adjust call to dostounix_filename.
 src/termcap.c (tgetent) [MSDOS]: Adjust call to dostounix_filename.
 src/emacs.c (decode_env_path) [DOS_NT]: Adjust call to
 dostounix_filename.
 src/callproc.c (Fcall_process) [MSDOS]: Adjust call to
 dostounix_filename.

11 years ago* progmodes/compile.el (compilation-mode-hook)
Christopher Schmidt [Sat, 2 Feb 2013 08:41:02 +0000 (09:41 +0100)]
* progmodes/compile.el (compilation-mode-hook)
(compilation-start-hook, compilation-window-height): Simplify
docstrings.  (Bug#13379)

11 years agoUpdate nt/INSTALL.
Eli Zaretskii [Sat, 2 Feb 2013 08:23:52 +0000 (10:23 +0200)]
Update nt/INSTALL.

11 years ago* progmodes/compile.el (compilation-start-hook): Simplify docstring.
Christopher Schmidt [Sat, 2 Feb 2013 06:25:20 +0000 (07:25 +0100)]
* progmodes/compile.el (compilation-start-hook): Simplify docstring.
(Bug#13379)

11 years ago* progmodes/compile.el (compilation-error-regexp-alist-alist):
Christopher Schmidt [Sat, 2 Feb 2013 06:15:05 +0000 (07:15 +0100)]
* progmodes/compile.el (compilation-error-regexp-alist-alist):
Identify g++ template instantiation trace.  (Bug#12287)

11 years agoSpelling fixes.
Paul Eggert [Sat, 2 Feb 2013 06:04:06 +0000 (22:04 -0800)]
Spelling fixes.

11 years agoMerge from emacs-24; up to 2012-12-13T09:45:54Z!lekktu@gmail.com
Glenn Morris [Sat, 2 Feb 2013 03:38:21 +0000 (19:38 -0800)]
Merge from emacs-24; up to 2012-12-13T09:45:54Z!lekktu@gmail.com

11 years ago* lisp/progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face
Juri Linkov [Sat, 2 Feb 2013 00:35:38 +0000 (02:35 +0200)]
* lisp/progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face
instead of hard-coded default face `match'.  (Bug#9438)

11 years ago* lisp/mouse.el (mouse-drag-track): Always deactivate the mark before
Stefan Monnier [Fri, 1 Feb 2013 23:40:55 +0000 (18:40 -0500)]
* lisp/mouse.el (mouse-drag-track): Always deactivate the mark before
running the final event's command since that command is in charge of
activating the mark if needed.

Fixes: debbugs:13523
11 years ago* lisp/replace.el (perform-replace): Move let-bindings of isearch-*
Juri Linkov [Fri, 1 Feb 2013 23:38:41 +0000 (01:38 +0200)]
* lisp/replace.el (perform-replace): Move let-bindings of isearch-*
variables deeper to the loop that searches for the next match.
Add bindings for `isearch-nonincremental' and `isearch-adjusted'.
Use `isearch-search-fun-default' instead of `isearch-search-fun'.

* lisp/isearch.el (isearch-search-fun-default): Check for null
first element of isearch-cmds as a precaution when it's used
with inactive isearch.

Fixes: debbugs:13579
11 years agoauto upstream
Joakim Verona [Fri, 1 Feb 2013 23:03:52 +0000 (00:03 +0100)]
auto upstream

11 years ago* net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
Andrew W. Nosenko [Fri, 1 Feb 2013 21:10:08 +0000 (22:10 +0100)]
* net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
error when buffer in question is narrowed so position 1 is out of
visible part.

11 years agoFix timestamp bug when write-region appends nothing.
Paul Eggert [Fri, 1 Feb 2013 20:51:12 +0000 (12:51 -0800)]
Fix timestamp bug when write-region appends nothing.

* fileio.c (Fwrite_region): When neither O_EXCL nor O_TRUNC is used,
the file's time stamp doesn't change if Emacs happens to write nothing
to the file, and on a buggy file system this could cause Emacs to
incorrectly infer that the file system doesn't have the bug.
Avoid this problem by inhibiting the inference in this case.

Fixes: debbugs:13149
11 years ago* vc/vc-arch.el (vc-arch-registered):
Christopher Schmidt [Fri, 1 Feb 2013 17:19:24 +0000 (18:19 +0100)]
* vc/vc-arch.el (vc-arch-registered):
* vc/vc-bzr.el (vc-bzr-registered):
* vc/vc-cvs.el (vc-cvs-registered):
* vc/vc-git.el (vc-git-registered):
* vc/vc-hg.el (vc-hg-registered):
* vc/vc-mtn.el (vc-mtn-registered):
* vc/vc-svn.el (vc-svn-registered): Suppress load messages.
(Bug#13139)

11 years ago* info.el (Info-next-reference, Info-prev-reference): Add numeric
Christopher Schmidt [Fri, 1 Feb 2013 16:46:46 +0000 (17:46 +0100)]
* info.el (Info-next-reference, Info-prev-reference): Add numeric
prefix argument.  (Bug#11656)

11 years ago* lisp/help-fns.el (help-split-fundoc): Don't insert byte-compiled body.
Stefan Monnier [Fri, 1 Feb 2013 15:56:22 +0000 (10:56 -0500)]
* lisp/help-fns.el (help-split-fundoc): Don't insert byte-compiled body.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Feb 2013 12:18:14 +0000 (07:18 -0500)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Feb 2013 11:21:12 +0000 (06:21 -0500)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 1 Feb 2013 11:17:43 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoMake sure program names are encoded before using them to invoke subprocesses.
Eli Zaretskii [Fri, 1 Feb 2013 10:15:36 +0000 (12:15 +0200)]
Make sure program names are encoded before using them to invoke subprocesses.

 src/callproc.c (Fcall_process): Make sure program name in PATH and
 new_argv[0] is encoded, if needed.  Otherwise, un-encoded string
 is passed to exec/spawnve, which fails unless the file-name
 encoding is UTF-8.

11 years agow32proc.c (sys_spawnve): Initialize escape_char.
Eli Zaretskii [Fri, 1 Feb 2013 09:23:23 +0000 (11:23 +0200)]
w32proc.c (sys_spawnve): Initialize escape_char.

 src/w32proc.c (sys_spawnve): Make sure escape_char is initialized,
 even if w32-quote-process-args is nil.

11 years ago* vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
Glenn Morris [Fri, 1 Feb 2013 08:44:10 +0000 (00:44 -0800)]
* vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
if the backend is known not to support it.

11 years ago* imenu.el (imenu-default-create-index-function):
Glenn Morris [Fri, 1 Feb 2013 08:23:47 +0000 (00:23 -0800)]
* imenu.el (imenu-default-create-index-function):
Tweak infinite loop test to check for forward motion as well as none.

11 years ago* net/soap-client.el (soap-invoke): Encode the string for
Alex Harsanyi [Fri, 1 Feb 2013 07:28:10 +0000 (08:28 +0100)]
* net/soap-client.el (soap-invoke): Encode the string for
`url-request-data' as UTF-8.  Fixes
<http://code.google.com/p/emacs-soap-client/issues/detail?id=16>.

11 years ago* window.h (struct window): Convert base_line_number, base_line_pos
Dmitry Antipov [Fri, 1 Feb 2013 07:23:18 +0000 (11:23 +0400)]
* window.h (struct window): Convert base_line_number, base_line_pos
and column_number_displayed members from Lisp_Object to ptrdiff_t.
Convert region_showing member from Lisp_Object to bitfield.
Remove sequence_number member.  Adjust comments.
* window.c (sequence_number): Remove.
(make_window): Initialize column_number_displayed.
* print.c (print_object): Follow the printed representation of
frames and print window pointer to distinguish between windows.
(adjust_window_count): Invalidate base_line_pos.  Adjust comment.
* xdisp.c (wset_base_line_number, wset_base_line_pos)
(wset_column_number_displayed, wset_region_showing): Remove.
(window_buffer_changed, mode_line_update_needed, redisplay_internal)
(try_scrolling, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id, display_line)
(display_mode_lines, decode_mode_spec): Adjust users.
* .gdbinit (pwinx): Do not print sequence_number.

11 years agoUse fdopendir, fstatat and readlinkat, for efficiency.
Paul Eggert [Fri, 1 Feb 2013 06:30:51 +0000 (22:30 -0800)]
Use fdopendir, fstatat and readlinkat, for efficiency.

On my host, this speeds up directory-files-and-attributes by a
factor of 3, when applied to Emacs's src directory.
These functions are standardized by POSIX and are common these
days; fall back on a (slower) gnulib implementation if the host
is too old to supply them.
* .bzrignore: Add lib/dirent.h.
* lib/Makefile.am (libgnu_a_SOURCES): Add openat-die.c, save-cwd.c.
* lib/careadlinkat.c, lib/careadlinkat.h: Merge from gnulib,
incorporating: 2013-01-29 careadlinkat: do not provide careadlinkatcwd.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/dirent.in.h, lib/fdopendir.c, lib/fstatat.c, lib/openat-priv.h:
* lib/openat-proc.c, lib/openat.h, m4/dirent_h.m4, m4/fdopendir.m4:
* m4/fstatat.m4: New files, from gnulib.
* lib/openat-die.c, lib/save-cwd.c, lib/save-cwd.h: New files.
These last three are specific to Emacs and are not copied from gnulib.
They are simpler than the gnulib versions and are tuned for Emacs.
* admin/merge-gnulib (GNULIB_MODULES): Add fdopendir, fstatat, readlinkat.
(GNULIB_TOOL_FLAGS): Do not avoid at-internal, openat-h.
Avoid dup, open, opendir.
* nt/inc/sys/stat.h (fstatat):
* nt/inc/unistd.h (readlinkat): New decls.
* src/conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): Remove.
* src/dired.c: Include <fcntl.h>.
(open_directory): New function, which uses open and fdopendir
rather than opendir.  DOS_NT platforms still use opendir, though.
(directory_files_internal, file_name_completion): Use it.
(file_attributes): New function, with most of the old Ffile_attributes.
(directory_files_internal, Ffile_attributes): Use it.
(file_attributes, file_name_completion_stat): First arg is now fd,
not dir name.  All uses changed.  Use fstatat rather than lstat +
stat.
(file_attributes): Use emacs_readlinkat rather than Ffile_symlink_p.
* src/fileio.c: Include <allocator.h>, <careadlinkat.h>.
(emacs_readlinkat): New function, with much of the old
Ffile_symlink_p, but with an fd argument for speed.
It uses readlinkat rather than careadlinkatcwd, so that it
need not assume the working directory.
(Ffile_symlink_p): Use it.
* src/filelock.c (current_lock_owner): Use emacs_readlinkat
rather than emacs_readlink.
* src/lisp.h (emacs_readlinkat): New decl.
(READLINK_BUFSIZE, emacs_readlink): Remove.
* src/sysdep.c: Do not include <allocator.h>, <careadlinkat.h>.
(emacs_norealloc_allocator, emacs_readlink): Remove.
This stuff is moved to fileio.c.
* src/w32.c (fstatat, readlinkat): New functions.
(careadlinkat): Don't check that fd == AT_FDCWD.
(careadlinkatcwd): Remove; no longer needed.

Fixes: debbugs:13539
11 years agoRemove info duplicated from manual; convert to outline mode format.
Glenn Morris [Fri, 1 Feb 2013 04:04:23 +0000 (20:04 -0800)]
Remove info duplicated from manual; convert to outline mode format.

11 years agoMove lisp/calc/README* to etc/CALC-NEWS
Glenn Morris [Fri, 1 Feb 2013 03:58:50 +0000 (19:58 -0800)]
Move lisp/calc/README* to etc/CALC-NEWS

* make-dist: Only README files exist in lisp/ now, not README*.

* doc/misc/calc.texi (Help Commands): Mention etc/CALC-NEWS.

* etc/CALC-NEWS: Move here from lisp/calc/README, README.prev.

* lisp/calc/README, lisp/calc/README.prev: Rename/merge to etc/CALC-NEWS.

11 years agoMerge calc news from lisp/calc/README into etc/NEWS files
Glenn Morris [Fri, 1 Feb 2013 03:51:08 +0000 (19:51 -0800)]
Merge calc news from lisp/calc/README into etc/NEWS files

* doc/misc/calc.texi (Help Commands): Update calc-view-news description.

* lisp/calc/calc-help.el (calc-view-news): Use view-emacs-news.

* lisp/calc/README: Move news entries from here...
* etc/NEWS, etc/NEWS.23: ... to here

11 years agoauto upstream
Joakim Verona [Thu, 31 Jan 2013 23:03:38 +0000 (00:03 +0100)]
auto upstream

11 years agofix last patch
Sam Steingold [Thu, 31 Jan 2013 22:37:54 +0000 (17:37 -0500)]
fix last patch

11 years agoSync CEDET and EIEIO version numbers with upstream.
David Engster [Thu, 31 Jan 2013 19:58:56 +0000 (20:58 +0100)]
Sync CEDET and EIEIO version numbers with upstream.

11 years agoChangeLog for previous fileio.c change
Glenn Morris [Thu, 31 Jan 2013 17:07:57 +0000 (09:07 -0800)]
ChangeLog for previous fileio.c change

11 years ago* lisp/textmodes/remember.el (remember-clipboard): Doc fix.
Glenn Morris [Thu, 31 Jan 2013 17:03:53 +0000 (09:03 -0800)]
* lisp/textmodes/remember.el (remember-clipboard): Doc fix.

11 years agoSimplify part of previous Fwrite_region change
Glenn Morris [Thu, 31 Jan 2013 16:53:37 +0000 (08:53 -0800)]
Simplify part of previous Fwrite_region change

11 years ago* net/tramp.el (tramp-tramp-file-p): Comment check for
Michael Albinus [Thu, 31 Jan 2013 08:33:03 +0000 (09:33 +0100)]
* net/tramp.el (tramp-tramp-file-p): Comment check for
`string-as-unibyte'.  The function does not exist on XEmacs, and
likely we need another approach.

* net/tramp-sh.el (tramp-compute-multi-hops): Check, whether
`tramp-gw-*' variables are bound.