bpt/emacs.git
10 years agoBump version to 24.3.90; regenerate AUTHORS
Glenn Morris [Fri, 11 Apr 2014 05:53:02 +0000 (22:53 -0700)]
Bump version to 24.3.90; regenerate AUTHORS

10 years ago* src/keyboard.c (Fopen_dribble_file): Make file private.
Glenn Morris [Fri, 11 Apr 2014 05:47:32 +0000 (22:47 -0700)]
* src/keyboard.c (Fopen_dribble_file): Make file private.

Fixes: debbugs:17187

10 years agoChangeLog fixes
Glenn Morris [Fri, 11 Apr 2014 00:55:58 +0000 (20:55 -0400)]
ChangeLog fixes

10 years agoEdiff's overlay priorities cause more trouble than they solve.
Stefan Monnier [Thu, 10 Apr 2014 19:15:01 +0000 (15:15 -0400)]
Ediff's overlay priorities cause more trouble than they solve.
* lisp/vc/ediff-init.el (ediff-shadow-overlay-priority): Remove variable.
(ediff-highest-priority): Remove function.
* lisp/vc/ediff-util.el (ediff-highlight-diff-in-one-buffer):
* lisp/vc/ediff-diff.el (ediff-set-diff-overlays-in-one-buffer)
(ediff-set-fine-diff-properties-in-one-buffer): Don't mess with
overlay priorities.

Fixes: debbugs:17234

10 years agoSpelling fixes.
Paul Eggert [Thu, 10 Apr 2014 19:12:34 +0000 (12:12 -0700)]
Spelling fixes.

* automated/electric-tests.el: Fix spelling error in test name.
(whitespace-skipping-for-quotes-not-outside):
Rename from whitespace-skipping-for-quotes-not-ouside.

10 years ago* lisp/progmodes/pascal.el (pascal-font-lock-keywords): Fix incorrect format
Feng Li [Thu, 10 Apr 2014 13:56:28 +0000 (09:56 -0400)]
* lisp/progmodes/pascal.el (pascal-font-lock-keywords): Fix incorrect format
entry; use symbol boundaries to avoid mis-matches.

10 years ago* net/tramp.el (tramp-file-name-handler)
Michael Albinus [Thu, 10 Apr 2014 07:17:40 +0000 (09:17 +0200)]
* net/tramp.el (tramp-file-name-handler)
(tramp-completion-file-name-handler): Avoid recursive loading.

* net/tramp-sh.el (tramp-make-copy-program-file-name):
Quote result also locally.

