bpt/emacs.git
10 years agoautogen.sh: minor tweaks
Glenn Morris [Fri, 2 May 2014 17:40:09 +0000 (13:40 -0400)]
autogen.sh: minor tweaks

* autogen.sh (get_version): Handle no leading whitespace.
(check_version, main): Handle program names with hyphens.

10 years agoGnus: Make gnus-mime-inline-part and gnus-mm-display-part work similarly
Katsumi Yamaoka [Fri, 2 May 2014 09:49:11 +0000 (09:49 +0000)]
Gnus: Make gnus-mime-inline-part and gnus-mm-display-part work similarly

(The last commit message was mistaken, sorry.)

10 years agoGnus: Make gnus-mime-inline-part and gnus-mime-inline-part work similarly
Katsumi Yamaoka [Fri, 2 May 2014 09:44:34 +0000 (09:44 +0000)]
Gnus: Make gnus-mime-inline-part and gnus-mime-inline-part work similarly

* gnus-art.el (gnus-mime-inline-part): Redisplay a button so as to show
the displaying state of a part.
(gnus-mime-inline-part): Don't insert a newline in the beginning of
a part like gnus-mime-inline-part doesn't; work for XEmacs.

* mm-decode.el (mm-display-part): Don't insert a newline in the top.
(mm-shr): Make undisplayer unbreakable.

