]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoenable mhtml-mode by default feature/mhtml-mode
Tom Tromey [Thu, 23 Mar 2017 17:34:27 +0000 (11:34 -0600)]
enable mhtml-mode by default

* lisp/files.el (auto-mode-alist): Reference mhtml-mode, not
html-mode.
(magic-fallback-mode-alist): Likewise.
* lisp/net/eww.el (eww-view-source): Use mthml-mode.

7 years agoadd mhtml-mode.el
Tom Tromey [Thu, 23 Mar 2017 17:34:18 +0000 (11:34 -0600)]
add mhtml-mode.el

* etc/NEWS: Update.
* lisp/textmodes/mhtml-mode.el: New file.
* test/manual/indent/html-multi.html: New file.
* test/lisp/textmodes/mhtml-mode-tests.el: New file.
* doc/emacs/text.texi (HTML Mode): Mention mhtml-mode.

7 years agochange sgml-mode to help multi-html mode
Tom Tromey [Thu, 23 Mar 2017 17:33:47 +0000 (11:33 -0600)]
change sgml-mode to help multi-html mode

* lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): New
defconst.
(sgml-syntax-propertize): Use it.
(sgml--find-<>-backward): New function.
(sgml-parse-tag-backward): Use it.

7 years agomake js.el respect prog-first-column
Tom Tromey [Thu, 23 Mar 2017 17:33:22 +0000 (11:33 -0600)]
make js.el respect prog-first-column

* lisp/progmodes/js.el (js--proper-indentation): Call prog-first-column.

7 years agomake smie.el respect prog-first-column
Tom Tromey [Thu, 23 Mar 2017 17:32:59 +0000 (11:32 -0600)]
make smie.el respect prog-first-column

* lisp/emacs-lisp/smie.el (smie-indent-bob): Call prog-first-column.

7 years agochange viper to use derived-mode-p
Tom Tromey [Sun, 19 Mar 2017 16:52:28 +0000 (10:52 -0600)]
change viper to use derived-mode-p

* lisp/subr.el (provided-mode-derived-p): New function.
(derived-mode-p): Use it.
* lisp/emulation/viper.el (viper-mode): Use derived-mode-p.
(this-major-mode-requires-vi-state): Use provided-mode-derived-p.
(set-viper-state-in-major-mode): Use derived-mode-p.

7 years agochange align to use derived-mode-p
Tom Tromey [Sat, 18 Mar 2017 22:06:05 +0000 (23:06 +0100)]
change align to use derived-mode-p

* lisp/align.el (align-region): Use derived-mode-p.

7 years agochange org to use derived-mode-p
Tom Tromey [Sat, 18 Mar 2017 22:03:15 +0000 (23:03 +0100)]
change org to use derived-mode-p

* lisp/org/org-list.el (org-list-insert-radio-list): Use
derived-mode-p.
* lisp/org/org-table.el (orgtbl-setup, orgtbl-toggle-comment): Use
derived-mode-p.

7 years agochange semantic to use derived-mode-p
Tom Tromey [Sat, 18 Mar 2017 22:01:16 +0000 (23:01 +0100)]
change semantic to use derived-mode-p

* lisp/cedet/semantic.el (semantic-new-buffer-fcn): Use derived-mode-p.

7 years agochange calc to use derived-mode-p
Tom Tromey [Sat, 18 Mar 2017 22:00:13 +0000 (23:00 +0100)]
change calc to use derived-mode-p

* lisp/calc/calc-embed.el (calc-embedded-find-modes)
(calc-embedded-make-info): Use derived-mode-p.

7 years agochange auto-insert to use derived-mode-p
Tom Tromey [Sat, 18 Mar 2017 21:53:56 +0000 (22:53 +0100)]
change auto-insert to use derived-mode-p

* lisp/autoinsert.el (auto-insert): Use derived-mode-p.

7 years agoProtect against an infloop in python-mode
Philipp Stephani [Tue, 28 Feb 2017 21:21:37 +0000 (22:21 +0100)]
Protect against an infloop in python-mode

There appears to be an edge case caused by using `syntax-ppss' in a
narrowed buffer during JIT lock inside of Python triple-quote strings.
Unfortunately it is impossible to reproduce without manually
destroying the syntactic information in the Python buffer, but it has
been observed in practice.  In that case it can happen that the syntax
caches get sufficiently out of whack so that there appear to be
overlapping strings in the buffer.  As Python has no nested strings,
this situation is impossible and leads to an infloop in
`python-nav-end-of-statement'.  Protect against this by checking
whether the search for the end of the current string makes progress.

* python.el (python-nav-end-of-statement): Protect against infloop.
* progmodes/python-tests.el
(python-tests--python-nav-end-of-statement--infloop): Add unit test.

7 years ago* doc/lispref/os.texi (File Notifications):
Michael Albinus [Thu, 23 Mar 2017 16:07:55 +0000 (17:07 +0100)]
* doc/lispref/os.texi (File Notifications):

Strengthen the recommendation to use filenotify.el.

7 years agoMerge from gnulib
Paul Eggert [Thu, 23 Mar 2017 15:51:44 +0000 (08:51 -0700)]
Merge from gnulib

This incorporates:
2017-03-22 getopt: merge from glibc
* build-aux/config.sub, lib/getopt.c, lib/getopt.in.h:
* lib/getopt1.c, lib/getopt_int.h: Copy from gnulib.
* lib/gnulib.mk.in: Regenerate.

7 years agoUse lexical-bind in Tramp
Michael Albinus [Thu, 23 Mar 2017 13:58:04 +0000 (14:58 +0100)]
Use lexical-bind in Tramp

* lisp/net/tramp*.el: Add lexical-binding cookie.  Move declarations up.

* lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `push'
rather than `add-to-list'.
(tramp-adb-get-device): Remove unused variable.

* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): Remove unused
variable.

* lisp/net/tramp.el (auto-save-file-name-transforms): Declare.
(tramp-find-file-name-coding-system-alist): Use `push' rather
than `add-to-list'.

* test/lisp/net/tramp-tests.el: Add lexical-binding cookie.
Require 'dired.  Move declarations up.
(tramp-test32-make-nearby-temp-file): Wrap `make-nearby-temp-file'
and `temporary-file-directory' calls with `with-no-warnings'.
(tramp-test35-asynchronous-requests): Mark unused variable.