10 years agoRevert most of the recent change involving manifests on Cygwin. (Bug#17176)
Ken Brown [Wed, 9 Apr 2014 21:16:37 +0000 (17:16 -0400)]
Revert most of the recent change involving manifests on Cygwin.  (Bug#17176)

* configure.ac (EMACS_MANIFEST): Revert last change (but leave
UPDATE_MANIFEST empty).
* nt/emacs.rc: Revert last change.
* src/Makefile.in (EMACS_MANIFEST): Revert last change.

10 years agoFix python-triple-quote-pairing test
Glenn Morris [Wed, 9 Apr 2014 01:50:29 +0000 (21:50 -0400)]
Fix python-triple-quote-pairing test

* test/automated/python-tests.el (python-triple-quote-pairing):
Enable/disable electric-pair-mode as needed.

10 years ago* electric-tests.el (electric-pair-backspace-1): Replace deleted function.
Glenn Morris [Wed, 9 Apr 2014 01:34:16 +0000 (21:34 -0400)]
* electric-tests.el (electric-pair-backspace-1): Replace deleted function.

10 years agoHighlight more Module methods
Dmitry Gutov [Wed, 9 Apr 2014 00:14:37 +0000 (04:14 +0400)]
Highlight more Module methods

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
Module methods.

Fixes: debbugs:17216

10 years ago* lisp/help.el (describe-bindings): Fix buffer handling.
Stefan Monnier [Tue, 8 Apr 2014 19:48:38 +0000 (15:48 -0400)]
* lisp/help.el (describe-bindings): Fix buffer handling.
(describe-bindings-internal): Mark obsolete.

Fixes: debbugs:17210

10 years agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Mon, 7 Apr 2014 21:15:45 +0000 (17:15 -0400)]
ChangeLog fix (no need to merge to trunk)

10 years ago* src/alloc.c: Keep track of symbols referenced from pure space (bug#17168).
Stefan Monnier [Mon, 7 Apr 2014 16:08:46 +0000 (12:08 -0400)]
* src/alloc.c: Keep track of symbols referenced from pure space (bug#17168).
(symbol_block_pinned): New var.
(Fmake_symbol): Initialize `pinned'.
(purecopy): New function, extracted from Fpurecopy.  Mark symbols as
pinned and signal an error for un-purifiable objects.
(pure_cons): Use it.
(Fpurecopy): Use it, except for objects that can't be purified.
(mark_pinned_symbols): New function.
(Fgarbage_collect): Use it.
(gc_sweep): Remove hack made unnecessary.
* src/lisp.h (struct Lisp_Symbol): New bitfield `pinned'.

10 years agoImprove on previous quote autopairing change
João Távora [Mon, 7 Apr 2014 07:29:50 +0000 (08:29 +0100)]
Improve on previous quote autopairing change

Backported from trunk 2014-04-04T23:31:02Z!joaotavora@gmail.com

* lisp/elec-pair.el:
(electric-pair--syntax-ppss): When inside comments parse from
comment beginning.
(electric-pair--balance-info): Fix typo in comment.
(electric-pair--in-unterminated-string-p): Delete.
(electric-pair--unbalanced-strings-p): New function.
(electric-pair-string-bound-function): New var.
(electric-pair-inhibit-if-helps-balance): Decide quote pairing
according to `electric-pair--in-unterminated-string-p'

* test/automated/electric-tests.el (define-electric-pair-test): Don't
overtest..
(inhibit-in-mismatched-string-inside-ruby-comments): New test.
(inhibit-in-mismatched-string-inside-c-comments): New test.

10 years agoInhibit quote autopairing more frequently
João Távora [Mon, 7 Apr 2014 07:24:03 +0000 (08:24 +0100)]
Inhibit quote autopairing more frequently

Backported from trunk 2014-04-02T09:59:06Z!joaotavora@gmail.com

* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
quote pairing if point-max is inside an unterminated string.
(electric-pair--looking-at-unterminated-string-p):
Delete.
(electric-pair--in-unterminated-string-p): New function.

* test/automated/electric-tests.el (inhibit-if-strings-mismatched):
New test, change from `inhibit-only-of-next-is-mismatched'.

10 years ago* lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.
Glenn Morris [Mon, 7 Apr 2014 01:27:32 +0000 (18:27 -0700)]
* lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.

Fixes: debbugs:17159

10 years agoChangeLog fix
Glenn Morris [Mon, 7 Apr 2014 00:04:00 +0000 (17:04 -0700)]
ChangeLog fix

10 years agoFix electric-pair-delete-adjacent-pairs in modes binding backspace.
João Távora [Sun, 6 Apr 2014 23:37:17 +0000 (00:37 +0100)]
Fix electric-pair-delete-adjacent-pairs in modes binding backspace.

* lisp/elec-pair.el (electric-pair-backward-delete-char): Delete.
(electric-pair-backward-delete-char-untabify): Delete.
(electric-pair-mode-map): Bind backspace to a menu item filtering
a new `electric-pair-delete-pair' command.
(electric-pair-delete-pair): New command.

Fixes: debbugs:16981

10 years agoFix triple-quoting electricity in python-mode
João Távora [Sun, 6 Apr 2014 23:23:45 +0000 (00:23 +0100)]
Fix triple-quoting electricity in python-mode

* lisp/progmodes/python.el (python-electric-pair-string-delimiter): Fix
triple-quoting electricity.

* test/automated/python-tests.el (python-triple-quote-pairing): New test.
(python-syntax-after-python-backspace): New test.

Fixes: debbugs:17192

10 years agoFix electric-pair-skip-whitespace with quotes in text-mode
João Távora [Sun, 6 Apr 2014 23:09:19 +0000 (00:09 +0100)]
Fix electric-pair-skip-whitespace with quotes in text-mode

* lisp/elec-pair.el (electric-pair-post-self-insert-function): Don't
skip whitespace for quote syntax when `electric-pair-text-pairs'
and `electric-pair-pairs' were used.

* test/automated/electric-tests.el (electric-pair-define-test-form):
More readable test docstrings.
(whitespace-skipping-for-quotes-not-ouside)
(whitespace-skipping-for-quotes-only-inside)
(whitespace-skipping-not-without-proper-syntax):

Fixes: debbugs:17183

10 years agosrc/bidi.c: Describe the design of reordering engine in the commentary.
Eli Zaretskii [Sun, 6 Apr 2014 15:56:01 +0000 (18:56 +0300)]
src/bidi.c: Describe the design of reordering engine in the commentary.

10 years agoFix bug #17199 with incorrect character produced by ipa-x-sampa IM.
Eli Zaretskii [Sun, 6 Apr 2014 15:21:35 +0000 (18:21 +0300)]
Fix bug #17199 with incorrect character produced by ipa-x-sampa IM.

 lisp/leim/quail/ipa.el (ipa-x-sampa): Fix the character produced for "<F>".

10 years ago* lisp/mpc.el (mpc--status-timer-run): Disable timer if not displayed.
Stefan Monnier [Sun, 6 Apr 2014 13:08:00 +0000 (09:08 -0400)]
* lisp/mpc.el (mpc--status-timer-run): Disable timer if not displayed.
(mpc--status-idle-timer-run): Use mpc--status-timer-run.

10 years agoMinor doc updates related to dribble files
Glenn Morris [Sat, 5 Apr 2014 18:33:55 +0000 (11:33 -0700)]
Minor doc updates related to dribble files

* doc/emacs/trouble.texi (Checklist):
* doc/lispref/os.texi (Recording Input): Dribble files may contain passwords.

* lisp/help.el (view-lossage): Doc tweak.

* src/keyboard.c (Fopen_dribble_file): Doc tweak.

10 years agoFix bug #16434 with handling the -rv command-line option.
Matthias Dahl [Sat, 5 Apr 2014 07:44:56 +0000 (10:44 +0300)]
Fix bug #16434 with handling the -rv command-line option.

 lisp/faces.el (make-face-x-resource-internal): Do nothing when
 inhibit-x-resources is non-nil.  Don't touch the default face if
 reversed video is given--as was done in previous versions of Emacs.
 (face-set-after-frame-default): Don't call
 make-face-x-resource-internal here.

10 years agoFix bug #16378 with mishandling of empty faces.
Matthias Dahl [Sat, 5 Apr 2014 07:25:52 +0000 (10:25 +0300)]
Fix bug #16378 with mishandling of empty faces.

 lisp/faces.el (face-spec-choose): Accept additional optional argument,
 whose value is returned if no matching attributes are found.
 (face-spec-recalc): Use the new optional argument when calling
 face-spec-choose.

10 years agoFix bug #16694 with theme face precedence.
Matthias Dahl [Sat, 5 Apr 2014 07:15:11 +0000 (10:15 +0300)]
Fix bug #16694 with theme face precedence.

 lisp/faces.el (face-spec-recalc): Call make-face-x-resource-internal
 only when inhibit-x-resources is nil, and do that earlier in the
 function.  Doc fix.

10 years agoFix bug#16090.
Tassilo Horn [Fri, 4 Apr 2014 17:42:55 +0000 (19:42 +0200)]
Fix bug#16090.

* lisp/doc-view.el (doc-view-bookmark-jump): Use
`bookmark-after-jump-hook' to jump to the right page after the
buffer is shown in a window.

10 years agosrc/buffer.h, src/frame.h: Clarify doc of optimization variables.
Stefan Monnier [Fri, 4 Apr 2014 16:59:50 +0000 (12:59 -0400)]
src/buffer.h, src/frame.h: Clarify doc of optimization variables.

10 years agoBackport from trunk.
Jan Djärv [Fri, 4 Apr 2014 16:32:24 +0000 (18:32 +0200)]
Backport from trunk.
       * nsmenu.m (update_frame_tool_bar): Return early if view or toolbar
is nil.  If waiting for toolbar to complete, force a redraw.
(free_frame_tool_bar): Set wait_for_tool_bar = NO

       * nsterm.h (EmacsView): Add wait_for_tool_bar.

* nsterm.m (updateFrameSize:): If waiting for the tool bar and tool
       bar is zero height, just return (Bug#16976).
       (initFrameFromEmacs:): Initialize wait_for_tool_bar.

10 years agosrc/keyboard.c: Fix a typo in a comment to read_char.
Eli Zaretskii [Fri, 4 Apr 2014 13:19:35 +0000 (16:19 +0300)]
src/keyboard.c: Fix a typo in a comment to read_char.

10 years agoA better fix for bug #17169.
Eli Zaretskii [Fri, 4 Apr 2014 08:26:00 +0000 (11:26 +0300)]
A better fix for bug #17169.

 lisp/international/characters.el (mirroring): Fix last change:
 instead of loading uni-mirrored.el explicitly, do that implicitly
 by creating the 'mirroring' uniprop table.  This avoids announcing
 the loading of uni-mirrored.el.

10 years agoDoc updates for buffer-stale-function now applying to file buffers too
Glenn Morris [Fri, 4 Apr 2014 02:09:35 +0000 (22:09 -0400)]
Doc updates for buffer-stale-function now applying to file buffers too

* doc/emacs/arevert-xtra.texi (Supporting additional buffers):
* doc/lispref/backups.texi (Reverting):
Update for buffer-stale-function also applying to file-buffers.

* lisp/autorevert.el (auto-revert-buffers):
* lisp/files.el (buffer-stale--default-function)
(buffer-stale-function, revert-buffer--default): Doc tweaks.

* etc/NEWS: Related edits.

10 years agoDoc updates for default values of some -function vars no longer being nil
Glenn Morris [Fri, 4 Apr 2014 01:49:28 +0000 (21:49 -0400)]
Doc updates for default values of some -function vars no longer being nil

* doc/emacs/files.texi (Backup Names):
* doc/emacs/arevert-xtra.texi (Supporting additional buffers):
* doc/lispref/backups.texi (Making Backups, Reverting):
Update for default values of some -function vars no longer being nil.

* etc/NEWS: Related edits.

10 years agoFix bug #17169 with infinite recursion in bidi_initialize under force-load-messages.
Eli Zaretskii [Thu, 3 Apr 2014 19:53:43 +0000 (22:53 +0300)]
Fix bug #17169 with infinite recursion in bidi_initialize under force-load-messages.

 lisp/international/characters.el: Preload uni-mirrored.el.

10 years agoDon't use manifest on Cygwin. (Bug#17176)
Ken Brown [Thu, 3 Apr 2014 19:10:35 +0000 (15:10 -0400)]
Don't use manifest on Cygwin.  (Bug#17176)

* nt/emacs.rc: Don't use manifest on Cygwin.
* configure.ac (EMACS_MANIFEST, UPDATE_MANIFEST): Leave these
variables empty on Cygwin.
* src/Makefile.in (EMACS_MANIFEST): Update comment.

10 years agoRefix previous NEWS fix
Glenn Morris [Thu, 3 Apr 2014 07:21:37 +0000 (00:21 -0700)]
Refix previous NEWS fix

10 years agoTweak previous NEWS change
Glenn Morris [Thu, 3 Apr 2014 07:17:58 +0000 (00:17 -0700)]
Tweak previous NEWS change

10 years agoDoc updates related to changes in revert-buffer function variables
Glenn Morris [Thu, 3 Apr 2014 07:06:40 +0000 (00:06 -0700)]
Doc updates related to changes in revert-buffer function variables

* lisp/files.el (make-backup-file-name-function)
(make-backup-file-name, make-backup-file-name--default-function)
(make-backup-file-name-1, find-backup-file-name)
(revert-buffer-function, revert-buffer-insert-file-contents-function)
(buffer-stale--default-function, buffer-stale-function)
(before-revert-hook, after-revert-hook, revert-buffer-in-progress-p)
(revert-buffer, revert-buffer--default)
(revert-buffer-insert-file-contents--default-function):
Doc fixes related to defaults no longer being nil.
(make-backup-file-name-function): Bump :version.
Restore nil as a valid but deprecated custom type.

* etc/NEWS: Related edit.

10 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Handle $'
Stefan Monnier [Thu, 3 Apr 2014 00:41:09 +0000 (20:41 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Handle $'
used as a variable.

Fixes: debbugs:17174

10 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
Stefan Monnier [Wed, 2 Apr 2014 19:50:05 +0000 (15:50 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
and "for" statement modifiers introducing expressions.

Fixes: debbugs:17116

10 years ago* lisp/progmodes/perl-mode.el (perl-indent-new-calculate):
Stefan Monnier [Wed, 2 Apr 2014 19:47:50 +0000 (15:47 -0400)]
* lisp/progmodes/perl-mode.el (perl-indent-new-calculate):
Handle forward-sexp failure.

Fixes: debbugs:16985

10 years agoIn x_new_font don't calculate non-toolkit scrollbar width from font width (Bug#17163).
Martin Rudalics [Wed, 2 Apr 2014 14:33:33 +0000 (16:33 +0200)]
In x_new_font don't calculate non-toolkit scrollbar width from font width (Bug#17163).

* xterm.c (x_new_font): Don't calculate non-toolkit scrollbar
width from font width (Bug#17163).

10 years agoSmall codes update for revert-buffer-function no longer being nil by default
Glenn Morris [Wed, 2 Apr 2014 07:07:11 +0000 (00:07 -0700)]
Small codes update for revert-buffer-function no longer being nil by default

* lisp/menu-bar.el (menu-bar-file-menu):
* lisp/vc/ediff.el (ediff-current-file):
Update for revert-buffer-function no longer being nil by default.

10 years agoNEWS small edits
Glenn Morris [Wed, 2 Apr 2014 07:01:07 +0000 (00:01 -0700)]
NEWS small edits

10 years ago* lisp/simple.el (command-execute): Respect nil disabled-command-function.
Glenn Morris [Wed, 2 Apr 2014 06:53:10 +0000 (23:53 -0700)]
* lisp/simple.el (command-execute): Respect nil disabled-command-function.

10 years agoFix for command-execute handling of disabled commands
Nicolas Richard [Wed, 2 Apr 2014 06:51:59 +0000 (23:51 -0700)]
Fix for command-execute handling of disabled commands

* lisp/simple.el (command-execute): Do not execute the command when it
is disabled; fixes thinko in 2013-02-20 conversion from C.

Fixes: debbugs:17151

10 years agoBackport cedet/ede/emacs.el change from trunk
Glenn Morris [Tue, 1 Apr 2014 16:27:59 +0000 (09:27 -0700)]
Backport cedet/ede/emacs.el change from trunk
In case anyone uses 24.4 to edit trunk Emacs sources

* lisp/cedet/ede/emacs.el (ede-emacs-version): Update AC_INIT regexp.

Fixes: debbugs:17160

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 Apr 2014 11:22:00 +0000 (07:22 -0400)]
Auto-commit of loaddefs files.

10 years agoFix up some Version: headers that might confuse package.el
Glenn Morris [Mon, 31 Mar 2014 19:01:59 +0000 (15:01 -0400)]
Fix up some Version: headers that might confuse package.el

10 years agoRename some cedet Version: headers that can confuse package.el
Glenn Morris [Mon, 31 Mar 2014 17:01:19 +0000 (13:01 -0400)]
Rename some cedet Version: headers that can confuse package.el

Fixes: debbugs:17137

10 years ago* configure.ac: Make the final "Does Emacs use Gsettings" message
Glenn Morris [Mon, 31 Mar 2014 16:22:32 +0000 (09:22 -0700)]
* configure.ac: Make the final "Does Emacs use Gsettings" message
consistent with src/config.h.

10 years ago* configure.ac: Fix errors from previous checkin (GSettings check).
Jan Djärv [Mon, 31 Mar 2014 06:08:29 +0000 (08:08 +0200)]
* configure.ac: Fix errors from previous checkin (GSettings check).
Backport from trunk.

10 years ago* configure.ac: Include GFILENOTIFY objects in glib check (backport from trunk)
Daniel Colascione [Sun, 30 Mar 2014 23:59:19 +0000 (16:59 -0700)]
* configure.ac: Include GFILENOTIFY objects in glib check (backport from trunk)

Fixes: debbugs:17069

10 years agont/INSTALL: Minor fixes.
Eli Zaretskii [Sun, 30 Mar 2014 18:55:19 +0000 (21:55 +0300)]
nt/INSTALL: Minor fixes.

10 years agoIn x_set_window_size postpone calculation of default frame sizes (Bug#17142).
Martin Rudalics [Sun, 30 Mar 2014 13:31:45 +0000 (15:31 +0200)]
In x_set_window_size postpone calculation of default frame sizes (Bug#17142).

* frame.c (x_set_frame_parameters): Calculate default values of
new frame sizes only after all other frame parameters have been
processed (Bug#17142).

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 30 Mar 2014 11:24:54 +0000 (07:24 -0400)]
Auto-commit of loaddefs files.

10 years ago* configure.ac: Add check that GSettings is in libgio. Backport from trunk.
Jan Djärv [Sun, 30 Mar 2014 10:44:33 +0000 (12:44 +0200)]
* configure.ac: Add check that GSettings is in libgio. Backport from trunk.

Fixes: debbugs:17118

10 years ago* lisp/dired-aux.el (dired-compress-file): Don't use string-match-p
Juri Linkov [Sat, 29 Mar 2014 17:59:36 +0000 (19:59 +0200)]
* lisp/dired-aux.el (dired-compress-file): Don't use string-match-p
because its match data is used afterwards.

10 years ago* lisp/emacs-lisp/package.el (package-built-in-p): Treat a min-version of
Stefan Monnier [Fri, 28 Mar 2014 22:47:46 +0000 (18:47 -0400)]
* lisp/emacs-lisp/package.el (package-built-in-p): Treat a min-version of
0 like nil.

10 years ago* etc/CONTRIBUTE: Avoid being specific about countries.
Glenn Morris [Fri, 28 Mar 2014 19:44:37 +0000 (15:44 -0400)]
* etc/CONTRIBUTE: Avoid being specific about countries.
It's just liable to get outdated.

10 years ago* etc/CONTRIBUTE: Small updates
Glenn Morris [Fri, 28 Mar 2014 19:20:48 +0000 (15:20 -0400)]
* etc/CONTRIBUTE: Small updates

10 years ago* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Set to 10000. (Bug#17112)
Ken Brown [Fri, 28 Mar 2014 16:32:54 +0000 (12:32 -0400)]
* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Set to 10000.  (Bug#17112)

10 years agoBackport NEWS tweak from trunk
Glenn Morris [Fri, 28 Mar 2014 01:43:01 +0000 (21:43 -0400)]
Backport NEWS tweak from trunk

10 years agoAdjust image background width on X11 accordingly when its x position is adjusted...
YAMAMOTO Mitsuharu [Fri, 28 Mar 2014 00:50:53 +0000 (09:50 +0900)]
Adjust image background width on X11 accordingly when its x position is adjusted. (Bug#17115)

10 years agoFix bug #17115 with displaying on w32 images that have 'box' face.
YAMAMOTO Mitsuharu [Thu, 27 Mar 2014 16:25:17 +0000 (18:25 +0200)]
Fix bug #17115 with displaying on w32 images that have 'box' face.

 src/w32term.c (x_draw_image_glyph_string): Fix computation of height
 and width of image background when it is displayed with a 'box'
 face.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
Dmitry Gutov [Thu, 27 Mar 2014 08:21:15 +0000 (10:21 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
special globals with font-lock-builtin-face.

Fixes: debbugs:17057

10 years agoFix bug#17097
Dmitry Gutov [Thu, 27 Mar 2014 06:53:13 +0000 (08:53 +0200)]
Fix bug#17097

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Don't propertize `?' or `!' as symbol constituent when after
colon.

10 years agolisp/frameset.el: Fix bug#17046.
Juanma Barranquero [Thu, 27 Mar 2014 01:01:36 +0000 (02:01 +0100)]
lisp/frameset.el: Fix bug#17046.

(frameset--restore-frame): Remove workaround for bug#14795
which is no longer needed and causes trouble in GTK builds.

10 years agolisp/emacs-lisp/package-x.el: Follow-up to change in package.el.
Juanma Barranquero [Thu, 27 Mar 2014 00:20:50 +0000 (01:20 +0100)]
lisp/emacs-lisp/package-x.el: Follow-up to change in package.el.

(package--archive-contents-from-url): Use url-insert-file-contents;
package-handle-response no longer exists.

10 years agoMore backward-compatible fix to char-equal core dump.
Paul Eggert [Wed, 26 Mar 2014 17:55:31 +0000 (10:55 -0700)]
More backward-compatible fix to char-equal core dump.

* editfns.c (Fchar_equal): In unibyte buffers, assume values in
range 128-255 are raw bytes.  Suggested by Eli Zaretskii.

Fixes: debbugs:17011

10 years ago* lisp/emacs-lisp/package.el: Fix bug#16733 (again).
Juanma Barranquero [Wed, 26 Mar 2014 15:21:17 +0000 (16:21 +0100)]
* lisp/emacs-lisp/package.el: Fix bug#16733 (again).
  (url-http-parse-response, url-http-end-of-headers, url-recreate-url)
  (url-http-target-url): Remove unused declarations.
  (package-handle-response): Remove.
  (package--with-work-buffer): Use url-insert-file-contents and simplify.
  (package--download-one-archive): Use current-buffer instead of
  dynamic binding of `buffer'.
  (describe-package-1): Do not decode readme-string.

* lisp/url/url-handlers.el (url-http-parse-response): Add autoload.
  (url-insert-file-contents): Signal file-error in case of HTTP error.

10 years agoFix wrong timestamp.
Michael Albinus [Wed, 26 Mar 2014 13:02:16 +0000 (14:02 +0100)]
Fix wrong timestamp.

10 years agoFix core dump in char-equal.
Paul Eggert [Wed, 26 Mar 2014 05:35:38 +0000 (22:35 -0700)]
Fix core dump in char-equal.

* editfns.c (Fchar_equal): Do not use MAKE_CHAR_MULTIBYTE in
unibyte buffers, as we can't tell whether the characters are
actually unibyte.

Fixes: debbugs:17011

10 years agoMerge from gnulib.
Paul Eggert [Wed, 26 Mar 2014 04:16:13 +0000 (21:16 -0700)]
Merge from gnulib.

This incorporates:
2014-03-26 strftime: wrap macros in "do {...} while(0)"
* lib/strftime.c, doc/misc/texinfo.tex: Update from gnulib.

10 years ago* insdel.c (adjust_markers_for_delete): Remove unused local.
Paul Eggert [Wed, 26 Mar 2014 04:07:25 +0000 (21:07 -0700)]
* insdel.c (adjust_markers_for_delete): Remove unused local.

10 years agoAddendum to: Undo in region after markers in undo history relocated
Barry O'Reilly [Tue, 25 Mar 2014 23:30:08 +0000 (19:30 -0400)]
Addendum to: Undo in region after markers in undo history relocated

* simple.el (primitive-undo): Correction to 2014-03-24 change.

Fixes: debbugs:16818

10 years agoImprove doc of file-symlink-p per bug #17073.
Eli Zaretskii [Tue, 25 Mar 2014 16:08:45 +0000 (18:08 +0200)]
Improve doc of file-symlink-p per bug #17073.

 doc/lispref/files.texi (Kinds of Files): Improve documentation of
 file-symlink-p.  Add cross-references.

10 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): In the
Michael Albinus [Tue, 25 Mar 2014 09:49:37 +0000 (10:49 +0100)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): In the
`rename' case, check whether source directory has set the sticky bit.

10 years ago* net/tramp.el (tramp-methods, tramp-connection-timeout): Fix docstring.
Michael Albinus [Tue, 25 Mar 2014 08:16:49 +0000 (09:16 +0100)]
* net/tramp.el (tramp-methods, tramp-connection-timeout): Fix docstring.

* net/tramp-sh.el (tramp-sh-handle-vc-registered): Revert change
from 2014-03-07, it decreases performance unnecessarily.  Let-bind
`remote-file-name-inhibit-cache' to nil in the second pass.
(tramp-find-executable): Do not call "which" on SunOS.
(tramp-send-command-and-check): Fix docstring.

10 years agoFix last ChangeLog entry.
Michael Albinus [Tue, 25 Mar 2014 07:34:30 +0000 (08:34 +0100)]
Fix last ChangeLog entry.

10 years agoUndo in region after markers in undo history relocated
Barry O'Reilly [Tue, 25 Mar 2014 02:47:39 +0000 (22:47 -0400)]
Undo in region after markers in undo history relocated

* simple.el (primitive-undo): Only process marker adjustments
validated against their corresponding (TEXT . POS).  Issue warning
for lone marker adjustments in undo history.  (Bug#16818)
(undo-make-selective-list): Add marker adjustments to selective
undo list based on whether their corresponding (TEXT . POS) is in
the region.  Remove variable adjusted-markers, which was unused
and only non nil during undo-make-selective-list.
(undo-elt-in-region): Return nil when passed a marker adjustment
and explain in function doc.

Have (MARKER . ADJUSTMENT) undo records always be immediately
after their corresponding (TEXT . POS) record in undo list.
(Bug#16818)
* lisp.h (record-delete): New arg record_markers.
(record_marker_adjustment): No longer needed outside undo.c.
* insdel.c (adjust_markers_for_delete): Move calculation of marker
adjustments to undo.c's record_marker_adjustments.  Note that
fileio.c's decide_coding_unwind is another caller to
adjust_markers_for_delete.  Because it has undo list bound to t,
it does not rely on adjust_markers_for_delete to record marker
adjustments.
(del_range_2): Swap call to record_delete and
adjust_markers_for_delete so as undo marker adjustments are
recorded before current deletion's adjustments, as before.
(adjust_after_replace):
(replace_range): Pass value for new record_markers arg to
delete_record.
* undo.c (record_marker_adjustment): Renamed to
record_marker_adjustments and made static.
(record_delete): Check record_markers arg and call
record_marker_adjustments.
(record_change): Pass value for new record_markers arg to
delete_record.
(record_point): at_boundary calculation no longer needs to account
for marker adjustments.

* undo-tests.el (undo-test-marker-adjustment-nominal):
(undo-test-region-t-marker): New tests of marker adjustments.
(undo-test-marker-adjustment-moved):
(undo-test-region-mark-adjustment): New tests to demonstrate
bug#16818, which fail without the fix.

* markers.texi (Moving Marker Positions): The 2014-03-02 doc
change mentioning undo's inability to handle relocated markers no
longer applies.  See bug#16818.
* text.texi (Undo): Expand documentation of (TEXT . POS) and
(MARKER . ADJUSTMENT) undo elements.

10 years agoFix bug#16762
Dmitry Gutov [Mon, 24 Mar 2014 22:38:06 +0000 (00:38 +0200)]
Fix bug#16762

* lisp/emacs-lisp/package.el (package--add-to-archive-contents):
Include already installed and built-in packages in
`package-archive-contents'.
(package-install): Don't include already installed packages in the
options on interactive invocation.

10 years agoBackport &key-parsing improvement from trunk
Daniel Colascione [Mon, 24 Mar 2014 20:41:08 +0000 (13:41 -0700)]
Backport &key-parsing improvement from trunk

10 years agolisp/frameset.el (frameset--initial-params): Fix typo in parameter name.
Juanma Barranquero [Mon, 24 Mar 2014 20:01:21 +0000 (21:01 +0100)]
lisp/frameset.el (frameset--initial-params): Fix typo in parameter name.

10 years agolisp/align.el (align-region): Do not fail when end-mark is nil (bug#17088).
Nicolas Richard [Mon, 24 Mar 2014 16:54:24 +0000 (17:54 +0100)]
lisp/align.el (align-region): Do not fail when end-mark is nil (bug#17088).

10 years agoMatch special globals in Ruby better
Dmitry Gutov [Mon, 24 Mar 2014 08:53:56 +0000 (10:53 +0200)]
Match special globals in Ruby better

* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re):
Match special global variables without curlies, too.
(ruby-font-lock-keywords): Simplify the matcher for special global
variables.  Don't require a non-word character after the variable.

Fixes: debbugs:17057

10 years agoRefine previous fix of x_set_window_size to handle Bug#17077.
Martin Rudalics [Mon, 24 Mar 2014 08:50:17 +0000 (09:50 +0100)]
Refine previous fix of x_set_window_size to handle Bug#17077.

* w32term.c (x_set_window_size): Refine fix from 2014-03-14
(Bug#17077).

10 years ago* tramp.texi (Frequently Asked Questions): Add fish shell settings.
Michael Albinus [Mon, 24 Mar 2014 08:09:42 +0000 (09:09 +0100)]
* tramp.texi (Frequently Asked Questions): Add fish shell settings.

10 years ago* src/fileio.c (Ffile_symlink_p): Doc fix.
Glenn Morris [Sun, 23 Mar 2014 23:38:40 +0000 (16:38 -0700)]
* src/fileio.c (Ffile_symlink_p): Doc fix.

Fixes: debbugs:17073

10 years ago* lisp/simple.el (redisplay-highlight-region-function): Increase priority of
Stefan Monnier [Sun, 23 Mar 2014 22:30:47 +0000 (18:30 -0400)]
* lisp/simple.el (redisplay-highlight-region-function): Increase priority of
overlay to make sure boundaries are visible.
* src/buffer.c (struct sortvec): Add field `spriority'.
(compare_overlays): Use it.
(sort_overlays): Set it.

Fixes: debbugs:15899

10 years agolisp/frameset.el (frameset-restore): Compare display strings with equal.
Juanma Barranquero [Sun, 23 Mar 2014 22:14:11 +0000 (23:14 +0100)]
lisp/frameset.el (frameset-restore): Compare display strings with equal.

10 years agolisp/frame.el (make-frame): Don't quote display name in error message.
Juanma Barranquero [Sun, 23 Mar 2014 22:11:59 +0000 (23:11 +0100)]
lisp/frame.el (make-frame): Don't quote display name in error message.

10 years agoFix ChangeLog entry of last commit.
Eli Zaretskii [Sun, 23 Mar 2014 15:59:15 +0000 (17:59 +0200)]
Fix ChangeLog entry of last commit.

10 years agoFix bug #17047 with cursor motion when invisible text starts a line.
Eli Zaretskii [Sun, 23 Mar 2014 15:57:25 +0000 (17:57 +0200)]
Fix bug #17047 with cursor motion when invisible text starts a line.

 src/xdisp.c (redisplay_window): If all previous attempts to find the
 cursor row failed, try a few alternatives before falling back to
 the top-most row of the window.  Use row_containing_pos.

10 years ago* net/tramp.el (tramp-read-passwd): Suspend the timers while reading
Thierry Volpiatto [Sun, 23 Mar 2014 09:22:16 +0000 (10:22 +0100)]
* net/tramp.el (tramp-read-passwd): Suspend the timers while reading
the password.

10 years ago* lisp/emacs-lisp/package.el (package-show-package-list): If the buffer
Dmitry Gutov [Sun, 23 Mar 2014 08:35:56 +0000 (10:35 +0200)]
* lisp/emacs-lisp/package.el (package-show-package-list): If the buffer
is already displayed in another window, switch to that window.

10 years agoBackport memory info in bug reports (2014-03-21T21:27:25Z!dancol@dancol.org) from...
Daniel Colascione [Sun, 23 Mar 2014 06:16:14 +0000 (23:16 -0700)]
Backport memory info in bug reports (2014-03-21T21:27:25Z!dancol@dancol.org) from trunk

10 years agoBackport memory fix (2014-03-22T03:04:53Z!dancol@dancol.org) from trunk
Daniel Colascione [Sun, 23 Mar 2014 06:07:54 +0000 (23:07 -0700)]
Backport memory fix (2014-03-22T03:04:53Z!dancol@dancol.org) from trunk