* mm-view.el (mm-inline-image-emacs, mm-inline-image-xemacs): Don't
insert excessive newline.
(mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Make undisplayer unbreakable.

10 years agoChange algorithm used to adjust positions for undo in region
Barry O'Reilly [Thu, 1 May 2014 23:25:28 +0000 (19:25 -0400)]
Change algorithm used to adjust positions for undo in region

* simple.el (undo-make-selective-list): New algorithm fixes
incorrectness of position adjustments when undoing in region.
(Bug#17235)
(undo-elt-crosses-region): Make obsolete.
(undo-adjust-elt, undo-adjust-beg-end, undo-adjust-pos): New
functions to adjust positions using undo-deltas.
* automated/undo-tests.el (undo-test-region-deletion): New test to
demonstrate bug#17235.
(undo-test-region-example): New test to verify example given in
comments for undo-make-selective-list.

Fixes: debbugs:17325

10 years ago* lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): Only highlight past
Stefan Monnier [Thu, 1 May 2014 16:14:03 +0000 (12:14 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): Only highlight past
the last consecutive closing paren.

Fixes: debbugs:17345

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 1 May 2014 10:21:17 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

10 years agolisp/gnus/gnus-art.el (gnus-mm-display-part): Highlight header attachment buttons
Katsumi Yamaoka [Thu, 1 May 2014 07:59:33 +0000 (07:59 +0000)]
lisp/gnus/gnus-art.el (gnus-mm-display-part): Highlight header attachment buttons

10 years ago* lisp/dired.el (dired-mode): make terminology for eXpunge command
Reuben Thomas [Wed, 30 Apr 2014 21:39:57 +0000 (22:39 +0100)]
* lisp/dired.el (dired-mode): make terminology for eXpunge command
consistent.

Fixes: debbugs:17276

10 years agoMerge from emacs-24; up to 2014-05-01T10:21:17Z!rgm@gnu.org
Juanma Barranquero [Wed, 30 Apr 2014 19:54:52 +0000 (21:54 +0200)]
Merge from emacs-24; up to 2014-05-01T10:21:17Z!rgm@gnu.org

10 years agoSpelling fix, plus try to fix grammar in doc string.
Paul Eggert [Wed, 30 Apr 2014 18:01:36 +0000 (11:01 -0700)]
Spelling fix, plus try to fix grammar in doc string.

10 years ago* term.c (tty_menu_activate): Don't assume row and col are initialized.
Paul Eggert [Wed, 30 Apr 2014 17:54:27 +0000 (10:54 -0700)]
* term.c (tty_menu_activate): Don't assume row and col are initialized.

GCC 4.9.0 warned about this, and I couldn't easily prove to my own
satisfaction that they would always be initialized.

10 years agoMinor fixes for dired.el doc strings.
Eli Zaretskii [Wed, 30 Apr 2014 16:59:03 +0000 (19:59 +0300)]
Minor fixes for dired.el doc strings.

 lisp/dired.el (dired-initial-position-hook, dired-initial-position):
 Doc string fixes.

10 years agolisp/gnus/gnus-art.el (gnus-mm-display-part): Fix previous commit (again)
Katsumi Yamaoka [Wed, 30 Apr 2014 09:21:09 +0000 (09:21 +0000)]
lisp/gnus/gnus-art.el (gnus-mm-display-part): Fix previous commit (again)

10 years agolisp/gnus/gnus-art.el (gnus-mm-display-part): Fix previous commit
Katsumi Yamaoka [Wed, 30 Apr 2014 04:21:08 +0000 (04:21 +0000)]
lisp/gnus/gnus-art.el (gnus-mm-display-part): Fix previous commit

10 years agolisp/gnus/gnus-art.el (gnus-mm-display-part): Bugfix for the 2014-03-23 change
Katsumi Yamaoka [Wed, 30 Apr 2014 04:05:27 +0000 (04:05 +0000)]
lisp/gnus/gnus-art.el (gnus-mm-display-part): Bugfix for the 2014-03-23 change

10 years agoOne more doc fix for bug #17362.
Eli Zaretskii [Tue, 29 Apr 2014 19:23:05 +0000 (22:23 +0300)]
One more doc fix for bug #17362.

10 years ago* lisp/mail/rmail.el (rmail-quit): Handle killed summaries.
Glenn Morris [Tue, 29 Apr 2014 15:51:49 +0000 (11:51 -0400)]
* lisp/mail/rmail.el (rmail-quit): Handle killed summaries.

Fixes: debbugs:17283

10 years agoPlace hardware TTY cursor at the active menu item when displaying a menu.
Eli Zaretskii [Tue, 29 Apr 2014 15:33:37 +0000 (18:33 +0300)]
Place hardware TTY cursor at the active menu item when displaying a menu.

 src/term.c (tty_menu_display): Move the cursor to the active menu
 item.
 (tty_menu_activate): Return the cursor to the active menu item
 after displaying the menu and after displaying help-echo.  See
 http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00402.html
 for the details of why this is needed by screen readers and
 Braille displays.

10 years agoFew more doc fixes for bug #17362.
Eli Zaretskii [Tue, 29 Apr 2014 15:17:02 +0000 (18:17 +0300)]
Few more doc fixes for bug #17362.

10 years ago* src/window.c (struct saved_window): Remove mark.
Stefan Monnier [Tue, 29 Apr 2014 15:16:07 +0000 (11:16 -0400)]
* src/window.c (struct saved_window): Remove mark.
(Fset_window_configuration, save_window_save)
(compare_window_configurations): Don't touch marks any more.
* doc/lispref/windows.texi (Window Configurations, Window Configurations):
Window configs don't store marks any more.

10 years ago* src/process.c (handle_child_signal): Handle systems without WCONTINUED
Glenn Morris [Tue, 29 Apr 2014 15:12:36 +0000 (08:12 -0700)]
* src/process.c (handle_child_signal): Handle systems without WCONTINUED

Fixes: debbugs:15110

10 years ago* lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Avoid non-portable "`\" nesting
Glenn Morris [Tue, 29 Apr 2014 14:54:58 +0000 (07:54 -0700)]
* lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Avoid non-portable "`\" nesting

Fixes: debbugs:17339

10 years ago* configure.ac: Treat MirBSD as OpenBSD.
Glenn Morris [Tue, 29 Apr 2014 14:49:11 +0000 (07:49 -0700)]
* configure.ac: Treat MirBSD as OpenBSD.

Fixes: debbugs:17339

10 years agoFix bug #17362 with inconsistent usage of @key and @kbd, and key names.
Eli Zaretskii [Tue, 29 Apr 2014 14:45:24 +0000 (17:45 +0300)]
Fix bug #17362 with inconsistent usage of @key and @kbd, and key names.

 doc/emacs/trouble.texi (Quitting, DEL Does Not Delete, Emergency Escape)
 (Bug Criteria): Fix usage of @kbd and @key.  (Bug#17362)
 doc/emacs/text.texi (Words, Pages, Foldout, HTML Mode): Fix usage of @kbd
 and @key.
 doc/emacs/search.texi (Special Isearch, Regexp Search): Fix usage of @kbd
 and @key.
 doc/emacs/screen.texi (Echo Area, Menu Bar): Fix usage of @kbd and @key.
 doc/emacs/rmail.texi (Rmail Scrolling): Fix usage of @kbd and @key.
 doc/emacs/programs.texi (Hungry Delete, Other C Commands): Fix usage of
 @kbd and @key.
 doc/emacs/picture-xtra.texi (Insert in Picture): Fix usage of @kbd and
 @key.
 doc/emacs/mule.texi (Unibyte Mode, Bidirectional Editing): Fix usage of
 @kbd and @key.
 doc/emacs/msdog.texi (Windows Keyboard, Windows Processes): Fix usage of
 @kbd and @key.
 doc/emacs/msdog-xtra.texi (MS-DOS Keyboard, MS-DOS Printing)
 (MS-DOS Processes): Fix usage of @kbd and @key.
 doc/emacs/misc.texi (Shell Ring, Printing Package): Fix usage of @kbd and
 @key.
 doc/emacs/mini.texi (Completion Commands, Minibuffer History): Fix usage
 of @kbd and @key.
 doc/emacs/kmacro.texi (Keyboard Macro Step-Edit): Fix usage of @kbd and
 @key.
 doc/emacs/killing.texi (Deletion, Rectangles, CUA Bindings): Fix usage of
 @kbd and @key.
 doc/emacs/indent.texi (Indentation Commands): Fix usage of @kbd and @key.
 doc/emacs/help.texi (Help Mode, Misc Help): Fix usage of @kbd and @key.
 doc/emacs/glossary.texi (Glossary): Fix usage of @kbd and @key.
 doc/emacs/frames.texi (Speedbar): Fix usage of @kbd and @key.
 doc/emacs/files.texi (Misc File Ops, File Name Cache, File Conveniences)
 (Filesets): Fix usage of @kbd and @key.
 doc/emacs/display.texi (View Mode): Fix usage of @kbd and @key.
 doc/emacs/dired.texi (Image-Dired): Fix usage of @kbd and @key.
 doc/emacs/custom.texi (Modifier Keys, Function Keys, Named ASCII Chars)
 (Init Syntax): Fix usage of @kbd and @key.
 doc/emacs/commands.texi (User Input): Fix usage of @kbd and @key.
 doc/emacs/calendar.texi (Counting Days, General Calendar): Fix usage of
 @kbd and @key.
 doc/emacs/building.texi (Threads Buffer): Fix usage of @kbd and @key.
 doc/emacs/buffers.texi (Select Buffer, Icomplete): Fix usage of @kbd and
 @key.
 doc/emacs/basic.texi (Inserting Text, Erasing, Arguments): Fix usage of
 @kbd and @key.

10 years ago* doc/lispref/processes.texi (Filter Functions, Sentinels):
Stefan Monnier [Tue, 29 Apr 2014 04:14:27 +0000 (00:14 -0400)]
* doc/lispref/processes.texi (Filter Functions, Sentinels):
Advertise add-function.

10 years agoFix a typo in ChangeLog entry of last commit.
Eli Zaretskii [Mon, 28 Apr 2014 19:15:58 +0000 (22:15 +0300)]
Fix a typo in ChangeLog entry of last commit.

10 years agoFix bug 16694 with applying X resources to faces too early.
Matthias Dahl [Mon, 28 Apr 2014 19:14:17 +0000 (22:14 +0300)]
Fix bug 16694 with applying X resources to faces too early.

 lisp/faces.el (face-spec-recalc): Apply X resources only after the
 defface spec has been applied. Thus, X resources are no longer
 overriden by the defface spec which also fixes issues on win32 where
 the toolbar coloring was wrong because it is set through X resources
 and was (wrongfully) overriden.

10 years agoUse bits_word for gcmarkbits.
Paul Eggert [Mon, 28 Apr 2014 16:59:41 +0000 (09:59 -0700)]
Use bits_word for gcmarkbits.

* alloc.c (struct cons_block, struct float_block): On 64-bit hosts,
bits_word is typically a tad more efficient for mark bits than
unsigned is, so use bits_word.  All uses changed.
* lisp.h (BITS_PER_INT): Remove; no longer used.

10 years ago* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
Stefan Monnier [Mon, 28 Apr 2014 15:04:49 +0000 (11:04 -0400)]
* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
(rst-mode): Set it.

Fixes: debbugs:17131

10 years agolisp/gnus/gnus-art.el (gnus-mime-display-attachment-buttons-in-header): Fix custom...
Katsumi Yamaoka [Mon, 28 Apr 2014 06:30:39 +0000 (06:30 +0000)]
lisp/gnus/gnus-art.el (gnus-mime-display-attachment-buttons-in-header): Fix custom group

10 years ago* lisp/progmodes/ps-mode.el: Use SMIE. Move string and comment recognition
Stefan Monnier [Mon, 28 Apr 2014 04:40:41 +0000 (00:40 -0400)]
* lisp/progmodes/ps-mode.el: Use SMIE.  Move string and comment recognition
to syntax-propertize.
(ps-mode-auto-indent): Mark as obsolete.
(ps-mode-font-lock-keywords-1): Remove string-or-comment handling.
(ps-mode-font-lock-keywords-3): Use symbol regexp operators instead of
word regexp operators.
(ps-mode-map): Move initialization into declaration.  Remove binding
for TAB, RET, >, ], and }.
(ps-mode-syntax-table): Move initialization into declaration.
Don't give word syntax to non-word chars.
(ps-run-mode-map): Move initialization into declaration.
(ps-mode-menu-main): Remove auto-indent entry.
(ps-mode-smie-rules): New function.
(ps-mode): Setup smie, syntax-propertize, and electric-indent-mode.
(ps-mode-looking-at-nested, ps-mode-match-string-or-comment): Remove.
(ps-mode--string-syntax-table): New const.
(ps-mode--syntax-propertize-special, ps-mode-syntax-propertize):
New functions.
(ps-mode-newline, ps-mode-tabkey, ps-mode-r-brace, ps-mode-r-angle)
(ps-mode-r-gt, ps-mode-r-balance): Remove functions.

10 years agoAvoid undefined behavior in signed left shift.
Paul Eggert [Mon, 28 Apr 2014 01:29:44 +0000 (18:29 -0700)]
Avoid undefined behavior in signed left shift.

This ports to GCC 4.9.0 with -fsanitize=undefined.
* alloc.c (bool_vector_fill, SETMARKBIT, UNSETMARKBIT):
* data.c (Fash):
* regex.c (extract_number):
* lisp.h (make_number, XINT):
Do not shift a 1 bit left into a sign bit.
* alloc.c (struct cons_block, struct float_block): Use unsigned,
not int, for gcmarkbits.  All uses changed.

10 years agoAvoid adding bracketed paste keys to command keys
Daniel Colascione [Sun, 27 Apr 2014 23:26:42 +0000 (16:26 -0700)]
Avoid adding bracketed paste keys to command keys

* lisp/term/xterm.el (xterm-paste): Use large finite timeout when
reading event to avoid putting keys in this-command-keys.

10 years agolisp/gnus.auth-source.el (auth-source-search): return boolean on :max 0
Teodor Zlatanov [Sun, 27 Apr 2014 22:08:43 +0000 (22:08 +0000)]
lisp/gnus.auth-source.el (auth-source-search): return boolean on :max 0

* lisp/gnus.auth-source.el (auth-source-search, auth-source-search-backends):
Treat :max 0 as an indicator that a boolean return is wanted, as
documented. Reported by Joe Bloggs.

10 years ago* lisp/desktop.el (desktop-value-to-string): Let-bind `print-length' and `print-level...
Juri Linkov [Sun, 27 Apr 2014 08:22:11 +0000 (11:22 +0300)]
* lisp/desktop.el (desktop-value-to-string): Let-bind `print-length' and `print-level' to nil.

Fixes: debbugs:17351

10 years agoFix bug #17308 with inaccurate description of mail signature handling.
Eli Zaretskii [Sat, 26 Apr 2014 07:46:18 +0000 (10:46 +0300)]
Fix bug #17308 with inaccurate description of mail signature handling.

 doc/emacs/sending.texi (Mail Signature): Document signature variables used
 by Message mode.

10 years agoFix bug #17334 with overrunning string bounds when PATH is broken.
Eli Zaretskii [Sat, 26 Apr 2014 07:06:33 +0000 (10:06 +0300)]
Fix bug #17334 with overrunning string bounds when PATH is broken.

 nt/cmdproxy.c (make_absolute): Don't copy more characters from PATH
 than a single directory name can hold.

10 years ago* lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): New var.
Stefan Monnier [Fri, 25 Apr 2014 19:22:26 +0000 (15:22 -0400)]
* lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): New var.
(perl-syntax-propertize-function): Use it.  Extend handling of
here-docs to the unquoted case.