7 years agoDo not include comment start chars in ffap string
Kaushal Modi [Fri, 17 Mar 2017 22:03:23 +0000 (18:03 -0400)]
Do not include comment start chars in ffap string

* lisp/ffap.el (ffap-string-at-point): If the point is in a comment,
ensure that the returned string does not contain the comment start
characters (especially for major modes that have '//' as comment start
characters).  Otherwise, in a major mode like c-mode, with `ido-mode'
enabled and `ido-use-filename-at-point' set to `guess', doing "C-x
C-f" on a "//foo" comment will initiate an attempt to access a path
"//foo" (Bug#24057).

Co-authored-by: Noam Postavsky <npostavs@gmail.com>
7 years agoc:/Temp/gtk-window-move/ChangeLog.txt
Martin Rudalics [Thu, 23 Mar 2017 06:51:19 +0000 (07:51 +0100)]
c:/Temp/gtk-window-move/ChangeLog.txt

7 years agoFix filenotify.el issue for kqueue
Michael Albinus [Wed, 22 Mar 2017 19:33:03 +0000 (19:33 +0000)]
Fix filenotify.el issue for kqueue

* lisp/filenotify.el (file-notify-add-watch): Use directory
for remote file name handlers.

* test/lisp/filenotify-tests.el (file-notify-test01-add-watch):
Create/delete temporary file only for "kqueue".
(file-notify-test02-rm-watch): Create/delete temporary files.

7 years agoExtend `file-notify-test02-rm-watch'
Michael Albinus [Wed, 22 Mar 2017 13:15:45 +0000 (14:15 +0100)]
Extend `file-notify-test02-rm-watch'

* test/lisp/filenotify-tests.el (file-notify-test02-rm-watch):
Expect it failed for inotify.  Divide tests into different
`unwind-protect' clauses.  Check, that removing watch
descriptors out of order do not harm.  (Bug#26126)

7 years ago* test/lisp/emacs-lisp/lisp-mode-tests.el (indent-subsexp): Test for Bug#26187
Noam Postavsky [Wed, 22 Mar 2017 00:40:52 +0000 (20:40 -0400)]
* test/lisp/emacs-lisp/lisp-mode-tests.el (indent-subsexp): Test for Bug#26187

7 years ago* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Fix null endpos case
Graham Dobbins [Mon, 20 Mar 2017 01:06:18 +0000 (21:06 -0400)]
* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Fix null endpos case

Copyright-paperwork-exempt: yes

7 years agoImprove configure --with-pop etc. diagnostics
Paul Eggert [Tue, 21 Mar 2017 20:53:47 +0000 (13:53 -0700)]
Improve configure --with-pop etc. diagnostics

* configure.ac: Improve diagnostics re --with-pop and
--with-mailutils (Bug#26102).

7 years agoRevert "Make --without-pop the default."
Eli Zaretskii [Tue, 21 Mar 2017 19:04:56 +0000 (21:04 +0200)]
Revert "Make --without-pop the default."

This reverts commit 9319de675e395517f9a7b50cae1a3aad9cd0abc2.

7 years agoDon’t remove dependency files when configuring
Paul Eggert [Tue, 21 Mar 2017 18:14:15 +0000 (11:14 -0700)]
Don’t remove dependency files when configuring

Problem reported by Tom Tromey in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00533.html
* configure.ac: Don’t remove */*.o and */deps/* when
--enable-autodepend is in effect.

7 years agoMake --without-pop the default.
Paul Eggert [Tue, 21 Mar 2017 17:20:05 +0000 (10:20 -0700)]
Make --without-pop the default.

Suggested by Angelo Graziosi in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00431.html
* configure.ac: Change the default from --with-pop to
--without-pop.  Adjust diagnostics to match.

7 years agoStreamline dependency-file generation
Paul Eggert [Tue, 21 Mar 2017 16:59:10 +0000 (09:59 -0700)]
Streamline dependency-file generation

* configure.ac (AUTODEPEND_PARENTS): New var.
mkdir the dependency directories here, to simplify ‘make’.
Remove dependency files just before outputting Makefiles, so that
they are preserved if ‘configure’ exits early due to some other problem.
* lib/Makefile.in, lwlib/Makefile.in, oldXMenu/Makefile.in:
* src/Makefile.in: Adjust deps strategies to be similar, as follows:
(MKDEPDIR): Remove.  All uses removed.  This cuts down on the
number of processes spun off by ‘make’.
(clean mostlyclean): Remove $(DEPDIR) contents, not $(DEPDIR) itself.
(distclean): Remove $(DEPDIR) itself.
* lwlib/Makefile.in (all): Move to front, so that depdir includes
do not alter default action.

7 years agoPort and simplify example sh script
Paul Eggert [Tue, 21 Mar 2017 16:18:42 +0000 (09:18 -0700)]
Port and simplify example sh script

* doc/misc/org.texi (noweb-ref): Simplify shell script example and
don’t use ‘tail -1’, which is not portable.

7 years agoepatch: Save right backups in Git multipatches
Tino Calancha [Tue, 21 Mar 2017 08:25:55 +0000 (17:25 +0900)]
epatch: Save right backups in Git multipatches

Multipatches on N Git files save wrong backups for
N-1 files; only the last one has a correct backup (Bug#26084).
* lisp/vc/diff-mode.el (diff-file-junk-re): Add 'Prereq: '
* lisp/vc/ediff-ptch.el (ediff-map-patch-buffer): Use 'diff-file-junk-re'.
* test/lisp/vc/ediff-ptch-tests.el (ediff-ptch-test-bug25010):
Rename from ibuffer-test-bug25010.
(ediff-ptch-test-bug26084): New test.

7 years agoSolve ses-recalculate-cell updating only current line bug.
Vincent Belaïche [Mon, 20 Mar 2017 21:42:00 +0000 (22:42 +0100)]
Solve ses-recalculate-cell updating only current line bug.

* lisp/ses.el (ses-recalculate-cell): Add optional argument
ses--curcell to avoid overwriting ses--curcell when function is
called from ses-recalculate-all.  Update docstring accordingly.
(ses-recalculate-all): Call ses-recalculate-cell with argument
ses--curcell to avoid its overwriting.

7 years agoFix problem with out-of-date dependencies
Paul Eggert [Mon, 20 Mar 2017 15:57:20 +0000 (08:57 -0700)]
Fix problem with out-of-date dependencies

Problem reported by Robert Marshall in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00501.html
Although this problem has been with us for a while, the recent
change from Automake to GNU Make exposed it again.
* configure.ac (AUTO_DEPEND): When autodepending, clean out any
leftover dependency and object files, since the previous sources'
dependencies may disagree with the current ones.  Reconfiguring
typically needs to force a rebuild anyway.

7 years agoSimpler filter implementation
Mark Oteiza [Mon, 20 Mar 2017 02:21:03 +0000 (22:21 -0400)]
Simpler filter implementation

* lisp/play/dunnet.el (dun-endgame-question): Get or set
dun-endgame-questions one time only.  Use dolist and an index to
prune the list.

7 years ago* lisp/button.el (forward-button): Use user-error instead.
Mark Oteiza [Mon, 20 Mar 2017 00:20:45 +0000 (20:20 -0400)]
* lisp/button.el (forward-button): Use user-error instead.

7 years agoMerge from gnulib
Paul Eggert [Sun, 19 Mar 2017 20:07:03 +0000 (13:07 -0700)]
Merge from gnulib

This gets Emacs working again with HP-UX Itanium cc.
It incorporates:
2017-03-19 stdalign: tweak version# and test for HP-UX IA64
2017-03-18 stdalign: restore previous behavior for HP-UX IA64
2017-03-17 stat-time, timespec: Support header files in C++ mode
2017-03-17 stdalign: Make it work with HP-UX cc
2017-03-17 flexmember: try to detect HP-UX 11.31 cc bug
2017-03-16 stdint: Fix test compilation failure with HP-UX 11 cc.
2017-03-14 gnulib-tool: don't produce tests with only snippets
2017-03-14 limits-h: Make it work with HP-UX cc.
* etc/PROBLEMS: Remove now-obsolete entry for HP-UX 11.31.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/limits.in.h, lib/stat-time.h, lib/stdalign.in.h:
* lib/stdint.in.h, lib/timespec.h, m4/flexmember.m4, m4/stdalign.m4:
Copy from gnulib.

7 years ago* ChangeLog.2: Merge from emacs-25.
Paul Eggert [Sun, 19 Mar 2017 20:07:02 +0000 (13:07 -0700)]
* ChangeLog.2: Merge from emacs-25.

7 years agoFixups after merge from emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:39:16 +0000 (12:39 -0700)]
Fixups after merge from emacs-25

* etc/NEWS: Remove stray entry.
* etc/NEWS.25: Copy from Emacs emacs-25 etc/NEWS.
* lisp/textmodes/rst.el (rst-package-emacs-version-alist):
Make it nondecreasing.

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:34:05 +0000 (12:34 -0700)]
Merge from origin/emacs-25

d71e071 Improve documentation of interactive "r".

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:34:05 +0000 (12:34 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

129d30e Fix bug: Range-check integer ‘alpha’ frame parm value

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:34:04 +0000 (12:34 -0700)]
Merge from origin/emacs-25

a094732 * etc/PROBLEMS: Say that HP-UX cc doesn't work.
1925dd9 Fix duplicate wording in Emacs manual
6de8429 * lisp/paren.el (show-paren--default, show-paren-function): A...
2d671fd Fix wording in Emacs manual
a8766a2 Document how to customize input methods
6eb8995 * lisp/net/eww.el (eww-reload): Doc fix.  (Bug#25981)
aceac95 Fix warning message about native completion (Bug#25984)
a314c1f Clarify documentation of 'raise' and 'height' display specs
f366f6e Mention problems with GPaste in PROBLEMS
6e788ef ; etc/PROBLEMS: Explain about the python+libedit problem (Bug...
6406618 Fix doc strings in info.el
c1ed152 ; * src/keyboard.c (Fposn_at_point): Fix last change.
eed9677 Fix doc string of 'posn-at-point'
0d5957e Documentation fix in elisp reference manual

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:34:03 +0000 (12:34 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

fe91ff2 ; Update ldef-boot.el for Emacs 25.1 release
4210210 ; Update ChangeLog.2 and AUTHORS files

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:34:03 +0000 (12:34 -0700)]
Merge from origin/emacs-25

ec4226d * lisp/woman.el (woman): Fix docstring prefix arg description.
2b774fa Mention "editor" in Emacs man page header
ae60d0c Document problems with nerd-fonts
2fdb5a9 ; Details about pinning Emacs to w32 task bar
5c3105e * doc/lispref/modes.texi (Derived Modes): Make example more i...
4c51ef4 Clarify what is the "cursor"
8303c32 ; * etc/NEWS: Copyedits.
3f7493e ; Fix a typo in comment
c54cf8d Improve commentary in lisp.h
8b92f86 ; * admin/make-tarball.txt: Cross-reference admin/release-pro...
0ba9932 Disable native completion for ipython (Bug#25067)
38fc456 Fix a typo in ada-mode manual
00e75ba ; * src/coding.c (Fencode_coding_region): Fix a typo in the d...
a541c21 Clarify documentation of 'bufferpos-to-filepos' and 'filepos-...

# Conflicts:
# etc/NEWS
# etc/PROBLEMS

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:29:09 +0000 (12:29 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

5e92111 Bump Emacs version to 25.2 RC1
a51f11d ; Update ChangeLog.2 and AUTHORS files

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:29:08 +0000 (12:29 -0700)]
Merge from origin/emacs-25

02d9ad8 * admin/make-tarball.txt: Add documentation regarding the rel...

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:29:08 +0000 (12:29 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

73e62bb ; Update ChangeLog.2 and AUTHORS files

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:29:07 +0000 (12:29 -0700)]
Merge from origin/emacs-25

e1171de * CONTRIBUTE (Documenting your changes): Index new vars/comma...

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:29:07 +0000 (12:29 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

6102d01 ; Update ChangeLog.2 and AUTHORS files

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:29:06 +0000 (12:29 -0700)]
Merge from origin/emacs-25

ab0a60a ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate...
7e02a47 Index byte-compile-debug
7c1e598 Document `byte-compile-debug' in the ELisp manual
4d81eb4 Document variable `byte-compile-debug'
72ef710 Fix call to debugger on assertion failure
ae8264c Call modification hooks in org-src fontify buffers
b3139da ; Fix last change in doc/lispref/strings.texi
c331f39 Improve documentation of 'format' conversions
9f52f67 Remove stale functions from ert manual
c416b14 Fix a typo in Eshell manual
06695a0 ; Fix a typo in ediff-merg.el
954e9e9 Improve documentation of hooks related to saving buffers
9fcab85 Improve documentation of auto-save-visited-file-name
2236c53 fix typo in mailcap-mime-extensions
85a3e4e Fix typos in flymake.el
a1ef10e More NEWS checking for admin.el's set-version

# Conflicts:
# lisp/emacs-lisp/bytecomp.el

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:27:56 +0000 (12:27 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

3993dc5 Fix auto-save-file-name problem in Tramp on MS Windows. Do no...

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:27:55 +0000 (12:27 -0700)]
Merge from origin/emacs-25

5569e64 ; Spelling fixes
24a5f57 * lisp/net/eww.el (eww-tag-meta): Handle single quoted URLs (...
9b89896 * lisp/progmodes/sql.el (sql-product-alist): Doc tweak
69b50f5 * lisp/progmodes/sql.el (sql-product-alist): Doc fix.  (Bug#2...
42eae54 Improve documentation of dabbrevs
b0ade0d Clarify that easy-menu-add is a nop (Bug#25382)
3c69f2c * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fi...

# Conflicts:
# lisp/textmodes/rst.el

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:24:52 +0000 (12:24 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

fdef18c Revert "Add DNS keywords and remove duplications"
1cb9aa5 Add DNS keywords and remove duplications

7 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:24:51 +0000 (12:24 -0700)]
Merge from origin/emacs-25

0e35405 Improve documentation of coding-systems
c2fd04c Improve definition of 'variable-pitch' face on MS-Windows
16fb50d Fix an error message in python.el
a2a2073 Clarify major mode switching
fc38671 Add helpful comment to compile-command's docstring
ee65d85 Fix ':version' of 'select-enable-primary'

7 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 19 Mar 2017 19:24:51 +0000 (12:24 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

5a1908f ; Auto-commit of loaddefs files.

7 years agoFix bug in generator function with pcase (Bug#26068)
Paul Pogonyshev [Sun, 12 Mar 2017 08:51:23 +0000 (09:51 +0100)]
Fix bug in generator function with pcase (Bug#26068)

* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Remove some calls
to symbol-name.

7 years agoFix chaotic indentation of C++ lambda. Enhance documentation thereof
Alan Mackenzie [Sun, 19 Mar 2017 17:09:27 +0000 (17:09 +0000)]
Fix chaotic indentation of C++ lambda.  Enhance documentation thereof

* lisp/progmodes/cc-engine.el (c-looking-at-inexpr-block): qualify an
invocation of c-on-identifier with a check we're not at the _end_ of an
identifier.

* doc/misc/cc-mode.texi: (Tex title page): Remove @subtitlefont because the
perl versions of texi2dvi haven't implemented it.
(Syntactic Symbols): Note that `inlambda' is also used in C++ Mode, not just
in Pike Mode.
(Statement Block Symbols): Add a section illustrating a C++ lambda function.
(FAQ): Add a question about "excessive" indentation of the contents of a C++
lambda function, and how to get rid of it.

7 years agoRemove unused vars in cl-extra.el and tramp.el.
Stefan Monnier [Sun, 19 Mar 2017 02:32:23 +0000 (22:32 -0400)]
Remove unused vars in cl-extra.el and tramp.el.

* lisp/emacs-lisp/cl-extra.el (cl--print-table): Remove unused vars.

* lisp/net/tramp.el (tramp-dissect-file-name): Remove unused `match'.
(outline-regexp, ls-lisp-use-insert-directory-program): Declare.
(tramp-find-foreign-file-name-handler): Mark unused arg, remove unused `v`.

7 years agoImprove describe-symbol's layout of slots when describing types
Stefan Monnier [Sun, 19 Mar 2017 01:24:39 +0000 (21:24 -0400)]
Improve describe-symbol's layout of slots when describing types

* lisp/emacs-lisp/cl-extra.el (cl--print-table): New function.
(cl--describe-class-slots): Use it.

7 years agoFix Bug#26156
Michael Albinus [Sat, 18 Mar 2017 16:44:27 +0000 (17:44 +0100)]
Fix Bug#26156

* lisp/net/tramp.el (tramp-completion-file-name-handler-alist):
<expand-file-name>: Remove handler.  (Bug#26156)

7 years ago* lisp/obarray.el (obarray-size): Avoid compiler warning.
Stefan Monnier [Sat, 18 Mar 2017 16:29:12 +0000 (12:29 -0400)]
* lisp/obarray.el (obarray-size): Avoid compiler warning.

7 years agoFix last change in lib/Makefile.in
Eli Zaretskii [Sat, 18 Mar 2017 09:26:50 +0000 (11:26 +0200)]
Fix last change in lib/Makefile.in

* lib/Makefile.in (srcdir): Define, as including
$(srcdir)/../nt/gnulib-cfg.mk needs that.

7 years ago* configure.ac: Fix typo in diagnostic.
Paul Eggert [Sat, 18 Mar 2017 04:36:52 +0000 (21:36 -0700)]
* configure.ac: Fix typo in diagnostic.

7 years agoPort out-of-source builds to windows-nt
Paul Eggert [Sat, 18 Mar 2017 04:24:24 +0000 (21:24 -0700)]
Port out-of-source builds to windows-nt

Problem reported by Angelo Graziosi in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00431.html
* lib/Makefile.in: Prepend $(srcdir) to ../nt/gnulib-cfg.mk,
to handle out-of-source builds if windows-nt.

7 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Fri, 17 Mar 2017 19:24:52 +0000 (21:24 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

7 years agoMS-Windows followup for switch from Automake
Eli Zaretskii [Fri, 17 Mar 2017 19:23:35 +0000 (21:23 +0200)]
MS-Windows followup for switch from Automake

* nt/INSTALL:
* nt/INSTALL.W64: Remove references to Automake.  (Bug#26100)

7 years ago; Spelling fixes
Paul Eggert [Fri, 17 Mar 2017 19:22:05 +0000 (12:22 -0700)]
; Spelling fixes

7 years agoImprove documentation of interactive "r".
Eli Zaretskii [Fri, 17 Mar 2017 19:10:17 +0000 (21:10 +0200)]
Improve documentation of interactive "r".

* doc/lispref/commands.texi (Interactive Codes): Mention that mark
must be set for "r" to work.

7 years agoFixups for GNU Make switchover
Paul Eggert [Fri, 17 Mar 2017 18:33:48 +0000 (11:33 -0700)]
Fixups for GNU Make switchover

This fixes some minor problems introduced in the recent switch to GNU
Make, discovered by further testing.  Without some of these changes
'make -j' would sometimes have race conditions caused by missing
dependencies.  (Bug#26100)
* .gitignore: Remove src/stamp-h.in, src/stamp-h1.
* Makefile.in ($(MAKEFILE_NAME)): Depend on configure, not
src/config.in, since the former's timestamp now represents
the latter's.
($(srcdir)/configure): Use plain ./autogen.sh, for consistency
with other autogen.sh invocations.
($(srcdir)/src/stamp-h.in):
Remove rule, as this file is no longer created.
* Makefile.in (top_distclean):
* src/Makefile.in (bootstrap-clean):
No need to remove stamp-h1, as that was an Automake byproduct
and Automake is no longer in use.
* lib/Makefile.in, src/Makefile.in:
(AUTOCONF_INPUTS, $(top_srcdir)/configure): Remove.
(../config.status, Makefile): Simplify by limiting dependencies
to files we care about and files in the repository, and by
using just one file to represent the timestamps on multiple
targets updated by the same rule.
* autogen.sh: Do not create or use src/stamp-h.in.
Instead, have 'find' test the two output files directly.

7 years agoSwitch from Automake to GNU Make
Paul Eggert [Fri, 17 Mar 2017 18:33:47 +0000 (11:33 -0700)]
Switch from Automake to GNU Make

Emacs assumes GNU Make, and GNU Make has much of the functionality of
Automake built-in.  The Emacs build process uses Automake primarily
because Emacs uses some Gnulib code and Gnulib formerly required
Automake.  Now that Gnulib no longer requires Automake, Emacs can
stop using Automake and this should simplify Emacs maintenance
in the future (Bug#26100).  Although this patch may look long, most of
it is generated automatically: the changes to build-aux/config.guess,
build-aux/config.sub, build-aux/install-sh, and lib/gnulib.mk.in are
all done by admin/merge-gnulib.
* .gitignore: Remove build-aux/ar-lib, build-aux/compile,
build-aux/config.guess, build-aux/config.sub, build-aux/depcomp,
build-aux/install-sh, build-aux/missing, and lib/Makefile.in,
as they are no longer built by autogen.sh.
Add lib/gnulib.mk, as it is now built by 'configure'.
Remove nt/gnulib.mk, as it is no longer built by 'make'.
* INSTALL.REPO, README, admin/make-tarball.txt:
Remove mention of Automake.
* Makefile.in (AUTOCONF, AUTOMAKE, AUTOHEADER, ACLOCAL, lib)
(AUTOCONF_INPUTS, ACLOCAL_PATH, ACLOCAL_INPUTS)
($(srcdir)/aclocal.m4, AUTOMAKE_INPUTS)
($(srcdir)/lib/Makefile.in, $(srcdir)/nt/gnulib.mk, am--refresh):
Remove.
($(MAKEFILE_NAME)): Depend on lib/gnulib.mk.in.
($(srcdir)/configure, $(srcdir)/src/stamp-h.in)
($(srcdir)/src/config.in):
Use autogen.sh instead of doing it by hand.
* admin/merge-gnulib (AVOIDED_MODULES, avoided_flags)):
New vars, to simplify processing of avoided modules.
(GNULIB_TOOL_FLAGS): Move --avoid flags into AVOIDED_MODULES.
Add --gnu-make, and change makefile name to gnulib.mk.in.
Copy config.guess, config.sub, and install-sh too, since
Automake no longer does that for us.
* admin/notes/copyright:
* admin/update_autogen (genfiles):
Update list of files.
Remove hack for nt/gnulib.mk, a file that is no longer needed.
* autogen.sh (progs): Remove Automake.
(automake_min): Remove.
Build aclocal.m4 so that autoreconf need not use aclocal.
* build-aux/config.guess, build-aux/config.sub:
* build-aux/install-sh:
New files, copied from Gnulib.  These are now updated by
admin/merge-gnulib instead by autogen.sh.
* configure.ac (AC_PROG_MAKE_SET, ACLOCAL_PATH, AM_CONDITIONAL):
Remove.
(AM_INIT_AUTOMAKE, AM_SILENT_RULES): Remove call.
(AC_PROG_CC_C_O): Call this instead of AM_PROG_CC_C_O.
(BUILDING_FOR_WINDOWSNT, HYBRID_MALLOC_LIB): Remove; no longer needed.
(--disable-silent-rules): New option, since Automake no longer
does this for us.
(AM_V, AM_DEFAULT_V): Set unconditionally, and do not bother
with AM_SUBST_NOTMAKE.
(AC_PROG_INSTALL): Add call.
(MAKEINFO): Do not bother with the 'missing' program.
(MAKEINFO, SYSTEM_TYPE): AC_SUBST.
(AC_CONFIG_FILES): Add Makefile, lib/gnulib.mk.
(SUBDIR_MAKEFILES): Remove duplication.
* lib/Makefile.am: Remove, replacing with:
* lib/Makefile.in: New file, with the old Makefile.am contents
and with the following changes:
(AUTOMAKE_OPTIONS, BUILT_SOURCES, CLEANFILES, EXTRA_DIST)
(MOSTLYCLEANDIRS, MOSTLYCLEANFILES, noinst_LIBRARIES, SUFFIXES)
(AM_CFLAGS, DEFAULT_INCLUDES, libegnu_a_SOURCES, libegnu_a_LIBADD)
(EXTRA_libegnu_a_SOURCES, libegnu_a_SHORTNAME, libegnu_a_CPPFLAGS):
Remove.
(VPATH, abs_top_builddir, top_builddir, top_srcdir, all, AM_V_AR)
(AM_V_CC, AM_V_GEN, AM_V_at, DEPDIR, DEPFLAGS, MKDEPDIR, SYSTEM_TYPE)
(libgnu.a, libegnu.a, ETAGS, $(ETAGS), tags, TAGS, clean)
(mostlyclean, distclean, bootstrap-clean, maintainer-clean):
New macros and rules, since Automake no longer does them.
Include ../nt/gnulib-cfg.mk if SYSTEM_TYPE is windows-nt,
instead of including ../nt/gnulib.mk if BUILDING_FOR_WINDOWS_NT.
Include dependency files if AUTO_DEPEND.
(ALL_CFLAGS, AUTOCONF_INPUTS, libgnu_a_OBJECTS, libegnu_a_OBJECTS):
New macros.
(bootstrap-clean): Depend on distclean, not maintainer-clean,
and remove gnulib.mk.
(AUTOCONF_INPUTS, $(top_srcdir)/configure, ../config.status, Makefile):
New macros and rules, copied from ../Makefile.in.
($(libegnu_a_OBJECTS), $(libgnu_a_OBJECTS)): Depend on BUILT_SOURCES.
(.c.o, e-%.o): New generic rules.
* lib/gnulib.mk: Remove.
* lib/gnulib.mk.in: New file, which is built by autogen.sh
and contains much of what used to be in lib/gnulib.mk.
* m4/gnulib-common.m4: Copy from gnulib.
* make-dist: Do not distribute build-aux/compile, build-aux/depcomp,
build-aux/missing, build-aux/ar-lib, lib/Makefile.am, nt/gnulib.mk,
nt/gnulib-modules-to-delete.cfg.  Distribute lib/Makefile.in,
lib/gnulib.mk.in, and nt/gnulib-cfg.mk instead.
* nt/Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0)
(am__v_GEN_1, ${srcdir}/gnulib.mk): Remove.
* nt/gnulib-cfg.mk: New file, which supersedes ...
* nt/gnulib-modules-to-delete.cfg: ... this file, which is removed.
* src/Makefile.in (ACLOCAL_INPUTS): Remove.
(AUTOCONF_INPUTS): Merge ACLOCAL_INPUTS into it.
($(top_srcdir)/configure, ../config.status, config.in Makefile):
Defer to parent Makefile.

7 years agoDon't suggest Mailutils on MS-Windows
Paul Eggert [Fri, 17 Mar 2017 10:22:23 +0000 (03:22 -0700)]
Don't suggest Mailutils on MS-Windows

* configure.ac: Don't suggest GNU Mailutils on MS-Windows, as it
hasn't been ported.

7 years agoFix bug: Range-check integer ‘alpha’ frame parm value
Thien-Thi Nguyen [Fri, 17 Mar 2017 09:16:44 +0000 (10:16 +0100)]
Fix bug: Range-check integer ‘alpha’ frame parm value

Typo introduced 2013-04-01, "Prefer < to >
in range checks such as 0 <= i && i < N".

* src/frame.c (x_set_alpha): Use ‘ialpha’, not ‘alpha’.

7 years agoFix bug: Range-check integer ‘alpha’ frame parm value
Thien-Thi Nguyen [Fri, 17 Mar 2017 09:16:44 +0000 (10:16 +0100)]
Fix bug: Range-check integer ‘alpha’ frame parm value

Typo introduced 2013-04-01, "Prefer < to >
in range checks such as 0 <= i && i < N".

* src/frame.c (x_set_alpha): Use ‘ialpha’, not ‘alpha’.

7 years agoFix Bug#26127
Michael Albinus [Fri, 17 Mar 2017 09:25:46 +0000 (10:25 +0100)]
Fix Bug#26127

* lisp/filenotify.el (file-notify--rm-descriptor): Check, that
there is a function which could be called.  (Bug#26127)

* test/lisp/filenotify-tests.el (file-notify--test-cleanup):
Clear also `file-notify-descriptors'.
(file-notify--test-make-temp-name): Move up.
(file-notify-test02-rm-watch): New test.
(file-notify-test03-events, file-notify-test04-autorevert)
(file-notify-test05-file-validity)
(file-notify-test06-dir-validity)
(file-notify-test07-many-events, file-notify-test08-backup)
(file-notify-test09-watched-file-in-watched-dir)
(file-notify-test10-sufficient-resources): Rename.

7 years ago; * etc/PROBLEMS: Clarify the issue with insecure POP connections.
Eli Zaretskii [Fri, 17 Mar 2017 08:57:30 +0000 (10:57 +0200)]
; * etc/PROBLEMS: Clarify the issue with insecure POP connections.

7 years ago* etc/PROBLEMS: Say that HP-UX cc doesn't work.
Paul Eggert [Fri, 17 Mar 2017 07:58:31 +0000 (00:58 -0700)]
* etc/PROBLEMS: Say that HP-UX cc doesn't work.

7 years agoEmacs 'movemail' is now a configure-time option
Paul Eggert [Fri, 17 Mar 2017 06:50:37 +0000 (23:50 -0700)]
Emacs 'movemail' is now a configure-time option

The new configure option --with-mailutils lets the builder say
that Emacs should assume that GNU Mailutils is installed, instead
of continuing to build and install its own limited and insecure
substitute for 'movemail'.
* INSTALL, etc/NEWS, etc/PROBLEMS: Mention --with-mailutils.
* configure.ac: Add --with-mailutils option.
(with_mailutils): New variable.
Do not bother configuring 'movemail' when not building it.
Warn about issues relating to --with-mailutils.
* doc/emacs/rmail.texi (Movemail): Mention --with-mailutils.
(Movemail, Remote Mailboxes): Document port numbers in
POP and IMAP URLs.
* lib-src/Makefile.in (with_mailutils): New macro.
(UTILITIES): Use it.

7 years agoAdd obarray-size and fix tests accordingly. Use obarrayp in cedet.
Stefan Monnier [Thu, 16 Mar 2017 16:31:07 +0000 (12:31 -0400)]
Add obarray-size and fix tests accordingly.  Use obarrayp in cedet.

* lisp/obarray.el (obarray-size): New function.

* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-symbol)
(semantic-lex-spp-save-table, semantic-lex-spp-macros):
* lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment):
Use obarrayp.

