]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years agomanual upstream merge
Joakim Verona [Fri, 27 Jun 2014 10:10:03 +0000 (12:10 +0200)]
manual upstream merge

10 years agoReplace BOOTSTRAPEMACS with an order-only dependence on bootstrap-emacs
Glenn Morris [Fri, 27 Jun 2014 00:41:23 +0000 (20:41 -0400)]
Replace BOOTSTRAPEMACS with an order-only dependence on bootstrap-emacs

* Makefile.in (src): No more need to pass BOOTSTRAPEMACS.

* src/Makefile.in (.el.elc): Replace suffix rule with pattern rule.
(%.elc): New pattern rule, with order-only prerequisite.
($(lisp)): No more need to depend on BOOTSTRAPEMACS.
($(lispsource)/loaddefs.el): Use an order-only prerequisite
in place of BOOTSTRAPEMACS.

Fixes: debbugs:2151
10 years ago* make-dist: Exclude test/automated/*.log.
Glenn Morris [Fri, 27 Jun 2014 00:36:06 +0000 (20:36 -0400)]
* make-dist: Exclude test/automated/*.log.

10 years ago* lisp/Makefile.in (update-authors): Update for moved authors.el.
Glenn Morris [Thu, 26 Jun 2014 21:51:25 +0000 (17:51 -0400)]
* lisp/Makefile.in (update-authors): Update for moved authors.el.

10 years ago* skeleton.el (skeleton-end-hook): Default to nil and move the
Leo Liu [Thu, 26 Jun 2014 14:21:46 +0000 (22:21 +0800)]
* skeleton.el (skeleton-end-hook): Default to nil and move the
work to skeleton-insert.

Fixes: debbugs:17850
10 years ago* test/automated/package-x-test.el: Do not mess with load-path.
Glenn Morris [Thu, 26 Jun 2014 07:34:09 +0000 (00:34 -0700)]
* test/automated/package-x-test.el: Do not mess with load-path.

10 years ago* test/automated/Makefile.in (%.log): If error, dump log to stdout.
Glenn Morris [Thu, 26 Jun 2014 07:32:16 +0000 (00:32 -0700)]
* test/automated/Makefile.in (%.log): If error, dump log to stdout.
This is mainly so we can see what is going on on hydra...

10 years ago* src/fns.c (Fcompare_strings): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
Dmitry Antipov [Thu, 26 Jun 2014 07:13:13 +0000 (11:13 +0400)]
* src/fns.c (Fcompare_strings): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
* lisp/calc/calc-alg.el (math-beforep):
* lisp/progmodes/cc-guess.el (c-guess-view-reorder-offsets-alist-in-style):
Simplify because string-lessp can accept symbols as args.

10 years agopackage.el: Don't signal "no public key" error if allow-unsigned
Daiki Ueno [Thu, 26 Jun 2014 07:10:22 +0000 (16:10 +0900)]
package.el: Don't signal "no public key" error if allow-unsigned

* emacs-lisp/package.el (package--check-signature): If
package-check-signature is allow-unsigned, don't signal error when
we can't verify signature because of missing public key
(bug#17625).

10 years agoMerge from emacs-24; up to 2014-06-11T19:33:14Z!rgm@gnu.org
Glenn Morris [Thu, 26 Jun 2014 06:55:15 +0000 (23:55 -0700)]
Merge from emacs-24; up to 2014-06-11T19:33:14Z!rgm@gnu.org

10 years agoRegenerate etc/AUTHORS
Glenn Morris [Thu, 26 Jun 2014 06:51:30 +0000 (23:51 -0700)]
Regenerate etc/AUTHORS

10 years agoBump version to 24.3.92
Glenn Morris [Thu, 26 Jun 2014 06:48:25 +0000 (23:48 -0700)]
Bump version to 24.3.92

10 years ago* find-func.el (find-function-C-source-directory): Use file-accessible-directory-p
Glenn Morris [Thu, 26 Jun 2014 06:45:10 +0000 (23:45 -0700)]
* find-func.el (find-function-C-source-directory): Use file-accessible-directory-p

10 years agoRemove some function declarations, no longer needed or correct
Glenn Morris [Thu, 26 Jun 2014 06:43:39 +0000 (23:43 -0700)]
Remove some function declarations, no longer needed or correct

* lisp/emacs-lisp/cl-macs.el (help-add-fundoc-usage):
* lisp/gnus/mm-util.el (help-function-arglist):
Remove outdated declarations.

10 years agops-samp.el: Make it slightly less awful
Glenn Morris [Thu, 26 Jun 2014 06:35:38 +0000 (23:35 -0700)]
ps-samp.el: Make it slightly less awful

* lisp/ps-samp.el (ps-rmail-mode-hook, ps-gnus-article-prepare-hook)
(ps-vm-mode-hook, ps-gnus-summary-setup, ps-info-mode-hook):
Use [print] key.  Only set local values.
(ps-article-subject, ps-article-author): Use standard functions
like mail-fetch-field.
(ps-info-file, ps-info-node): Use match-string.
(ps-jts-ps-setup, ps-jack-setup): Remove, merging into...
(ps-samp-ps-setup): ... new function.

10 years ago* lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file): Optimize
Glenn Morris [Thu, 26 Jun 2014 06:28:04 +0000 (23:28 -0700)]
* lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file): Optimize
away code unneeded on any modern Emacs.

10 years agoMove lisp/emacs-lisp/authors.el to admin/
Glenn Morris [Thu, 26 Jun 2014 06:24:56 +0000 (23:24 -0700)]
Move lisp/emacs-lisp/authors.el to admin/
It is not useful for anything other than maintaining Emacs.

10 years ago* etc/NEWS: Maybe ert-summarize-tests-batch-and-exit worth mentioning.
Glenn Morris [Thu, 26 Jun 2014 06:21:55 +0000 (23:21 -0700)]
* etc/NEWS: Maybe ert-summarize-tests-batch-and-exit worth mentioning.

10 years agolib-src/Makefile trivial simplifications
Glenn Morris [Thu, 26 Jun 2014 06:18:53 +0000 (23:18 -0700)]
lib-src/Makefile trivial simplifications

* lib-src/Makefile.in (blessmail): Depend on lisp/mail/blessmail.el.
Use $<, $@.
(regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
(profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
(pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT}, ntlib.o)
(hexl${EXEEXT}, update-game-score${EXEEXT}, emacsclient.res): Use $<.
(ctags${EXEEXT}): Add $srcdir to dependency rather than using VPATH.

10 years agoDisable byte-compilation in two test/automated files
Glenn Morris [Thu, 26 Jun 2014 06:02:52 +0000 (23:02 -0700)]
Disable byte-compilation in two test/automated files

* test/automated/eieio-tests.el (no-byte-compile): Set it.

* test/automated/ert-tests.el (no-byte-compile): Set it.

Fixes: debbugs:17851 debbugs:17852
10 years agoHideIfDef mode bug fixes and enhancements. This is #2 of 3 patches based
Luke Lee [Thu, 26 Jun 2014 05:47:33 +0000 (13:47 +0800)]
HideIfDef mode bug fixes and enhancements. This is #2 of 3 patches based
on the completed work posted on http://www.emacswiki.org/emacs/HideIfDef.

- Supporting argumented macro expansion.
- Stringification, tokenization and concatenation of strings and tokens.
- Add functions to find defines and parse argumented macros into a macro
  tree containing macro name, formal parameters and macro body.
- On macro evaluation, macros will be applied with actual parameters and
  then got expanded recursively.
- Merge main trunk changes

* lisp/progmodes/hideif.el (hif-string-to-number): Merge changes from
main trunk.
(hif-simple-token-only, hif-tokenize): Commentted in detail mainly for
performance enhancements.
(hif-parse-if-exp): Rename to `hif-parse-exp'. Enhanced for macro
expansion.
(hif-factor, hif-string-concatenation, intern-safe): Support string
concatenation and argumented macro expansion.
(hif-if-valid-identifier-p, hif-define-operator, hif-flatten)
(hif-expand-token-list, hif-get-argument-list, hif-define-macro)
(hif-delimit, hif-macro-supply-arguments, hif-invoke, hif-canonicalize)
(hif-canonicalize-tokens, hif-looking-at-elif, hif-place-macro-invocation)
(hif-parse-macro-arglist): Mostly new functions for supporting argumented
macro expansion.
(hif-string-concatenation, hif-stringify, hif-token-concat)
(hif-token-stringification, hif-token-concatenation): Stringify and
concatentation.
(hif-find-next-relevant): Fix comments
(hif-ifdef-to-endif, hif-looking-at-elif, hif-hide-line): Bug fix for
some cases involving #elif.
(hif-find-define, hif-add-new-defines): New functions for automatically
scanning of defined symbols.
(hide-ifdef-guts): Fix for auto defined symbol scanning.
(hide-ifdef-undef): Fix behavior to match CPP.

10 years agoSimplify and parallize test/automated Makefile
Glenn Morris [Thu, 26 Jun 2014 05:47:10 +0000 (22:47 -0700)]
Simplify and parallize test/automated Makefile

* Makefile.in (mostlyclean, clean): Maybe clean test/automated.

* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): New.

* test/automated/Makefile.in: Simplify and parallelize.
(XARGS_LIMIT, BYTE_COMPILE_EXTRA_FLAGS)
(setwins, compile-targets, compile-main, compile-clean): Remove.
(GREP_OPTIONS): Unexport.
(.el.elc): Replace with pattern rule.
(%.elc, %.log): New pattern rules.
(ELFILES, LOGFILES): New variables.
(check): Depend on LOGFILES.  Call ert-summarize-tests-batch-and-exit.
(clean, mostlyclean): New rules.
(bootstrap-clean): Simplify.
(bootstrap-clean, distclean): Depend on clean.

* .bzrignore: Ignore test/automated/*.log.

Fixes: debbugs:15991
10 years agoFix last change
Leo Liu [Thu, 26 Jun 2014 04:27:18 +0000 (12:27 +0800)]
Fix last change

10 years agoHideIfDef mode bug fixes and enhancements. This is #2 of 3 patches based
Luke Lee [Thu, 26 Jun 2014 04:18:12 +0000 (12:18 +0800)]
HideIfDef mode bug fixes and enhancements. This is #2 of 3 patches based
on the completed work posted on http://www.emacswiki.org/emacs/HideIfDef.

- Supporting argumented macro expansion.
- Stringification, tokenization and concatenation of strings and tokens.
- Add functions to find defines and parse argumented macros into a macro
  tree containing macro name, formal parameters and macro body.
- On macro evaluation, macros will be applied with actual parameters and
  then got expanded recursively.
- Apply review changes.

* lisp/progmodes/hideif.el (hif-string-to-number): Fix return value bug.
(hif-simple-token-only, hif-tokenize): Commentted in detail mainly for
performance enhancements.
(hif-parse-if-exp): Rename to `hif-parse-exp'. Enhanced for macro
expansion.
(hif-factor, hif-string-concatenation, intern-safe): Support string
concatenation and argumented macro expansion.
(hif-if-valid-identifier-p, hif-define-operator, hif-flatten)
(hif-expand-token-list, hif-get-argument-list, hif-define-macro)
(hif-delimit, hif-macro-supply-arguments, hif-invoke, hif-canonicalize)
(hif-canonicalize-tokens, hif-looking-at-elif, hif-place-macro-invocation)
(hif-parse-macro-arglist): Mostly new functions for supporting argumented
macro expansion.
(hif-string-concatenation, hif-stringify, hif-token-concat)
(hif-token-stringification, hif-token-concatenation): Stringify and
concatentation.
(hif-find-next-relevant): Fix comments
(hif-ifdef-to-endif, hif-looking-at-elif, hif-hide-line): Bug fix for
some cases involving #elif.
(hif-find-define, hif-add-new-defines): New functions for automatically
scanning of defined symbols.
(hide-ifdef-guts): Fix for auto defined symbol scanning.
(hide-ifdef-undef): Fix behavior to match CPP.

10 years ago* lisp/url/url-handlers.el (url-http-parse-response): Remove unused autoload.
Leo Liu [Thu, 26 Jun 2014 04:00:56 +0000 (12:00 +0800)]
* lisp/url/url-handlers.el (url-http-parse-response): Remove unused autoload.
(url-insert-file-contents): Condition on url-http-response-status
for the HTTP/S specific part.

* lisp/url/url-http.el (url-http-end-of-headers): Remove duplicate defvar.

Fixes: debbugs:17549
10 years agoauthors.el: Add some renamed/moved files
Glenn Morris [Thu, 26 Jun 2014 00:36:58 +0000 (20:36 -0400)]
authors.el: Add some renamed/moved files

* lisp/emacs-lisp/authors.el (authors-valid-file-names)
(authors-renamed-files-alist): Additions.

10 years agoChangeLog fixes.
Glenn Morris [Thu, 26 Jun 2014 00:34:54 +0000 (20:34 -0400)]
ChangeLog fixes.
Not sure how M-x authors missed these so far...

10 years agoFix a few packages to work with nil tab-stop-list
Leo Liu [Wed, 25 Jun 2014 23:53:37 +0000 (07:53 +0800)]
Fix a few packages to work with nil tab-stop-list

* indent.el (indent-accumulate-tab-stops): New function.

* textmodes/picture.el (picture-set-tab-stops):
* ruler-mode.el (ruler-mode-mouse-add-tab-stop)
(ruler-mode-ruler): Fix to work with nil tab-stop-list.

* progmodes/asm-mode.el (asm-calculate-indentation): Use
indent-next-tab-stop.

10 years agolisp/Makefile: Remove cc-*.el dependencies on non-cc files
Glenn Morris [Wed, 25 Jun 2014 23:51:10 +0000 (19:51 -0400)]
lisp/Makefile: Remove cc-*.el dependencies on non-cc files

* lisp/Makefile.in ($(lisp)/progmodes/cc-defs.elc)
($(lisp)/progmodes/cc-fonts.elc, $(lisp)/progmodes/cc-langs.elc)
($(lisp)/progmodes/cc-vars.elc): Drop hand-written deps on non-cc files.
They are not relevant to the original issue (bug#1004),
and cause unnecessary recompilation (bug#2151).

10 years ago* flymake-tests.el (flymake-tests--current-face): Tweak previous sleep change.
Glenn Morris [Wed, 25 Jun 2014 22:59:37 +0000 (18:59 -0400)]
* flymake-tests.el (flymake-tests--current-face): Tweak previous sleep change.
Using the time-honored principle of "if it doesn't when you do X,
do it again and see what happens".

10 years ago* test/automated/package-test.el (package-test-update-listing)
Stefan Monnier [Wed, 25 Jun 2014 21:59:28 +0000 (17:59 -0400)]
* test/automated/package-test.el (package-test-update-listing)
(package-test-update-archives, package-test-describe-package):
Adjust tests according to new package-list-unsigned.

10 years agoChangeLog fix
Glenn Morris [Wed, 25 Jun 2014 20:48:41 +0000 (16:48 -0400)]
ChangeLog fix

10 years ago* src/puresize.h (BASE_PURESIZE): Add 1%, for safety.
Glenn Morris [Wed, 25 Jun 2014 20:26:01 +0000 (16:26 -0400)]
* src/puresize.h (BASE_PURESIZE): Add 1%, for safety.

10 years ago* src/puresize.h (BASE_PURESIZE): Bump by another 1K.
Glenn Morris [Wed, 25 Jun 2014 19:18:49 +0000 (15:18 -0400)]
* src/puresize.h (BASE_PURESIZE): Bump by another 1K.

Fixes: debbugs:17846
10 years agoTry to fix some flymake-tests weirdness
Glenn Morris [Wed, 25 Jun 2014 19:12:14 +0000 (15:12 -0400)]
Try to fix some flymake-tests weirdness

* test/automated/flymake-tests.el (flymake-tests--current-face):
Sleep for longer.  Avoid querying.

10 years ago* lisp/play/landmark.el: Use lexical-binding and avoid `intangible'.
Stefan Monnier [Wed, 25 Jun 2014 18:11:45 +0000 (14:11 -0400)]
* lisp/play/landmark.el: Use lexical-binding and avoid `intangible'.
(landmark--last-pos): New var.
(landmark--intangible-chars): New const.
(landmark--intangible): New function.
(landmark-mode, landmark-move): Use it.
(landmark-mode): Remove properties.
(landmark-plot-square, landmark-point-square, landmark-goto-xy)
(landmark-cross-qtuple):
Don't worry about `intangible' any more.
(landmark-click, landmark-point-y): Same; and don't assume point-min==1.
(landmark-init-display): Don't set `intangible' and `point-entered'.
(square): Remove.  Inline it instead.
(landmark--distance): Rename from `distance'.
(landmark-calc-distance-of-robot-from): Rename from
calc-distance-of-robot-from.
(landmark-calc-smell-internal): Rename from calc-smell-internal.

10 years ago* lisp/emacs-lisp/package.el (package-list-unsigned): New var.
Stefan Monnier [Wed, 25 Jun 2014 17:20:08 +0000 (13:20 -0400)]
* lisp/emacs-lisp/package.el (package-list-unsigned): New var.
(package-desc-status): Obey it.

Fixes: debbugs:17625
10 years agoFix ChangeLog entry.
Dmitry Antipov [Wed, 25 Jun 2014 12:53:12 +0000 (16:53 +0400)]
Fix ChangeLog entry.

10 years agoConsistently use validate_subarray to verify substring.
Dmitry Antipov [Wed, 25 Jun 2014 12:11:08 +0000 (16:11 +0400)]
Consistently use validate_subarray to verify substring.
* fns.c (validate_substring): Not static any more.  Adjust to
use ptrdiff_t, not EMACS_INT, becase string and vector limits
can't exceed ptrdiff_t even if EMACS_INT is wider.
* lisp.h (validate_subarray): Add prototype.
* coding.c (Fundecodable_char_position):
* composite.c (Fcomposition_get_gstring, Fcompose_string_internal):
Use validate_subarray.  Adjust comment to mention substring.

10 years ago* calendar/todo-mode.el: Fix two bugs.
Stephen Berman [Wed, 25 Jun 2014 12:06:00 +0000 (14:06 +0200)]
* calendar/todo-mode.el: Fix two bugs.
(todo-insert-item--basic): If user cancels item insertion to
another category before setting priority, show original category
whether it is in the same or a different file.
(todo-set-item-priority): After selecting category, instead of
moving point to top, which extends an active region, restore it.

10 years agoDo not allow out-of-range character position in Fcompare_strings.
Dmitry Antipov [Wed, 25 Jun 2014 10:36:51 +0000 (14:36 +0400)]
Do not allow out-of-range character position in Fcompare_strings.
* src/fns.c (validate_subarray): Add prototype.
(Fcompare_substring): Use validate_subarray to check ranges.
Adjust comment to mention that the semantics was changed.  Also see
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html.
* lisp/files.el (dir-locals-find-file, file-relative-name):
* lisp/info.el (Info-complete-menu-item):
* lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p
to compare-strings to avoid out-of-range errors.
* lisp/subr.el (string-prefix-p): Adjust to match strict range
checking in compare-strings.
* test/automated/fns-tests.el (fns-tests-compare-string): New test.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 25 Jun 2014 10:17:41 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

10 years agonextstep: trivial Makefile simplification
Glenn Morris [Wed, 25 Jun 2014 06:39:03 +0000 (23:39 -0700)]
nextstep: trivial Makefile simplification

* nextstep/Makefile.in (${ns_appbindir}): New.
(${ns_appbindir}/Emacs): Use order-only prereq to create output dir.

10 years agoadmin/grammars: Use pattern rules in Makefile
Glenn Morris [Wed, 25 Jun 2014 06:23:04 +0000 (23:23 -0700)]
admin/grammars: Use pattern rules in Makefile

* admin/grammars/Makefile.in (${bovinedir}/c-by.el, ${bovinedir}/make-by.el):
(${wisentdir}/js-wy.el, ${wisentdir}/python-wy.el): Replace with pattern rules.
(${bovinedir}/scm-by.el, ${wisentdir}/javat-wy.el)
(${cedetdir}/srecode/srt-wy.el): Use $<.

10 years agoadmin/unidata: small Makefile simplifications
Glenn Morris [Wed, 25 Jun 2014 06:03:13 +0000 (23:03 -0700)]
admin/unidata: small Makefile simplifications

* admin/unidata/Makefile.in (${top_srcdir}/src/macuvs.h): Make and load .elc.
(.el.elc): Replace with pattern rule.
(%.elc): New.
(unidata.txt): Use $<.
(compile): Remove.
(${DSTDIR}/charprop.el): Use order-only prereqs rather than a sub-make.

10 years ago* admin/unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo.
Glenn Morris [Wed, 25 Jun 2014 05:57:51 +0000 (22:57 -0700)]
* admin/unidata/uvs.el (uvs-print-table-ivd): Fix free variable typo.

10 years agoChangeLog fix
Glenn Morris [Wed, 25 Jun 2014 01:29:07 +0000 (21:29 -0400)]
ChangeLog fix

10 years ago* lisp/help-fns.el (describe-function-1): Check file-name is a string before
Stefan Monnier [Wed, 25 Jun 2014 00:48:10 +0000 (20:48 -0400)]
* lisp/help-fns.el (describe-function-1): Check file-name is a string before
calling help-fns--autoloaded-p.

Fixes: debbugs:17564
10 years ago* lisp/desktop.el (desktop-auto-save-enable)
Juri Linkov [Tue, 24 Jun 2014 23:23:41 +0000 (02:23 +0300)]
* lisp/desktop.el (desktop-auto-save-enable)
(desktop-auto-save-disable): New functions.
(desktop-save-mode, desktop-auto-save-timeout): Use them.
(desktop-read): Disable the autosave before loading the desktop,
and enable afterwards.

Fixes: debbugs:17351
10 years agoFix some indentation problem with \; and pipes.
Stefan Monnier [Tue, 24 Jun 2014 20:16:10 +0000 (16:16 -0400)]
Fix some indentation problem with \; and pipes.
* lisp/progmodes/sh-script.el (sh-mode-syntax-table): Set syntax of ;|&.
(sh-smie--default-forward-token, sh-smie--default-backward-token):
New functions.
(sh-smie-sh-forward-token, sh-smie-sh-backward-token)
(sh-smie-rc-forward-token, sh-smie-rc-backward-token): Use them.
(sh-smie-sh-rules): Fix indentation of a pipe at BOL.

Fixes: debbugs:17842
10 years agoMake search in reftex-using-biblatex-p non-greedy.
Leonard Randall [Tue, 24 Jun 2014 19:39:22 +0000 (21:39 +0200)]
Make search in reftex-using-biblatex-p non-greedy.

* textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
for comment lines non-greedy and stopping at newlines to fix stack
overflows with large files.

10 years agoadmin/notes/unicode: Some notes about what to do when a new Unicode version is imported.
Eli Zaretskii [Tue, 24 Jun 2014 16:58:06 +0000 (19:58 +0300)]
admin/notes/unicode: Some notes about what to do when a new Unicode version is imported.

10 years agoBe more consistent about the 'Qfoo' naming convention.
Paul Eggert [Tue, 24 Jun 2014 08:10:48 +0000 (01:10 -0700)]
Be more consistent about the 'Qfoo' naming convention.

* image.c (Fimagemagick_types):
* lisp.h (lisp_h_CHECK_TYPE, CHECK_TYPE, CHECK_ARRAY):
* process.c (Fmake_network_process):
Rename C local identifier 'Qfoo to avoid giving the false
impression that it stands for the symbol 'foo'.

10 years agolisp/calculator.el (calculator-last-input): drop 'ascii-character property
Eli Barzilay [Tue, 24 Jun 2014 07:55:36 +0000 (03:55 -0400)]
lisp/calculator.el (calculator-last-input): drop 'ascii-character property
lookup.
etc/NEWS: calculator.el user-visible changes.

10 years ago* automated/tramp-tests.el (tramp-test26-process-file): Extend test
Michael Albinus [Tue, 24 Jun 2014 07:48:19 +0000 (09:48 +0200)]
* automated/tramp-tests.el (tramp-test26-process-file): Extend test
according to Bug#17815.

10 years agoMerge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu
Glenn Morris [Tue, 24 Jun 2014 07:15:26 +0000 (00:15 -0700)]
Merge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu

10 years agoBackport Unicode 7 update of character- and script-related databases
Eli Zaretskii [Tue, 24 Jun 2014 07:10:47 +0000 (00:10 -0700)]
Backport Unicode 7 update of character- and script-related databases

* lisp/international/characters.el (char-script-table):
Update for scripts added and codepoint ranges changed in Unicode 7.0.

* lisp/international/fontset.el (script-representative-chars):
Add representative characters for scripts added in Unicode 7.0.
(otf-script-alist): Synchronize with the latest registry of OTF script tags.

10 years agoBackport unicode 7.0 data files update from trunk
Glenn Morris [Tue, 24 Jun 2014 07:07:03 +0000 (00:07 -0700)]
Backport unicode 7.0 data files update from trunk

* admin/unidata/BidiMirroring.txt: Update to 7.0.0 (only comment changes).

* admin/unidata/UnicodeData.txt: Update to 7.0.0.

* admin/unidata/IVD_Sequences.txt: Update to 2014-05-16 version.

10 years ago* align.el (align-adjust-col-for-rule): Unbreak due to defaulting
Leo Liu [Mon, 23 Jun 2014 23:09:20 +0000 (07:09 +0800)]
* align.el (align-adjust-col-for-rule): Unbreak due to defaulting
tab-stop-list to nil.

* indent.el (indent-next-tab-stop): Rename from indent--next-tab-stop.
(indent-rigidly-left-to-tab-stop)
(indent-rigidly-right-to-tab-stop, tab-to-tab-stop)
(move-to-tab-stop): Change callers.

Fixes: debbugs:16381
10 years agoOptionally, undo several consequential deletion in one step.
Sam Steingold [Mon, 23 Jun 2014 20:23:33 +0000 (16:23 -0400)]
Optionally, undo several consequential deletion in one step.

* lisp/simple.el (kill-append): Remove undo boundary depending on ...
(kill-append-merge-undo): New user option.

10 years ago* lisp/simple.el (handle-shift-selection, exchange-point-and-mark)
Stefan Monnier [Mon, 23 Jun 2014 15:32:24 +0000 (11:32 -0400)]
* lisp/simple.el (handle-shift-selection, exchange-point-and-mark)
(activate-mark): Set transient-mark-mode buffer-locally.
(transient-mark-mode): Use&set the global value.
* lisp/mouse.el (mouse-set-region-1, mouse-drag-track): Idem.
* lisp/org/org-compat.el (activate-mark): Idem.
* lisp/emulation/edt.el (edt-emulation-off): Save&restore the global
transient-mark-mode setting.
* lisp/obsolete/pc-select.el (pc-selection-mode): Use the
transient-mark-mode function.

Fixes: debbugs:6316
10 years agoUpdate various character- and script-related databases per Unicode 7.0.
Eli Zaretskii [Mon, 23 Jun 2014 15:27:16 +0000 (18:27 +0300)]
Update various character- and script-related databases per Unicode 7.0.

 lisp/international/fontset.el (script-representative-chars): Add
 representative characters for scripts added in Unicode 7.0.
 (otf-script-alist): Synchronize with the latest registry of OTF
 script tags.
 lisp/international/characters.el (char-script-table): Update for
 scripts added and codepoint ranges changed in Unicode 7.0.

10 years agofixes: PREPARE_FACE_FOR_DISPLAY was removed, DEFUN less lenient
Joakim Verona [Mon, 23 Jun 2014 08:04:07 +0000 (10:04 +0200)]
fixes: PREPARE_FACE_FOR_DISPLAY was removed, DEFUN less lenient

10 years agomanual upstream merge
Joakim Verona [Mon, 23 Jun 2014 07:41:17 +0000 (09:41 +0200)]
manual upstream merge

10 years ago* doc/misc/dired-x.texi (Omitting Files in Dired, Omitting Variables): Fix
Leo Liu [Mon, 23 Jun 2014 07:38:07 +0000 (15:38 +0800)]
* doc/misc/dired-x.texi (Omitting Files in Dired, Omitting Variables): Fix
key binding to dired-omit-mode.

Fixes: debbugs:16354
10 years agoMisc small doc/ Makefile cleanup
Glenn Morris [Mon, 23 Jun 2014 06:43:20 +0000 (23:43 -0700)]
Misc small doc/ Makefile cleanup

* emacs/Makefile.in (mkinfodir): Remove.
(.dvi.ps): Replace with pattern rule.
(${buildinfodir}): New rule.
($(buildinfodir)/emacs.info): Use order-only prereq for output dir.  Use $<.
(emacs.dvi, emacs.pdf, emacs.html, emacs-xtra.dvi, emacs-xtra.pdf): Use $<.
(%.ps): New rule.

* lispintro/Makefile.in (mkinfodir): Remove.
(.dvi.ps): Replace with explicit rule.
(${buildinfodir}): New rule.
(${buildinfodir}/eintr.info): Use order-only prereq for output dir.  Use $<.
(emacs-lisp-intro.dvi, emacs-lisp-intro.pdf, emacs-lisp-intro.html): Use $<.
(emacs-lisp-intro.ps): New rule.

* lispref/Makefile.in (mkinfodir): Remove.
(.dvi.ps): Replace with explicit rule.
(html): Declare as PHONY.
(${buildinfodir}): New rule.
($(buildinfodir)/elisp.info): Use order-only prereq for output dir.  Use $<.
(elisp.dvi, elisp.html, elisp.pdf): Use $<.
(elisp.ps): New rule.

10 years agoDisable implicit texi rules in doc/
Glenn Morris [Mon, 23 Jun 2014 06:25:47 +0000 (23:25 -0700)]
Disable implicit texi rules in doc/

* doc/emacs/Makefile.in (%.texi):
* doc/lispintro/Makefile.in (%.texi):
* doc/lispref/Makefile.in (%.texi):
* doc/misc/Makefile.in (%.texi):
Disable implicit rules.

10 years ago* calculator.el (calculator-standard-displayer): Fix bug in use of
Eli Barzilay [Mon, 23 Jun 2014 05:14:23 +0000 (01:14 -0400)]
* calculator.el (calculator-standard-displayer): Fix bug in use of
`calculator-groupize-number'.
(calculator-funcall): Fix broken `cl-flet' use by moving it into the
`eval' code, so it works in v24.3.1 too.
(calculator-last-input): Comment to clarify purpose.

Also add back a ChangeLog blurb for previous commit 2014-06-15T04:52:34Z!eli@barzilay.org.

10 years agoSimplify and cleanup character conversion stuff.
Dmitry Antipov [Mon, 23 Jun 2014 04:11:29 +0000 (08:11 +0400)]
Simplify and cleanup character conversion stuff.
* lisp.h (multibyte_char_to_unibyte, multibyte_char_to_unibyte_safe):
Remove prototypes.
* character.c (multibyte_char_to_unibyte)
(multibyte_char_to_unibyte_safe): Remove; no longer used.
* character.h (make_char): Remove; unused.
(CHAR_TO_BYTE8, CHAR_TO_BYTE_SAFE): Simplify.
(ASCII_BYTE_P): Remove; ASCII_CHAR_P does the same thing.
* buffer.c, charset.c, charset.h, cmds.c, coding.c, editfns.c:
* fileio.c, indent.c, insdel.c, keyboard.c, lread.c, print.c:
* search.c, term.c, xdisp.c, xterm.c: Related users changed.

10 years ago"the the", "from from" and "and and".
Mario Lang [Sun, 22 Jun 2014 23:12:17 +0000 (01:12 +0200)]
"the the", "from from" and "and and".

10 years ago* html2text.el (html2text-get-attr): Rewrite to handle spaces in quoted
Andreas Schwab [Sun, 22 Jun 2014 21:14:43 +0000 (23:14 +0200)]
* html2text.el (html2text-get-attr): Rewrite to handle spaces in quoted
attribute values.  (Bug#17834)

10 years agoMore tweaks of skeleton documentation wrt \n behavior at bol/eol.
Eli Zaretskii [Sun, 22 Jun 2014 16:59:30 +0000 (19:59 +0300)]
More tweaks of skeleton documentation wrt \n behavior at bol/eol.

 lisp/skeleton.el (skeleton-insert): Yet another fix of the doc string
 wrt behavior of \n as the first/last element of a skeleton.

 doc/misc/autotype.texi (Skeleton Language): Document the \n feature
 better.

10 years ago* net/tramp-adb.el (tramp-adb-handle-process-file):
Michael Albinus [Sun, 22 Jun 2014 09:20:38 +0000 (11:20 +0200)]
* net/tramp-adb.el (tramp-adb-handle-process-file):
* net/tramp-sh.el (tramp-sh-handle-process-file):
* net/tramp-smb.el (tramp-smb-handle-process-file): Do not raise
the output buffer when DISPLAY is non-nil.

Fixes: debbugs:17815
10 years ago* lisp/electric.el (electric-layout-post-self-insert-function):
Dmitry Antipov [Sun, 22 Jun 2014 05:43:58 +0000 (09:43 +0400)]
* lisp/electric.el (electric-layout-post-self-insert-function):
* lisp/emacs-lisp/ert.el (ert--insert-infos):
* lisp/obsolete/vi.el (vi-set-mark):
* lisp/term.el (term-handle-scroll):
* lisp/textmodes/bibtex.el (bibtex-fill-field, bibtex-fill-entry):
* lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done):
* lisp/org/org-mouse.el (org-mouse-do-remotely):
* lisp/wid-edit.el (widget-editable-list-value-create): Prefer
point-marker to copy-marker of point.
* lisp/ob-core.el (org-babel-insert-result): Prefer point-min-marker
and point-max-marker.

10 years ago* xmenu.c (mouse_position_for_popup):
Dmitry Antipov [Sun, 22 Jun 2014 05:00:14 +0000 (09:00 +0400)]
* xmenu.c (mouse_position_for_popup):
* xselect.c (mouse_position_for_drop): Do not duplicate ...
* xfns.c (x_relative_mouse_position): ... and prefer this function.
* menu.c (Fx_popup_menu):
* xselect.c (x_handle_dnd_message): Adjust users.
* menu.h (mouse_position_for_popup): Remove prototype.
* xterm.h (x_relative_mouse_position): Add prototype.
* xterm.c (x_find_topmost_parent): Break from the loop and do not
call XFree if XQueryTree returns zero.

10 years agoUpdate admin/unidata data files to latest versions
Glenn Morris [Sat, 21 Jun 2014 22:06:04 +0000 (15:06 -0700)]
Update admin/unidata data files to latest versions

* admin/unidata/BidiMirroring.txt: Update to 7.0.0 (only comment changes).

* admin/unidata/UnicodeData.txt: Update to 7.0.0.

* admin/unidata/IVD_Sequences.txt: Update to 2014-05-16 version.

* admin/unidata/README: Update for above changes.

10 years ago* landmark.el: Commentary fixes.
Glenn Morris [Sat, 21 Jun 2014 21:36:44 +0000 (14:36 -0700)]
* landmark.el: Commentary fixes.

10 years agoFix landmark, broken since Emacs 23.1
Glenn Morris [Sat, 21 Jun 2014 21:21:46 +0000 (14:21 -0700)]
Fix landmark, broken since Emacs 23.1

* play/landmark.el (landmark-move-down, landmark-move-up):
Fix 2007-10-20 change - preserve horizontal position.

10 years agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Sat, 21 Jun 2014 19:46:57 +0000 (12:46 -0700)]
ChangeLog fix (no need to merge to trunk)

10 years agoMerge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.ca
Glenn Morris [Sat, 21 Jun 2014 19:45:59 +0000 (12:45 -0700)]
Merge from emacs-24; up to 2014-06-06T02:22:40Z!monnier@iro.umontreal.ca

10 years agodoc/misc/autotype.texi (Skeleton Language): Fix last change.
Eli Zaretskii [Sat, 21 Jun 2014 15:08:18 +0000 (18:08 +0300)]
doc/misc/autotype.texi (Skeleton Language): Fix last change.

10 years agoFix completion retrieval parsing.
Fabián Ezequiel Gallina [Sat, 21 Jun 2014 14:14:54 +0000 (11:14 -0300)]
Fix completion retrieval parsing.
* progmodes/python.el (python-mode):
(python-util-strip-string): New function.
(python-shell-completion-get-completions): Use it.

* automated/python-tests.el (python-util-strip-string-1): New test.

Fixes: debbugs:17209
10 years agolisp/skeleton.el (skeleton-insert): Fix last change.
Eli Zaretskii [Sat, 21 Jun 2014 13:41:44 +0000 (16:41 +0300)]
lisp/skeleton.el (skeleton-insert): Fix last change.

10 years agosrc/dispextern.h: Fix commentary to it's hpos member.
Eli Zaretskii [Sat, 21 Jun 2014 12:34:02 +0000 (15:34 +0300)]
src/dispextern.h: Fix commentary to it's hpos member.

10 years agoFix bug #17823 with vertical-motion in lines with line-prefix.
Eli Zaretskii [Sat, 21 Jun 2014 12:30:02 +0000 (15:30 +0300)]
Fix bug #17823 with vertical-motion in lines with line-prefix.

 src/indent.c (Fvertical_motion): Move to the goal column, if any,
 with a single call to move_it_in_display_line, not in two calls.
 Doing this with two calls causes move_it_in_display_line apply the
 line-prefix handling twice instead of just once.

10 years agoEnhancements for outline integration.
Fabián Ezequiel Gallina [Sat, 21 Jun 2014 11:26:43 +0000 (08:26 -0300)]
Enhancements for outline integration.
* lisp/progmodes/python.el (python-mode): Properly set
outline-heading-end-regexp so that comments after colons for
defuns are supported.

Fixes: debbugs:17796
10 years agoImprove documentation of how vertical-motion interprets columns.
Eli Zaretskii [Sat, 21 Jun 2014 08:17:29 +0000 (11:17 +0300)]
Improve documentation of how vertical-motion interprets columns.

 src/indent.c (Fvertical_motion): Doc fix.

 doc/lispref/positions.texi (Screen Lines): Clarify how columns are counted
 by vertical-motion.

10 years agoImprove documentation of \n in a skeleton.
Eli Zaretskii [Sat, 21 Jun 2014 08:05:39 +0000 (11:05 +0300)]
Improve documentation of \n in a skeleton.

 doc/misc/autotype.texi (Skeleton Language): Document the feature of \n
 when at eol.

10 years agolisp/skeleton.el (skeleton-insert): Doc fix.
Eli Zaretskii [Sat, 21 Jun 2014 08:01:52 +0000 (11:01 +0300)]
lisp/skeleton.el (skeleton-insert): Doc fix.

10 years agoPort to OS X ACLs.
Paul Eggert [Sat, 21 Jun 2014 07:03:41 +0000 (00:03 -0700)]
Port to OS X ACLs.

* fileio.c (Ffile_acl): Port to OS X, where acl_get_file (...,
ACL_TYPE_ACCESS) doesn't work.

Fixes: debbugs:17810
10 years ago* lisp/emacs-lisp/smie.el (smie-config--guess): Fix typo.
Stefan Monnier [Fri, 20 Jun 2014 21:10:40 +0000 (17:10 -0400)]
* lisp/emacs-lisp/smie.el (smie-config--guess): Fix typo.
(smie-config-guess): Use smie-config-local so the rules are obeyed.

Fixes: debbugs:17818
10 years ago* configure.ac: Warn about --enable-link-time-optimization's issues
Paul Eggert [Fri, 20 Jun 2014 19:46:18 +0000 (12:46 -0700)]
* configure.ac: Warn about --enable-link-time-optimization's issues

in --help message.

Fixes: debbugs:17806
10 years ago* lisp/mouse.el (mouse-drag-line): Don't re-add to unread-comment-events,
Stefan Monnier [Fri, 20 Jun 2014 18:35:04 +0000 (14:35 -0400)]
* lisp/mouse.el (mouse-drag-line): Don't re-add to unread-comment-events,
since it's already done inside the loop (bug#17819).

10 years agoIn mouse-drag-line remove inadvertently reintroduced code (Bug#17819).
Martin Rudalics [Fri, 20 Jun 2014 17:24:18 +0000 (19:24 +0200)]
In mouse-drag-line remove inadvertently reintroduced code (Bug#17819).

* mouse.el (mouse-drag-line): Re-remove code initially removed
on 2013-03-09 and inadvertently reintroduced on 2013-11-30
(Bug#17819).

10 years agoDiagnose failures due to colons in directory names.
Paul Eggert [Fri, 20 Jun 2014 16:05:10 +0000 (09:05 -0700)]
Diagnose failures due to colons in directory names.

* Makefile.in (epaths-force): Don't allow ':' in directories whose
names go into a colon-separated path.
* configure.ac: Fail if submake fails.

Fixes: debbugs:17278
10 years ago* lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
Stefan Monnier [Fri, 20 Jun 2014 14:23:30 +0000 (10:23 -0400)]
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
align with the surrounding parent.

Fixes: debbugs:17721
10 years agoFix bug #17801 with extraneous newlines after inserting markup in Texinfo mode.
Eli Zaretskii [Fri, 20 Jun 2014 08:47:10 +0000 (11:47 +0300)]
Fix bug #17801 with extraneous newlines after inserting markup in Texinfo mode.

 lisp/textmodes/texinfo.el (texinfo-mode): Set skeleton-end-newline
 locally to nil.
 (texinfo-insert-block, texinfo-insert-@end)
 (texinfo-insert-@example, texinfo-insert-@quotation): Adjust to
 local setting of skeleton-end-newline by adding an explicit \n to
 the skeletons where appropriate.

10 years agoPort to GCC 4.9.0 with link time optimization.
Paul Eggert [Fri, 20 Jun 2014 06:07:47 +0000 (23:07 -0700)]
Port to GCC 4.9.0 with link time optimization.

* configure.ac (CFLAGS): With link time optimization,
use -ffat-lto-objects if supported; otherwise Emacs won't
build with GCC 4.9.0.

Fixes: debbugs:17806
10 years ago* lisp/emacs-lisp/smie.el (smie--hanging-eolp-function): New var.
Stefan Monnier [Fri, 20 Jun 2014 01:05:40 +0000 (21:05 -0400)]
* lisp/emacs-lisp/smie.el (smie--hanging-eolp-function): New var.
(smie-indent--hanging-p): Use it.
* lisp/progmodes/sh-script.el (sh-set-shell): Set it.

Fixes: debbugs:17621
10 years ago* simple.el (read-quoted-char): Don't let help chars pop up help
Leo Liu [Fri, 20 Jun 2014 00:14:43 +0000 (08:14 +0800)]
* simple.el (read-quoted-char): Don't let help chars pop up help
buffer.

Fixes: debbugs:16617