10 years ago* lisp/battery.el (battery-update): Handle the case where battery
Nicolas Richard [Fri, 25 Apr 2014 18:01:18 +0000 (14:01 -0400)]
* lisp/battery.el (battery-update): Handle the case where battery
status is "N/A".

Fixes: debbugs:17319

10 years agoMerge from emacs-24; up to 2014-04-25T10:35:01Z!michael.albinus@gmx.de
Juanma Barranquero [Fri, 25 Apr 2014 16:11:07 +0000 (18:11 +0200)]
Merge from emacs-24; up to 2014-04-25T10:35:01Z!michael.albinus@gmx.de

10 years ago* automated/tramp-tests.el (top):
Michael Albinus [Fri, 25 Apr 2014 10:35:01 +0000 (12:35 +0200)]
* automated/tramp-tests.el (top):
* automated/file-notify-tests.el (top): Do not disable interactive
passwords in batch mode.
(password-cache-expiry): Set to nil.

10 years agoWarn against renaming git-bzr remote; nfc.
Thien-Thi Nguyen [Thu, 24 Apr 2014 23:18:40 +0000 (01:18 +0200)]
Warn against renaming git-bzr remote; nfc.

* admin/notes/bzr (Using git-bzr):
...here, in subsection "remote name".

10 years agoImprove Scheme font-locking for (define ((foo ...) ...) ...).
Thien-Thi Nguyen [Thu, 24 Apr 2014 22:37:28 +0000 (00:37 +0200)]
Improve Scheme font-locking for (define ((foo ...) ...) ...).