* test/lisp/obarray-tests.el (obarray-make-default-test)
(obarray-make-with-size-test): Use it.

7 years agoDocument remote file name syntax change
Michael Albinus [Thu, 16 Mar 2017 15:23:07 +0000 (16:23 +0100)]
Document remote file name syntax change

* doc/emacs/files.texi (Remote Files, Quoted File Names):
* doc/misc/org.texi (dir): Change examples to use a method.

* doc/misc/tramp.texi (Top) [trampf]: Remove macro.  Add
`Testing' menu entry.
(History): Fix typos.  Mention syntax change.
(Configuration, Default Host, File name Syntax)
(File name completion, Frequently Asked Questions):
Change examples to use a method.
(External methods, Default Host, Multi-hops, Remote processes):
Fix typos.
(Default Method): Mention pseudo method "-".
(External packages): Rewrite intention of `non-essential'.

* etc/NEWS: Mark recent Tramp entries as documented.

7 years ago(semantic-lex-type-invalid): Fix nested backquote.
Stefan Monnier [Thu, 16 Mar 2017 13:44:56 +0000 (09:44 -0400)]
(semantic-lex-type-invalid): Fix nested backquote.

* lisp/cedet/semantic/lex.el: Use lexical-binding.
(semantic-lex-type-invalid): Fix nested backquote.
(semantic-lex-map-symbols, semantic-lex-type-symbol)
(semantic-lex-keyword-symbol): Use obarrayp.

