Stefan Monnier [Thu, 31 Jan 2013 01:58:24 +0000 (20:58 -0500)]
* lisp/progmodes/opascal.el: Rename from delphi.el. Use lexical-binding.
(opascal-newline-always-indents): Remove custom.
(opascal-tab, opascal-newline): Remove commands.
(opascal-new-comment-line): Insert "\n" instead of calling newline.
(opascal-mode-map): Keep default bindings for RET and TAB and DEL.
(opascal-save-match-data): Remove, use save-match-data instead.
(opascal-save-state): Use with-silent-modifications.
Stefan Monnier [Thu, 31 Jan 2013 00:58:24 +0000 (19:58 -0500)]
* lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments.
Fixes: debbugs:13585
Juri Linkov [Wed, 30 Jan 2013 23:50:11 +0000 (01:50 +0200)]
* lisp/frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
Use fullboth as an alias for fullscreen. Suggested by Jan Djärv in
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00203.html>.
Christopher Schmidt [Wed, 30 Jan 2013 22:45:32 +0000 (22:45 +0000)]
lisp/gnus/gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace
Stefan Monnier [Wed, 30 Jan 2013 20:46:10 +0000 (15:46 -0500)]
* lisp/progmodes/make-mode.el (makefile-backslash-region): Don't compute
column if we're just deleting the backslashes.
(makefile-fill-paragraph): Use eolp.
Michael Albinus [Wed, 30 Jan 2013 19:20:46 +0000 (20:20 +0100)]
* autorevert.el (auto-revert-use-notify): Fix docstring.
Leo Liu [Wed, 30 Jan 2013 17:57:54 +0000 (01:57 +0800)]
* lisp/imenu.el (imenu--truncate-items): Fix subalist checking.
Fixes: debbugs:13576
Glenn Morris [Wed, 30 Jan 2013 17:16:30 +0000 (09:16 -0800)]
Merge from emacs-24; up to 2012-12-13T00:52:17Z!yamaoka@jpl.org
Glenn Morris [Wed, 30 Jan 2013 17:14:24 +0000 (09:14 -0800)]
mouse-drag-line changes for mouse-1 in header-line
* lisp/mouse.el (mouse-drag-line): Avoid pushing same event onto
unread-command-events twice in some cases. This tries to implement
the 2012-07-26 changes in a different way.
Fixes: debbugs:13560
Stefan Monnier [Wed, 30 Jan 2013 17:03:44 +0000 (12:03 -0500)]
* lisp/jit-lock.el (jit-lock-stealth-chunk-start): Don't widen.
(jit-lock-mode, jit-lock-functions, jit-lock-context-unfontify-pos):
Use defvar-local.
(jit-lock-register): Use setq-local.
Fixes: debbugs:13542
Fabián Ezequiel Gallina [Wed, 30 Jan 2013 15:02:58 +0000 (12:02 -0300)]
* progmodes/python.el
(python-pdbtrack-comint-output-filter-function): Enhancements on
stacktrace detection. (thanks @gnovak)
Jay Belanger [Wed, 30 Jan 2013 14:14:27 +0000 (08:14 -0600)]
calc-units.el (math-default-units-table): Remove initial value.
(calc-convert-units): Treat expressions where all the units cancel as
if they didn't have units.
Christopher Schmidt [Wed, 30 Jan 2013 10:43:40 +0000 (10:43 +0000)]
lisp/gnus/mml.el (mml-insert-part): Insert closing tag
Christopher Schmidt [Wed, 30 Jan 2013 09:44:46 +0000 (09:44 +0000)]
lisp/gnus/mm-decode.el (mm-save-part): Handle invalid read-file-name results
Michael Albinus [Wed, 30 Jan 2013 09:16:16 +0000 (10:16 +0100)]
* net/tramp.el (tramp-process-connection-type): Fix docstring.
(tramp-completion-reread-directory-timeout): Fix type.
(tramp-connection-min-time-diff): New defcustom.
* net/tramp-sh.el (tramp-maybe-open-connection): Use it.
Glenn Morris [Wed, 30 Jan 2013 08:07:37 +0000 (00:07 -0800)]
Merge from emacs-24; up to 2012-12-12T22:29:54Z!yamaoka@jpl.org
Glenn Morris [Wed, 30 Jan 2013 07:47:11 +0000 (23:47 -0800)]
ChangeLog date fix
Glenn Morris [Wed, 30 Jan 2013 07:46:28 +0000 (23:46 -0800)]
* imenu.el (imenu-default-create-index-function):
Put back a version of the infinite loop test removed 2013-01-23.
Michael Albinus [Wed, 30 Jan 2013 07:37:12 +0000 (08:37 +0100)]
Revert changes, which were committed with 2013-01-29T16:03:40Z!michael.albinus@gmx.de by accident.
Alan Mackenzie [Tue, 29 Jan 2013 20:51:07 +0000 (20:51 +0000)]
Amend to fontify /regexp/s in actions correctly.
cc-awk.el (c-awk-harmless-char-re, c-awk-harmless-string*-re):
(c-awk-harmless-string*-here-re): braces, parens and semicolons are no
longer included.
(c-awk-harmless-line-char-re, c-awk-harmless-line-string*-re): What used
to be these variables without "-line" in the name.
(c-awk-neutral-re): { is no longer neutral. Escaped newlines now are.
(c-awk-non-arith-op-bra-re): Now also matches {.
(c-awk-pre-exp-alphanum-kwd-re): New regexp to match "print", "return",
and "case".
(c-awk-kwd-regexp-sign-re): New, to match "print", etc., followed by /.
(c-awk-syntax-tablify-/): Check special cases "print /re/", etc.
(c-awk-set-syntax-table-properties): Extend FSM to handle {,},(,),;.
Michael Albinus [Tue, 29 Jan 2013 16:03:40 +0000 (17:03 +0100)]
* autorevert.el (auto-revert-use-notify): Use
`custom-initialize-default' for initialization. (Bug#13583)
Michael Albinus [Tue, 29 Jan 2013 14:52:20 +0000 (15:52 +0100)]
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Fix previous patch.
(tramp-gw-tunnel-method, tramp-gw-socks-method): Declare for
compatibility.
(tramp-compute-multi-hops): Check, whether
`tramp-gw-tunnel-method' and `tramp-gw-socks-method' are non-nil.
Michael Albinus [Tue, 29 Jan 2013 08:12:11 +0000 (09:12 +0100)]
* net/ange-ftp.el (ange-ftp-skip-msgs): Add another message.
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Catch
`suppress'. Otherwise, `tramp-run-real-handler' might be called
in `tramp-file-name-handler'.
Fabián Ezequiel Gallina [Mon, 28 Jan 2013 21:59:42 +0000 (18:59 -0300)]
* progmodes/python.el (python-shell-parse-command): Find
python-shell-interpreter with modified environment.
Stefan Monnier [Mon, 28 Jan 2013 20:00:35 +0000 (15:00 -0500)]
* lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol.
Fixes: debbugs:13297
Eli Zaretskii [Mon, 28 Jan 2013 14:41:08 +0000 (16:41 +0200)]
Make opendir on MS-Windows accept a 'const char *'.
src/w32.c (opendir): Now accepts a 'const char *'.
nt/inc/dirent.h (opendir): Update prototype.
Dmitry Antipov [Mon, 28 Jan 2013 05:47:51 +0000 (09:47 +0400)]
Remove obsolete redisplay code. See the discussion at
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00576.html.
* dispnew.c (preemption_period, preemption_next_check): Remove.
(Vredisplay_preemption_period): Likewise.
(update_frame, update_single_window, update_window, update_frame_1):
Adjust users. Always assume that PERIODIC_PREEMPTION_CHECKING is not
used, following the 2012-06-22 change.
Dmitry Gutov [Mon, 28 Jan 2013 02:07:42 +0000 (06:07 +0400)]
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too. \_< broke that.
Dmitry Gutov [Mon, 28 Jan 2013 01:20:42 +0000 (05:20 +0400)]
* progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
temporarily) broken indentation.
* automated/ruby-mode-tests.el (ruby-block-test-example):
Break indentation of the do block opener and add a line inside it.
* automated/ruby-mode-tests.el (works-on-do, ok-with-three):
Adjust line numbers.
Glenn Morris [Mon, 28 Jan 2013 00:34:22 +0000 (16:34 -0800)]
Sync Version: headers with -version variables
Dmitry Gutov [Sun, 27 Jan 2013 22:47:34 +0000 (02:47 +0400)]
* automated/ruby-mode-tests.el
(ruby-indent-spread-args-in-parens): New test.
Dmitry Gutov [Sun, 27 Jan 2013 22:32:11 +0000 (02:32 +0400)]
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Use "\\_<" instead
of "\\b". Remove some checks made superfluous as a result.
Michael Albinus [Sun, 27 Jan 2013 10:43:33 +0000 (11:43 +0100)]
* autorevert.el (auto-revert-handler): Notifications which result
from a saved file shall not be taken into account. (Bug#13557)
Eli Zaretskii [Sun, 27 Jan 2013 08:04:16 +0000 (10:04 +0200)]
Tentative fix for bug #13546 with failure to save files on Windows.
src/w32.c (sys_open): Zero out the flags for the new file descriptor.
(sys_close): Zero out the flags for the file descriptor before
closing it.
Stefan Monnier [Sun, 27 Jan 2013 00:17:11 +0000 (19:17 -0500)]
* lisp/emacs-lisp/cl.el (cl-set-getf): Add compatibility alias.
Andreas Schwab [Sat, 26 Jan 2013 15:13:09 +0000 (16:13 +0100)]
Fixes: debbugs:13556
* emacs-lisp/lisp-mode.el (lisp-mode-variables): Add optional
parameter BAR-NOT-SYMBOL to control syntax of | for font-lock.
(lisp-mode): Pass t for it.
Eli Zaretskii [Sat, 26 Jan 2013 12:49:34 +0000 (14:49 +0200)]
Fix bug #13553 with usage of IS_DIRECTORY_SEP on MS-Windows under DBCS.
src/w32.c (parse_root, get_volume_info, readdir, read_unc_volume)
(logon_network_drive, stat_worker, symlink, chase_symlinks): Use
CharNextExA and CharPrevExA to iterate over file names encoded in
DBCS.
Alan Mackenzie [Fri, 25 Jan 2013 18:18:14 +0000 (18:18 +0000)]
AWK Mode: Fix indentation bug at top level. Bug #12274.
progmodes/cc-engine.el (c-guess-basic-syntax): Move CASE 5P to just
before CASE 5D.
Dmitry Antipov [Fri, 25 Jan 2013 17:13:31 +0000 (21:13 +0400)]
* insdel.c (insert_1): Remove.
* lisp.h (insert_1): Remove prototype.
* xdisp.c (message_dolog): Adjust users to call insert_1_both.
Dmitry Antipov [Fri, 25 Jan 2013 15:48:35 +0000 (19:48 +0400)]
* net/socks.el (socks-nslookup-host): Use string-to-number.
Eli Zaretskii [Fri, 25 Jan 2013 14:47:37 +0000 (16:47 +0200)]
Use file-name-coding-system when decoding symlinks on MS-Windows.
src/w32.c (readlink): Use the current file-name-coding-system, not the ANSI
codepage, to decode and handle targets of symlinks.
Eli Zaretskii [Fri, 25 Jan 2013 14:38:21 +0000 (16:38 +0200)]
Revert 2013-01-25T10:27:16Z!eliz@gnu.org.
Eli Zaretskii [Fri, 25 Jan 2013 14:34:26 +0000 (16:34 +0200)]
Support MS-Windows file names encoded in multibyte encodings.
src/w32.c (w32_get_long_filename, init_environment, readlink):
Support file names encoded in DBCS codepages.
Michael Albinus [Fri, 25 Jan 2013 13:15:22 +0000 (14:15 +0100)]
* autorevert.el (auto-revert-remote-files)
(auto-revert-notify-exclude-dir-regexp): New defcustoms.
(auto-revert-notify-enabled, auto-revert-use-notify)
(auto-revert-notify-watch-descriptor-hash-list)
(auto-revert-notify-modified-p, auto-revert-notify-event-p)
(auto-revert-notify-event-descriptor)
(auto-revert-notify-event-action)
(auto-revert-notify-event-file-name): Doc fix.
(global-auto-revert-mode): Reorder checks.
(auto-revert-notify-rm-watch): Respect changed values of
`auto-revert-notify-watch-descriptor-hash-list'.
(auto-revert-notify-add-watch): Check for
`auto-revert-notify-exclude-dir-regexp'. Adapt filters for
`inotify-add-watch'. Watch `default-directory' instead of
`buffer-file-name'. `auto-revert-notify-watch-descriptor-hash-list'
has a changed meaning now. (Bug#13540)
(auto-revert-notify-handler): Change implementation wrt events
returning from a directory.
(auto-revert-handler): Reorder implementation for checks of remote
files.
(auto-revert-buffers): Fix parentheses error.
Eli Zaretskii [Fri, 25 Jan 2013 10:27:16 +0000 (12:27 +0200)]
w32.c (readlink): Support DBCS codepages.
Eli Zaretskii [Fri, 25 Jan 2013 09:39:47 +0000 (11:39 +0200)]
Update doc string of w32notify-add-watch per discussions in bug #13540.
src/w32notify.c (Fw32notify_add_watch): Doc fix.
Dmitry Antipov [Fri, 25 Jan 2013 06:31:41 +0000 (10:31 +0400)]
* font.c (num_fonts): Remove the leftover from old
debugging code. Adjust comment style here and there.
Glenn Morris [Fri, 25 Jan 2013 04:41:39 +0000 (20:41 -0800)]
Merge from emacs-24; up to 2012-12-11T18:52:31Z!monnier@iro.umontreal.ca
Bastien Guerry [Thu, 24 Jan 2013 21:19:02 +0000 (22:19 +0100)]
* paren.el (show-paren-function): Make sure to set 'priority and
'face only if the overlay does exist.
Michael Albinus [Thu, 24 Jan 2013 09:50:02 +0000 (10:50 +0100)]
* net/tramp.el (tramp-tramp-file-p): Check, whether NAME is unibyte.
* net/tramp-sh.el (tramp-sh-handle-set-file-acl): Do not suppress
basic attributes.
(tramp-sh-handle-set-file-acl): Improve error checking.
Michael Albinus [Thu, 24 Jan 2013 09:43:32 +0000 (10:43 +0100)]
* tramp.texi (Filename Syntax): Filenames must be unibyte strings.
Dmitry Antipov [Thu, 24 Jan 2013 05:56:31 +0000 (09:56 +0400)]
* nsfont.m (ns_escape_name, ns_unescape_name, ns_registry_to_script):
Avoid redundant calls to strlen.
Dmitry Antipov [Thu, 24 Jan 2013 05:41:28 +0000 (09:41 +0400)]
Drop async_visible and async_iconified fields of struct frame.
This is possible because async input is gone; for details, see
http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00734.html.
* frame.h (struct frame): Remove async_visible and async_iconified
members, convert garbaged to unsigned bitfield. Adjust comments.
(FRAME_SAMPLE_VISIBILITY): Remove. Adjust all users.
(SET_FRAME_VISIBLE, SET_FRAME_ICONIFIED): New macros.
* frame.c, gtkutil.c, term.c, w32fns.c, window.c, xdisp.c:
Consistently use SET_FRAME_VISIBLE, SET_FRAME_ICONIFIED,
FRAME_VISIBLE_P and FRAME_ICONIFIED_P macros where appropriate.
* w32term.c: Ditto.
(w32_read_socket): Save iconified state to generate DEICONIFY_EVENT
properly. Likewise for obscured.
* xterm.c: Ditto.
(handle_one_xevent): Save visible state go generate ICONIFY_EVENT
properly.
* nsterm.m: Ditto.
(windowDidDeminiaturize): Generate DEICONIFY_EVENT.
Dmitry Antipov [Thu, 24 Jan 2013 03:34:20 +0000 (07:34 +0400)]
* src/insdel.c (prepare_to_modify_buffer): Revert last change as suggested
in http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00555.html.
* lisp/doc-view.el (doc-view-display): Force mode line update until
all document is converted. Suggested by Stefan Monnier (Bug#13164).
Fabián Ezequiel Gallina [Thu, 24 Jan 2013 01:24:09 +0000 (22:24 -0300)]
* lisp/progmodes/python.el: Enhancements to header documentation about
skeletons.
Fixes: debbugs:5716
Giorgos Keramidas [Wed, 23 Jan 2013 23:49:46 +0000 (15:49 -0800)]
* .bzrignore: add lib-src/blessmail.
Fabián Ezequiel Gallina [Wed, 23 Jan 2013 21:55:46 +0000 (18:55 -0300)]
* imenu.el (imenu-default-create-index-function): Remove useless
infinite loop check.
Fixes: debbugs:13438
Stefan Monnier [Wed, 23 Jan 2013 20:07:28 +0000 (15:07 -0500)]
* src/xdisp.c (message2, message2_nolog): Remove functions.
(message3, message3_nolog): Extract nbytes and multibyteness directly
from the string. Change all callers.
(message3_nolog): Don't set message_enable_multibyte since set_message
will reset it anyway.
(message1, message1_nolog): Use message3.
(vmessage): Use a stack allocated buffer rather than f->message_buf.
(with_echo_area_buffer): Remove last two arguments. Update all callers.
(set_message): Drop all but the second arg, which has to be a string.
(set_message_1): Simplify now that we know that a1 is NULL and the
second arg is a string.
* src/frame.h (struct frame): Remove `message_buf' field.
Use glyphs_initialized_p instead.
(FRAME_MESSAGE_BUF): Remove macro.
* src/w16select.c (Fw16_set_clipboard_data): Prefer message3 to message2.
* src/lisp.h (message2, message2_nolog): Remove declarations.
(message3, message3_nolog): Update declarations.
* src/keyboard.c (read_char_minibuf_menu_text)
(read_char_minibuf_menu_width): Remove vars.
(read_char_minibuf_menu_prompt): Rewrite the menu's construction so as
to correctly handle multibyte strings.
* src/frame.c (delete_frame): Don't free message_buf any more.
* src/editfns.c (message_text, message_length): Remove vars.
(Fmessage_box): Don't copy the Lisp string's bytes any longer.
* src/fileio.c (auto_save_error): Use message3 instead of message2.
* src/dispnew.c (adjust_frame_message_buffer): Remove function.
Alan Mackenzie [Wed, 23 Jan 2013 18:58:11 +0000 (18:58 +0000)]
Fix a bug in the state cache mechanism. Refactor this a bit.
cc-engine.el (c-parse-state-get-strategy): Remove the `cache-pos' element
from the return value.
(c-append-lower-brace-pair-to-state-cache): "Narrow" to end of buffer to
enable proper searching from beyond HERE.
Amend the test for detecting the sought brace pair. Amend the value
written to the "brace desert cache" when the brace isn't found.
(c-remove-stale-state-cache): Rename `good-pos' to `start-point', and
several other variables analogously.
(c-remove-stale-state-cache-backwards): Change `cache-pos' from a
parameter to a locally calculated variable.
(c-parse-state-1): Change the calling conventions to the two defuns
involving `cache-pos'.
Eli Zaretskii [Wed, 23 Jan 2013 16:52:05 +0000 (18:52 +0200)]
Fix dimensions of maximized frame on MS-Windows.
src/w32term.c (w32fullscreen_hook): Account correctly for the screen
real estate used for the tool bar, the menu bar, and scroll bar.
Eli Zaretskii [Wed, 23 Jan 2013 16:11:04 +0000 (18:11 +0200)]
Fix bug #13515 with processing DBCS file names on MS-Windows.
src/w32.c (max_filename_mbslen): New function.
(normalize_filename, readdir): Use it to detect locales where ANSI
encoding of file names uses a double-byte character set (DBCS).
If a DBCS encoding is used, advance by characters using
CharNextExA, instead of incrementing a 'char *' pointer. Use
_mbslwr instead of _strlwr.
Dmitry Antipov [Wed, 23 Jan 2013 14:49:54 +0000 (18:49 +0400)]
* insdel.c (prepare_to_modify_buffer): Force redisplay if
hidden buffer is prepared to modification (Bug#13164).
Bastien Guerry [Wed, 23 Jan 2013 09:43:29 +0000 (10:43 +0100)]
* paren.el (show-paren-function): Make sure an overlay exists
before trying to delete it. Also use `pos' as a position only
when it is an integer.
See this thread: http://thread.gmane.org/gmane.emacs.devel/156498
Dmitry Antipov [Wed, 23 Jan 2013 08:49:34 +0000 (12:49 +0400)]
* lisp/play/gametree.el (gametree-break-line-here): Use point-marker.
* lisp/mh-e/mh-acros.el (mh-do-at-event-location): Likewise.
* lisp/mh-e/mh-search.el (mh-index-create-imenu-index): Likewise.
* lisp/mh-e/mh-xface.el (mh-x-image-url-display): Likewise.
Chong Yidong [Wed, 23 Jan 2013 06:25:50 +0000 (14:25 +0800)]
* xml.el (xml-entity-or-char-ref-re): Fix regexp.
This bug was reported by Jae-oh Kim; it was posted to bug-gnu-emacs
but didn't show up in the bug tracker for some reason. It is a
regression against Emacs 24.2.
Paul Eggert [Wed, 23 Jan 2013 01:51:49 +0000 (17:51 -0800)]
Undo stray change committed by mistake.
Paul Eggert [Wed, 23 Jan 2013 01:47:44 +0000 (17:47 -0800)]
Merge from gnulib.
Eli Zaretskii [Tue, 22 Jan 2013 13:30:17 +0000 (15:30 +0200)]
Fix bug #13065 with file selector dialog on Windows 7.
src/w32heap.c (allocate_heap) [!_WIN64]: Decrease the initial
request of memory reservation to 1.7GB.
Dmitry Antipov [Tue, 22 Jan 2013 11:48:00 +0000 (15:48 +0400)]
* window.h (struct window): Change window_end_valid member from
Lisp_Object to a bitfield. Adjust comments.
(wset_window_end_valid): Remove.
* window.c (adjust_window_count): Clear window_end_valid.
(Fwindow_end): Adjust user. Remove ancient #if 0 code.
(Fwindow_line_height, set_window_buffer, Frecenter)
(Fsplit_window_internal, Fdelete_other_windows_internal)
(Fset_window_fringes, Fset_window_scroll_bars): Adjust users.
* dispnew.c (adjust_glyph_matrix, clear_window_matrices): Likewise.
* xdisp.c (check_window_end, reconsider_clip_changes)
(redisplay_internal, mark_window_display_accurate_1, redisplay_window)
(try_window, try_window_reusing_current_matrix, note_mouse_highlight)
(find_first_unchanged_at_end_row, try_window_id): Likewise.
Dmitry Antipov [Tue, 22 Jan 2013 11:41:21 +0000 (15:41 +0400)]
* xdisp.c (mark_window_display_accurate): Simplify the loop
assuming that the only one of vchild, hchild or buffer window
slots is non-nil. Call mark_window_display_accurate_1 for
the leaf windows only.
(mark_window_display_accurate_1): Always assume leaf window.
Adjust comment.
Michael Albinus [Tue, 22 Jan 2013 08:49:03 +0000 (09:49 +0100)]
* tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): Mark
descriptive parts with `display' property.
Paul Eggert [Tue, 22 Jan 2013 07:48:59 +0000 (23:48 -0800)]
* emacs.c (Qkill_emacs_hook): Now static.
Paul Eggert [Tue, 22 Jan 2013 06:10:20 +0000 (22:10 -0800)]
* fileio.c (Finsert_file_contents): Simplify.
Remove unnecessary assignments and tests.
Lars Magne Ingebrigtsen [Mon, 21 Jan 2013 22:07:34 +0000 (22:07 +0000)]
gnus-sum.el (gnus-summary-read-group-1): Debbugs group entry fixups
Eli Zaretskii [Mon, 21 Jan 2013 18:00:19 +0000 (20:00 +0200)]
Another minor fix in acl_set_file on Windows.
src/w32.c (acl_set_file): Don't test for errors unless
set_file_security returns FALSE. Avoids spurious errors when
saving files.
Dmitry Antipov [Mon, 21 Jan 2013 17:01:09 +0000 (21:01 +0400)]
* fileio.c (Finsert_file_contents): Revert code introduced at
2013-01-18 in favor of the simpler and generally better fix.
Save stack space by removing 'buffer' and reusing 'read_buf'
where appropriate.
Agustín Martín [Mon, 21 Jan 2013 16:05:30 +0000 (17:05 +0100)]
ispell.el: Make sure hunspell specific dict names are used for standard dicts when using hunspell.
(ispell-hunspell-dictionary-equivs-alist):
New variable to map standard dict names to hunspell ones.
(ispell-set-spellchecker-params):
Make sure specific dict names are used for standard dicts with hunspell.
If a mapping is missing, skip that dictionary.
Fixes: debbugs:13460
Tassilo Horn [Mon, 21 Jan 2013 12:14:56 +0000 (13:14 +0100)]
* textmodes/reftex-cite.el (reftex-format-citation): Add format
chars for note (%N) and url (%U).
* textmodes/reftex-vars.el (reftex-cite-format): Document them.
Juri Linkov [Mon, 21 Jan 2013 10:45:20 +0000 (12:45 +0200)]
* lisp/frame.el: Bind `f10' in `esc-map' to `toggle-frame-maximized'
in addition to existing separate binding `meta f10' in `global-map'.
Fixes: debbugs:13484
Michael Albinus [Mon, 21 Jan 2013 09:49:43 +0000 (10:49 +0100)]
Improve XEmacs compatibility.
* net/tramp.el (tramp-replace-environment-variables): Make it a defun.
* net/tramp-adb.el (top): Require `time-date'.
(tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'.
(tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use
`tramp-file-name-handler'.
(tramp-adb-maybe-open-connection): Use
`tramp-compat-set-process-query-on-exit-flag'.
* net/tramp-sh.el (tramp-sh-handle-file-acl): Use
`tramp-compat-funcall'.
* net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and
`tramp-compat-funcall'.
Jürgen Hötzel [Mon, 21 Jan 2013 09:40:51 +0000 (10:40 +0100)]
* net/tramp-adb.el (tramp-adb-handle-start-file-process): Complete
reimplementation using "adb shell command ..." instead of running
remote shell interactively.
Andreas Schwab [Sun, 20 Jan 2013 22:59:47 +0000 (23:59 +0100)]
Fixes: debbugs:13505
* src/coding.c (detect_coding_iso_2022): Move back mis-reordered code
at check_extra_latin label.
Eli Zaretskii [Sun, 20 Jan 2013 18:06:54 +0000 (20:06 +0200)]
Mention in NEWS that scroll-bar-adjust-thumb-portion is for X only. Bug#13503.
Paul Eggert [Sun, 20 Jan 2013 17:45:53 +0000 (09:45 -0800)]
* src/doprnt.c: Fix comment.
Glenn Morris [Sun, 20 Jan 2013 02:40:49 +0000 (18:40 -0800)]
* lisp-mode.el (emacs-lisp-mode-map): Add native profiler menu entries.
Glenn Morris [Sun, 20 Jan 2013 02:39:59 +0000 (18:39 -0800)]
profiler.el tweaks
* profiler.el (profiler-running-p): New function.
(profiler-cpu-profile): Use profiler-running-p.
(profiler-report-mode-map): Add some more menu entries.
Glenn Morris [Sat, 19 Jan 2013 23:59:48 +0000 (15:59 -0800)]
Comment
Paul Eggert [Sat, 19 Jan 2013 22:48:47 +0000 (14:48 -0800)]
Improve addr2line suggestion.
Fixes: debbugs:13445
Paul Eggert [Sat, 19 Jan 2013 22:33:29 +0000 (14:33 -0800)]
* lisp.h (eabs): Define unconditionally.
The old "#if !defined (eabs)" was an unnecessary revenant of back
when this macro was called "abs". Document 'eabs' better.
Fixes: debbugs:13419
Paul Eggert [Sat, 19 Jan 2013 22:15:03 +0000 (14:15 -0800)]
Fix typo: addrline -> binutils.
Paul Eggert [Sat, 19 Jan 2013 22:12:27 +0000 (14:12 -0800)]
* trouble.texi (Crashing): Suggest -p for recent addrline.
Without it, I don't see function names. Older addrlines will die
out sooner or later, so tailor the suggestion to recent addrline
and put in a comment about older ones.
Fixes: debbugs:13445
Glenn Morris [Sat, 19 Jan 2013 20:58:00 +0000 (12:58 -0800)]
Tweak previous change
Glenn Morris [Sat, 19 Jan 2013 20:54:56 +0000 (12:54 -0800)]
* lisp/mail/unrmail.el (unrmail): Do not mangle the mbox From line
fixes 2012-12-07 change.
Fixes: debbugs:13499
Glenn Morris [Sat, 19 Jan 2013 20:38:13 +0000 (12:38 -0800)]
Merge from emacs-24; up to 2012-12-11T09:51:12Z!dmantipov@yandex.ru
Eli Zaretskii [Sat, 19 Jan 2013 20:04:33 +0000 (22:04 +0200)]
Fix crashes with lots of overlays.
src/editfns.c (get_pos_property): Use SAFE_ALLOCA_LISP, to avoid
segfault when there are lots of overlays.
src/buffer.c (sort_overlays): Use SAFE_NALLOCA, to avoid segfault
when there are lots of overlays. See
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00421.html
for the details and a way to reproduce.
Paul Eggert [Sat, 19 Jan 2013 18:58:40 +0000 (10:58 -0800)]
* fileio.c: Use O_APPEND to append.
This corresponds better to the natural interpretation of "append",
and avoids the need to open the output file twice, or to invoke
lseek when APPEND is neither nil nor a number.
This relies on POSIX 1003.1-1988 or later, which is OK nowadays.
(Fwrite_region): Simplify. Use O_APPEND instead of opening the
file possibly twice, and lseeking to its end; this avoids the
need to lseek on non-regular files. Do not use O_EXCL and O_TRUNC
at the same time: the combination is never needed and apparently
it doesn't work with DOS_NT.
Christian Wittern [Sat, 19 Jan 2013 15:22:38 +0000 (23:22 +0800)]
* image-mode.el (image-next-file, image-previous-file): New commands.
(image-mode-map): Bind them to n and p.
(image-mode--images-in-directory): New helper function.
Fixes: debbugs:8453
Paul Eggert [Sat, 19 Jan 2013 12:29:10 +0000 (04:29 -0800)]
Fix size bug on DOS_NT introduced by CIFS workaround.
* fileio.c (Fwrite_region): Use O_BINARY in checking code, too.
Fixes: debbugs:13149
Paul Eggert [Sat, 19 Jan 2013 12:17:20 +0000 (04:17 -0800)]
* fileio.c (Fwrite_region): Sync diagnostic to previous change.
Chong Yidong [Sat, 19 Jan 2013 10:34:07 +0000 (18:34 +0800)]
* image-mode.el (image-mode-fit-frame): Add a frame argument.
Suggested by Drew Adams. Handle window decorations;
save and restore the old window configuration.
Fixes: debbugs:7730