* lisp/progmodes/scheme.el (scheme-font-lock-keywords-1): To find
the declared object, ignore zero or more parens, not zero or one.

10 years ago* progmodes/scheme.el (would-be-symbol, next-sexp-as-string):
Leo Liu [Thu, 24 Apr 2014 15:34:26 +0000 (23:34 +0800)]
* progmodes/scheme.el (would-be-symbol, next-sexp-as-string):
Comment out unused functions.

* progmodes/xscheme.el (xscheme-expressions-ring)
(xscheme-expressions-ring-yank-pointer, xscheme-running-p)
(xscheme-control-g-disabled-p, xscheme-process-filter-state)
(xscheme-allow-output-p, xscheme-prompt)
(xscheme-string-accumulator, xscheme-mode-string): Use defvar-local.

10 years agoMinor doc fix for string predicates.
Eli Zaretskii [Thu, 24 Apr 2014 15:11:04 +0000 (18:11 +0300)]
Minor doc fix for string predicates.

 doc/lispref/strings.texi (Text Comparison): Mention
 equal-including-properties for when text properties of the strings
 matter for comparison.

10 years agoFix bug #17331 with display properties on help-echo strings.
Eli Zaretskii [Thu, 24 Apr 2014 15:02:56 +0000 (18:02 +0300)]
Fix bug #17331 with display properties on help-echo strings.

 lisp/tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
 equal-including-properties to compare help-echo strings.