7 years ago* lisp/ido.el (ido-read-internal, ido-complete): Do not bind `non-essential'.
Michael Albinus [Wed, 15 Mar 2017 10:24:23 +0000 (11:24 +0100)]
* lisp/ido.el (ido-read-internal, ido-complete): Do not bind `non-essential'.

7 years agoWrite a named function
Mark Oteiza [Wed, 15 Mar 2017 05:12:48 +0000 (01:12 -0400)]
Write a named function

* lisp/comint.el (comint-nonblank-p): New function.
(comint-input-filter): Use it.

7 years agoReplace more nested ifs with cond
Mark Oteiza [Wed, 15 Mar 2017 04:42:25 +0000 (00:42 -0400)]
Replace more nested ifs with cond

This is a continuation of 0db5ba4 "Replace nested ifs with cond".
* lisp/play/dunnet.el (dun-special-object, dun-inven, dun-drop):
(dun-drop-check, dun-swim, dun-break): Use when and cond where
appropriate.
(dun-examine): Fix indentation.
(dun-doverb): Use when.
(dun-read-line): Refactor.

7 years agoRecomplexify ‘delete-trailing-whitespace’ by treating \n as whitespace again
Noam Postavsky [Tue, 14 Mar 2017 13:23:08 +0000 (09:23 -0400)]
Recomplexify ‘delete-trailing-whitespace’ by treating \n as whitespace again