10 years ago* lisp/info.el: Use lexical-binding and cl-lib.
Stefan Monnier [Thu, 24 Apr 2014 14:04:36 +0000 (10:04 -0400)]
* lisp/info.el: Use lexical-binding and cl-lib.
Use defvar-local and setq-local instead of make-local-variable.
(Info-apropos-matches): Avoid add-to-list.
(Info-edit-mode-map): Fix obsolescence call to Info-edit-map.

10 years agoUse a mock-up connection method for remote files.
Michael Albinus [Thu, 24 Apr 2014 08:21:58 +0000 (10:21 +0200)]
Use a mock-up connection method for remote files.

* automated/file-notify-tests.el
(file-notify-test-remote-temporary-file-directory):
* automated/tramp-tests.el (tramp-test-temporary-file-directory):
Use a mock-up method as default.
(tramp-test00-availability): Print the used directory name.
(tramp-test33-recursive-load): Fix typo.

10 years ago* src/window.c (Fset_window_configuration): Deactivate the mark before
Stefan Monnier [Thu, 24 Apr 2014 03:59:19 +0000 (23:59 -0400)]
* src/window.c (Fset_window_configuration): Deactivate the mark before
unsetting the mark.
(set_window_buffer): Ignore window_initialized.
(window_initialized): Remove.
* src/keyboard.c (Qdeactivate_mark): Not static any more.
* src/buffer.c (buffer_local_value): Rename from buffer_local_value_1.
Update all callers.

10 years agoAdd coproc to list of bash builtins.
Daniel Colascione [Thu, 24 Apr 2014 02:37:02 +0000 (19:37 -0700)]
Add coproc to list of bash builtins.

* lisp/progmodes/sh-script.el (sh-builtins): Add coproc to list of bash builtins.

10 years ago* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Leo Liu [Thu, 24 Apr 2014 00:55:18 +0000 (08:55 +0800)]
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Fix syntax for @.

Fixes: debbugs:17325

10 years agoRequire gv early to break eager macro-expansion cycles
Daniel Colascione [Thu, 24 Apr 2014 00:28:47 +0000 (17:28 -0700)]
Require gv early to break eager macro-expansion cycles

* lisp/emacs-lisp/cl.el (gv): Require gv early to break eager
macro-expansion cycles.

10 years ago* conf_post.h (ADDRESS_SANITIZER_WORKAROUND): Port to GCC 4.9.0
Paul Eggert [Wed, 23 Apr 2014 18:23:28 +0000 (11:23 -0700)]
* conf_post.h (ADDRESS_SANITIZER_WORKAROUND): Port to GCC 4.9.0

and to clang 3.4, which have fixed the bug.  This should let us
run a bit faster on these platforms when address sanitization is
in effect.

10 years agoFix debugging code for checking the newline cache.
Eli Zaretskii [Wed, 23 Apr 2014 15:21:25 +0000 (18:21 +0300)]
Fix debugging code for checking the newline cache.

 src/search.c (Fnewline_cache_check): Don't try to count newlines
 outside the buffer's restriction, as find_newline doesn't support
 that.

10 years ago* lisp/simple.el (region-active-p): Check there's a mark.
Stefan Monnier [Wed, 23 Apr 2014 12:52:22 +0000 (08:52 -0400)]
* lisp/simple.el (region-active-p): Check there's a mark.

Fixes: debbugs:17324

10 years ago* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
Stefan Monnier [Wed, 23 Apr 2014 02:22:06 +0000 (22:22 -0400)]
* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
mouse binding as well.
(completion-list-mode, completion-setup-function): Adjust docstring and
echo area message accordingly.
* lisp/progmodes/idlwave.el (idlwave-choose-completion): Adjust to new
calling convention of choose-completion.
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/term.el (term-dynamic-list-completions): Accept choose-completion.

Fixes: debbugs:17302