Mostly reverts "Simplify ‘delete-trailing-whitespace’ by not treating
\n as whitespace" from 2016-07-04.  Setting \n to non-whitespace
causes the regex engine to backtrack a lot when searching for
"\\s-+$" (Bug#26079).

* lisp/simple.el (delete-trailing-whitespace): Don't change newline
syntax, search for "\\s-$" and then skip backward over trailing
whitespace.

7 years agoMerge from gnulib
Paul Eggert [Tue, 14 Mar 2017 20:44:11 +0000 (13:44 -0700)]
Merge from gnulib

This incorporates:
2017-03-14 snippets: move unadjusted snippet sources to lib
2017-03-14 gnulib-tool: fix typo in comment output
2017-03-14 snippets: work around GNU Make 3.82 VPATH
2017-03-13 gnulib-tool: minor --gnu-make fixups
2017-03-12 gnulib-tool: new option --gnu-make
* .gitignore: Remove lib/arg-nonnull.h, lib/c++defs.h,
lib/warn-on-use.h.  Change exception from
build-aux/snippet/_Noreturn.h to lib/_Noreturn.h.
* admin/authors.el (authors-renamed-files-regexps):
* admin/notes/copyright, make-dist:
The snippet files moved from build-aux/snippet to lib.
* lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
* lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
* lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.

7 years agoFix duplicate wording in Emacs manual
Eli Zaretskii [Tue, 14 Mar 2017 18:27:08 +0000 (20:27 +0200)]
Fix duplicate wording in Emacs manual

* doc/emacs/programs.texi (Which Function): Delete duplicate
wording.  (Bug#26098)

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 14 Mar 2017 14:52:32 +0000 (15:52 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoReenable lost Tramp test case
Michael Albinus [Tue, 14 Mar 2017 14:52:16 +0000 (15:52 +0100)]
Reenable lost Tramp test case

* test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
Reenable lost test case.

7 years agoRevert "Remove NSEvent loop from ns_select (bug#25265)"
Alan Third [Mon, 13 Mar 2017 15:03:11 +0000 (15:03 +0000)]
Revert "Remove NSEvent loop from ns_select (bug#25265)"

This reverts commit 3bd2e9e975ed29daaf03ca7559e4664aade0674f.

7 years agoRevert "Add missing timeout value in ns_select"
Alan Third [Mon, 13 Mar 2017 15:02:37 +0000 (15:02 +0000)]
Revert "Add missing timeout value in ns_select"

This reverts commit a65236214d9202fb69a6ba5169d4ac1a4bcb0b0d.

7 years agoRemove old macOS compatibility code
Alan Third [Tue, 7 Mar 2017 14:45:03 +0000 (14:45 +0000)]
Remove old macOS compatibility code

* src/nsimage.m, src/nsmenu.m, src/nsterm.m: Remove code only for
macOS versions below 10.6 as they are not supported in Emacs 25+.

7 years agoTune `tramp-completion-file-name-regexp-unified'
Michael Albinus [Tue, 14 Mar 2017 14:10:40 +0000 (15:10 +0100)]
Tune `tramp-completion-file-name-regexp-unified'

* lisp/net/tramp.el (tramp-completion-file-name-regexp-unified):
Extend this regexp to match also "/".

7 years agoShow ancestor buffer in 3way merges
Tino Calancha [Tue, 14 Mar 2017 07:12:29 +0000 (16:12 +0900)]
Show ancestor buffer in 3way merges

Add an option ediff-show-ancestor', to control if the ancestor buffer
must be shown in 3way merges (Bug#25493); set it non-nil by default.
Add a toggle to change this option interactively; the original
value of the option is restored on exit.

Update the window setup so that the ancestor buffer is
shown in 3way merges when ediff-show-ancestor is non-nil.

Any operation on ediff windows must take in account the
ancestor window as well, when this is shown.

* lisp/vc/ediff-init.el (ediff-show-ancestor): New option.
(ediff--show-ancestor-orig): New defvar.
* lisp/vc/ediff-wind.el (ediff-window-Ancestor): New defvar.
(ediff-setup-windows-plain-merge, ediff-setup-windows-multiframe-merge):
Display ancestor buffer if ediff-show-ancestor is non-nil.
(ediff-keep-window-config): Expect ancestor window in
ediff-window-config-saved.
(ediff-window-alist): Add entry for the ancestor window.
* lisp/vc/ediff-util.el (ediff-setup-control-buffer):
ediff-window-config-saved contains ancestor window.
(ediff-show-ancestor): Delete this command.
(ediff-setup-keymap): Bind ediff-toggle-show-ancestor to '/' for merge jobs.
(ediff-update-diffs): Compute new diffs using ancestor buffer in 3way merges;
don't cheat it to think that is performing a comparison, that trick is not
necessary anymore: simply call 'ediff-setup-diff-regions-function'
with file-A, file-B and the file ancestor.
(ediff-recenter): Update doc string.  Consider the ancestor buffer.
(ediff--check-ancestor-exists): New defun.
(ediff-toggle-show-ancestor): New command; toggle ediff-show-ancestor.
(ediff--restore-options-on-exit): Restore ediff-show-ancestor on exit.
(ediff-scroll-vertically, ediff-scroll-horizontally)
(ediff-operate-on-windows): Consider the ancestor as well.
* lisp/vc/ediff-help.el (ediff-long-help-message-merge):
List ediff-toggle-show-ancestor.
* doc/misc/ediff.texi (Introduction, Quick Help Commands): Update manual.
; * etc/NEWS: Announce these changes.

7 years agodiff-mode: Improve default faces for buffer ancestor
Tino Calancha [Tue, 14 Mar 2017 06:19:20 +0000 (15:19 +0900)]
diff-mode: Improve default faces for buffer ancestor

* lisp/vc/ediff-init.el (ediff-current-diff-Ancestor)
(ediff-fine-diff-Ancestor): Use defaults consistent with
faces for 'ediff-buffer-A' and 'ediff-buffer-B'.

7 years ago* lisp/paren.el (show-paren--default, show-paren-function): Add docstring.
Hong Xu [Wed, 2 Nov 2016 19:06:12 +0000 (12:06 -0700)]
* lisp/paren.el (show-paren--default, show-paren-function): Add docstring.

7 years agoFix make-dist typo
Paul Eggert [Mon, 13 Mar 2017 21:24:31 +0000 (14:24 -0700)]
Fix make-dist typo

* make-dist: Fix typo introduced in the Bug#25895 fix.

7 years agoFix wording in Emacs manual
Eli Zaretskii [Mon, 13 Mar 2017 20:31:33 +0000 (22:31 +0200)]
Fix wording in Emacs manual

* doc/emacs/text.texi (Paragraphs): Fix a garbled sentence.
(Bug#26086)

7 years agoetc/NEWS: Remote file names require a method.
Michael Albinus [Mon, 13 Mar 2017 17:30:54 +0000 (18:30 +0100)]
etc/NEWS: Remote file names require a method.

7 years agoRequire method in remote file name syntax
Michael Albinus [Mon, 13 Mar 2017 17:05:59 +0000 (18:05 +0100)]
Require method in remote file name syntax

* lisp/minibuffer.el (completion--nth-completion):
Do not bind `non-essential'.

* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Do not call
`tramp-check-proper-method-and-host'.

* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Better traces.
(tramp-maybe-open-connection): Do not use argument for
´tramp-completion-mode-p'.

* lisp/net/tramp.el (tramp-default-method-marker): New defconst.
(tramp-prefix-format, tramp-postfix-method-format)
(tramp-prefix-ipv6-format, tramp-postfix-ipv6-format)
(tramp-prefix-port-format, tramp-postfix-host-format)
(tramp-file-name-regexp, tramp-completion-file-name-regexp):
Use `eq' instead of `eqal'.
(tramp-method-regexp, tramp-domain-regexp)
(tramp-remote-file-name-spec-regexp)
(tramp-file-name-regexp-unified)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate): Adapt regexp.
(tramp-completion-file-name-handler-alist)
(tramp-run-real-handler): Autoload them.
(tramp-find-method): Handle `tramp-default-method-marker'.
(tramp-check-proper-method-and-host)
(tramp-completion-run-real-handler): Remove them.
(tramp-error-with-buffer, tramp-connectable-p): Do not use
argument for ´tramp-completion-mode-p'.
(tramp-find-foreign-file-name-handler): Remove COMPLETION
argument.  Do not apply heuristic for completion.
(tramp-file-name-handler): Do not modify `non-essential'.
(tramp-completion-file-name-handler): Change implementation.
(tramp-autoload-file-name-handler)
(tramp-completion-handle-file-name-all-completions):
Call `tramp-run-real-handler'.
(tramp-completion-mode-p): Do not autoload.  Remove argument.
Do not apply heuristic for completion.
(tramp-completion-dissect-file-name): Simplify implementation.
(tramp-handle-file-name-as-directory): Call `tramp-connectable-p'.

* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax)
(tramp-test02-file-name-dissect)
(tramp-test03-file-name-defaults)
(tramp-test06-directory-file-name): Adapt to the new syntax.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp--test-check-files): Deactivate temporarily tests with
quoted file names.
(tramp-test16-directory-files, tramp-test17-insert-directory):
Adapt tests.
(tramp-test24-file-name-completion): Do not check for
completion mode.
(tramp-test31-make-auto-save-file-name): Deactivate temporarily
two tests.

7 years agoFix bidi paragraph direction when inserting text at newline
Eli Zaretskii [Mon, 13 Mar 2017 16:15:09 +0000 (18:15 +0200)]
Fix bidi paragraph direction when inserting text at newline

* src/insdel.c (invalidate_buffer_caches): Invalidate the bidi
paragraph cache when inserting immediately after a newline.
(Bug#26083)

7 years ago* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Fix regexp.
Tino Calancha [Mon, 13 Mar 2017 11:01:40 +0000 (20:01 +0900)]
* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Fix regexp.

7 years ago* lisp/emacs-lisp/cl-print.el (cl-print-compiled): New variable
Stefan Monnier [Mon, 13 Mar 2017 02:09:02 +0000 (22:09 -0400)]
* lisp/emacs-lisp/cl-print.el (cl-print-compiled): New variable

(cl-print-object) <compiled-function>: Print the docstring and
interactive form.  Obey cl-print-compiled.

7 years agoFix indent-sexp when called from inside a string (Bug#21343)
Noam Postavsky [Sun, 5 Mar 2017 05:53:58 +0000 (00:53 -0500)]
Fix indent-sexp when called from inside a string (Bug#21343)

* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Get initial syntax parse
state from `syntax-ppss'.

7 years ago* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Simplify.
Noam Postavsky [Sun, 5 Mar 2017 05:16:13 +0000 (00:16 -0500)]
* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Simplify.

* test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp):
(indent-subsexp, indent-sexp-in-string): New tests.