10 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
Stefan Monnier [Wed, 23 Apr 2014 01:56:18 +0000 (21:56 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
&, |, +, - and * can't be a division.

Fixes: debbugs:17317

10 years ago* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Fix last merge.
Stefan Monnier [Wed, 23 Apr 2014 01:40:35 +0000 (21:40 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Fix last merge.

10 years ago2014-04-22 Daniel Colascione <dancol@dancol.org>
Daniel Colascione [Tue, 22 Apr 2014 21:46:19 +0000 (14:46 -0700)]
2014-04-22  Daniel Colascione  <dancol@dancol.org>

* emacs-lisp/byte-run.el (function-put): Unbreak build: don't
use defun to define `function-put'.

10 years agoMerge from emacs-24; up to 2014-04-22T20:19:17Z!eggert@cs.ucla.edu
Paul Eggert [Tue, 22 Apr 2014 21:32:51 +0000 (14:32 -0700)]
Merge from emacs-24; up to 2014-04-22T20:19:17Z!eggert@cs.ucla.edu

10 years ago* lisp/term/xterm.el (xterm--version-handler): Don't use modern xterm
Stefan Monnier [Tue, 22 Apr 2014 20:35:33 +0000 (16:35 -0400)]
* lisp/term/xterm.el (xterm--version-handler): Don't use modern xterm
features on gnome-terminal.

Fixes: debbugs:16988

10 years agoPort to GCC 4.9.0 with --enable-gcc-warnings.
Paul Eggert [Tue, 22 Apr 2014 20:19:17 +0000 (13:19 -0700)]
Port to GCC 4.9.0 with --enable-gcc-warnings.

* image.c (struct my_jpeg_error_mgr) [lint]: Remove member fp.
All uses removed.
(jpeg_load_body) [lint]: Add a 'volatile' to pacify a buggy GCC in
a way that also works with GCC 4.9.0.

10 years ago* search.c (Fnewline_cache_check): Remove unused locals.
Paul Eggert [Tue, 22 Apr 2014 20:13:59 +0000 (13:13 -0700)]
* search.c (Fnewline_cache_check): Remove unused locals.

10 years ago* dired.el (dired-insert-set-properties): Do not consider
Michael Heerdegen [Tue, 22 Apr 2014 18:17:17 +0000 (20:17 +0200)]
* dired.el (dired-insert-set-properties): Do not consider
subdirectory headings and empty lines to be information that
`dired-hide-details-mode' should hide.  (Bug#17228)

10 years ago* lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): New function.
Stefan Monnier [Tue, 22 Apr 2014 17:45:43 +0000 (13:45 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): New function.
(lisp-el-font-lock-keywords-2, lisp-cl-font-lock-keywords-2): Use it.
(lisp-mode-variables): Set font-lock-extra-managed-props.

10 years agoAdd debugging facility for the newline cache.
Eli Zaretskii [Tue, 22 Apr 2014 17:37:35 +0000 (20:37 +0300)]
Add debugging facility for the newline cache.
See the discussion in
http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00295.html
for more detail.

 src/search.c (find_newline1): New subroutine.
 (Fnewline_cache_check): New function.
 (syms_of_search): Defsubr it.

10 years ago* lisp/emacs-lisp/byte-run.el (function-put): New function.
Stefan Monnier [Tue, 22 Apr 2014 16:22:13 +0000 (12:22 -0400)]
* lisp/emacs-lisp/byte-run.el (function-put): New function.
(defun-declarations-alist): Use it.  Add `pure' and `side-effect-free'.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct, cl-struct-sequence-type)
(cl-struct-slot-info, cl-struct-slot-offset, cl-struct-slot-value):
Use them.

10 years agoMerge Org 8.2.6-1.
Bastien Guerry [Tue, 22 Apr 2014 14:07:45 +0000 (16:07 +0200)]
Merge Org 8.2.6-1.

The last merge was from 8.2.5c, but many important bugs got
fixed between 8.2.5c and 8.2.6-1.

10 years ago* automated/tramp-tests.el (tramp--test-check-files): Remove traces.
Michael Albinus [Tue, 22 Apr 2014 10:52:08 +0000 (12:52 +0200)]
* automated/tramp-tests.el (tramp--test-check-files): Remove traces.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Michael Albinus [Tue, 22 Apr 2014 10:43:01 +0000 (12:43 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Remove test messages.
(tramp-do-copy-or-rename-file-out-of-band): Do not quote `source'
and `target' twice.

10 years ago* automated/tramp-tests.el (tramp-test30-special-characters):
Michael Albinus [Tue, 22 Apr 2014 07:50:58 +0000 (09:50 +0200)]
* automated/tramp-tests.el (tramp-test30-special-characters):
Remove test for backslash.

10 years agoCorrectly macroexpand top-level forms during eager macroexpand
Daniel Colascione [Tue, 22 Apr 2014 07:04:34 +0000 (00:04 -0700)]
Correctly macroexpand top-level forms during eager macroexpand

* lisp/emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile):
Improve docstrings.

* lisp/emacs-lisp/macroexp.el (internal-macroexpand-for-load): Add
`full-p' parameter; when nil, call `macroexpand' instead of
`macroexpand-all'.

* src/lread.c (readevalloop_eager_expand_eval): New function
that can recurse into toplevel forms.
(readevalloop): Call it.
* src/lisp.h: Declare Qprogn.
* src/callint.c (Qprogn): No longer static.

* test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
Add compile flag.
(test-byte-comp-macro-expansion)
(test-byte-comp-macro-expansion-eval-and-compile)
(test-byte-comp-macro-expansion-eval-when-compile)
(test-byte-comp-macro-expand-lexical-override): Use it.
(test-eager-load-macro-expansion)
(test-eager-load-macro-expansion-eval-and-compile)
(test-eager-load-macro-expansion-eval-when-compile)
(test-eager-load-macro-expand-lexical-override): New tests.

10 years agoMinor bytecomp.el fixes
Daniel Colascione [Tue, 22 Apr 2014 06:51:30 +0000 (23:51 -0700)]
Minor bytecomp.el fixes

* lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment):
Use lambda function values, not quoted lambdas.
(byte-compile-recurse-toplevel): Remove extraneous &optional.

10 years agoFix cl-lib-struct-accessors test again.
Daniel Colascione [Tue, 22 Apr 2014 06:45:41 +0000 (23:45 -0700)]
Fix cl-lib-struct-accessors test again.

* test/automated/cl-lib.el (cl-lib-struct-accessors): Fix test to
account for removal of `cl-struct-set-slot-value'. Also, move
the defstruct to top level.

10 years agoOptimize cl-struct-slot-value; fix test
Daniel Colascione [Tue, 22 Apr 2014 03:51:12 +0000 (20:51 -0700)]
Optimize cl-struct-slot-value; fix test

2014-04-22  Daniel Colascione  <dancol@dancol.org>

* emacs-lisp/cl-macs.el
(cl-struct-sequence-type,cl-struct-slot-info): Declare pure.
(cl-struct-slot-value): Conditionally use aref or nth so that the
compiler produces optimal code.

2014-04-22  Daniel Colascione  <dancol@dancol.org>

* automated/cl-lib.el (cl-lib-struct-accessors): Fix test to
account for removal of `cl-struct-set-slot-value'.

10 years ago* lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure.
Stefan Monnier [Tue, 22 Apr 2014 03:18:15 +0000 (23:18 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure.
(cl--set-elt): Don't proclaim as inline.
(cl-struct-slot-value): Remove explicit gv-setter and compiler-macro.
Define as inlinable instead.
(cl-struct-set-slot-value): Remove.
* doc/misc/cl.texi (Structures): Remove cl-struct-set-slot-value.
* lisp/emacs-lisp/cl-lib.el (cl--set-elt): Remove.
* lisp/emacs-lisp/cl-seq.el (cl-replace, cl-substitute, cl-nsubstitute):
Use setf instead.

10 years ago* lisp/dframe.el (dframe-get-focus): Remove `hook' argument.
Stefan Monnier [Mon, 21 Apr 2014 21:43:17 +0000 (17:43 -0400)]
* lisp/dframe.el (dframe-get-focus): Remove `hook' argument.
* lisp/speedbar.el (speedbar-get-focus): Run the "hook" afterwards instead.

Fixes: debbugs:17311

10 years ago* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.
Stefan Monnier [Mon, 21 Apr 2014 21:18:12 +0000 (17:18 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Set
Michael Albinus [Mon, 21 Apr 2014 21:04:25 +0000 (23:04 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Set
"IFS=" when using read builtin, in order to preserve spaces in
the file name.  Add test messages for hunting a bug on hydra.
(tramp-get-ls-command): Undo using "-b" argument.  It doesn't help.

10 years ago* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Stefan Monnier [Mon, 21 Apr 2014 20:31:22 +0000 (16:31 -0400)]
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Don't prettify a word within a symbol.

10 years agoRemove excess parameters on cl--const-expr-val
Daniel Colascione [Mon, 21 Apr 2014 18:00:19 +0000 (11:00 -0700)]
Remove excess parameters on cl--const-expr-val

2014-04-21  Daniel Colascione  <dancol@dancol.org>

* emacs-lisp/cl-macs.el (cl--const-expr-val): We didn't need the
last two parameters after all.
(cl--expr-contains,cl--compiler-macro-typep,cl--compiler-macro-member)
(cl--compiler-macro-assoc,cl-struct-slot-value)
(cl-struct-set-slot-value): Stop using them.

10 years agoFix freezing with scroll bars of GTK3 Toolkit.
Jarek Czekalski [Mon, 21 Apr 2014 15:55:28 +0000 (11:55 -0400)]
Fix freezing with scroll bars of GTK3 Toolkit.
* src/keyboard.c (unblock_input): Add comment.
* src/xgselect.c (xg_select): Prevent Glib main loop recursion.

Fixes: debbugs:15801

10 years agoMinor fixes to the docs.
Eli Zaretskii [Mon, 21 Apr 2014 14:50:19 +0000 (17:50 +0300)]
Minor fixes to the docs.

 doc/emacs/buffers.texi (Uniquify): Clarify the default uniquification.
 doc/emacs/indent.texi (Tab Stops): Improve wording.
 doc/emacs/cmdargs.texi (General Variables): Improve docs of
 EMACSLOADPATH.  Index all the environment variables.
 (Misc Variables): Index all the environment variables.

 doc/lispref/text.texi (Registers): Document register-read-with-preview.
 doc/lispref/internals.texi (Building Emacs): Improve indexing.

10 years ago* lisp/image-mode.el (image-mode-window-put): Don't assume there's a `t'
Stefan Monnier [Mon, 21 Apr 2014 14:34:49 +0000 (10:34 -0400)]
* lisp/image-mode.el (image-mode-window-put): Don't assume there's a `t'
entry in image-mode-winprops-alist.

10 years agodoc/emacs/ChangeLog: Typo fix.
Eli Zaretskii [Mon, 21 Apr 2014 14:01:56 +0000 (17:01 +0300)]
doc/emacs/ChangeLog: Typo fix.

10 years agoMention that overlay priority doesn't have to be nil or an integer.
Eli Zaretskii [Mon, 21 Apr 2014 13:46:25 +0000 (16:46 +0300)]
Mention that overlay priority doesn't have to be nil or an integer.

Fixes: debbugs:17234

10 years agoIgnore a.out
Daniel Colascione [Mon, 21 Apr 2014 09:38:44 +0000 (02:38 -0700)]
Ignore a.out

10 years agoCorrectly treat progn contents as toplevel forms when byte compiling
Daniel Colascione [Mon, 21 Apr 2014 09:34:21 +0000 (02:34 -0700)]
Correctly treat progn contents as toplevel forms when byte compiling

10 years agoFix redefinition warning in MinGW64 build.
Eli Zaretskii [Mon, 21 Apr 2014 06:37:21 +0000 (09:37 +0300)]
Fix redefinition warning in MinGW64 build.

 nt/inc/ms-w32.h (lseek): Define only if not already a macro.
 Suggested by Fabrice Popineau <fabrice.popineau@gmail.com>.

10 years agoFix cl-the test
Daniel Colascione [Mon, 21 Apr 2014 01:28:55 +0000 (18:28 -0700)]
Fix cl-the test

10 years agoFix cl-loop destructuring under `with' clause
Daniel Colascione [Mon, 21 Apr 2014 01:03:39 +0000 (18:03 -0700)]
Fix cl-loop destructuring under `with' clause

10 years agoSpelling fixes.
Paul Eggert [Mon, 21 Apr 2014 00:31:59 +0000 (17:31 -0700)]
Spelling fixes.

10 years agoProvide function for asking vc about project root
Daniel Colascione [Sun, 20 Apr 2014 23:24:04 +0000 (16:24 -0700)]
Provide function for asking vc about project root

10 years agolisp/gnus/gnus-icalendar.el: Silence the byte compiler
Katsumi Yamaoka [Sun, 20 Apr 2014 22:35:24 +0000 (22:35 +0000)]
lisp/gnus/gnus-icalendar.el: Silence the byte compiler

10 years ago* gnus-icalendar.el (gnus-icalendar-event->org-entry)
Jan Tatarik [Sun, 20 Apr 2014 22:10:33 +0000 (22:10 +0000)]
* gnus-icalendar.el (gnus-icalendar-event->org-entry)
(gnus-icalendar--update-org-event): put event timestamp in
the org entry body instead of the drawer.
(gnus-icalendar-event--get-attendee-names): list of participants should
contain even attendees without common name attribute.
(gnus-icalendar--update-org-event): don't generate duplicates of empty
property tags in org drawers.

10 years ago* automated/tramp-tests.el (tramp-test19-directory-files-and-attributes)
Michael Albinus [Sun, 20 Apr 2014 21:39:43 +0000 (23:39 +0200)]
* automated/tramp-tests.el (tramp-test19-directory-files-and-attributes)
(tramp-test22-file-times): Check for `file-attributes' equality
only if there is a usable timestamp.
(tramp--test-check-files): Do not use `copy-sequence'.

10 years ago* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.
Michael Albinus [Sun, 20 Apr 2014 21:35:55 +0000 (23:35 +0200)]
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.

10 years agoImprove NEWS entry for dired-hide-details-mode.
Eli Zaretskii [Sun, 20 Apr 2014 14:50:13 +0000 (17:50 +0300)]
Improve NEWS entry for dired-hide-details-mode.

10 years agounbreak the build
Daniel Colascione [Sun, 20 Apr 2014 14:46:13 +0000 (07:46 -0700)]
unbreak the build

10 years agoFix commit date of an entry in lisp/ChangeLog.16.
Eli Zaretskii [Sun, 20 Apr 2014 14:45:19 +0000 (17:45 +0300)]
Fix commit date of an entry in lisp/ChangeLog.16.