]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 23 Oct 2016 09:48:50 +0000 (02:48 -0700)]
Merge from origin/emacs-25

8ad0d7d ; Fix quoting in etc/NEWS
6b9dee1 Change Tramp version to "2.2.13.25.2"
62f2684 * lisp/emacs-lisp/autoload.el (update-directory-autoloads): F...
b2f32e4 Don't scan compiled module files for autoloads
9a758b4 Fix Bug#24698
baa8ba4 * lisp/subr.el (start-process): Doc fix.  (Bug#24693)
e535ca4 Fix display of vc-dir CVS file statuses in subdirectories
12da149 Update URL of MS-Windows optional DLLs
2331056 Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emac...
a4285bc * lisp/simple.el (process-menu-mode, list-processes--refresh)...
b0c447e * lisp/ibuf-ext.el (ibuffer-do-shell-command-file): Fix non-f...
cf3c19b * lisp/ibuffer.el (ibuffer): Improve 'other-window' case.  (B...

# Conflicts:
# doc/misc/trampver.texi
# etc/NEWS
# lisp/net/tramp-sh.el
# lisp/net/trampver.el

8 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 23 Oct 2016 09:43:18 +0000 (02:43 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

d70ed8a Fix time-related data types in 2 editfns.c functions
99892ee Port to Ubuntu 16.10, which needs gcc -nopie

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 23 Oct 2016 09:43:17 +0000 (02:43 -0700)]
Merge from origin/emacs-25

b73f466 * lisp/cus-start.el (exec-path): Handle nil elements.  (Bug#2...
55ebb70 Catch the imenu-unavailable error in sh-mode completion table
993acb5 ; Minor fix for last change in characters.el
30c4bb5 More char-width fixes
4eb4463 Fix char-width-table values for some Emoji
528997d Keep point when switching from and to *terminal* buffer
2130005 * INSTALL: Use correct Emacs release number 25.
10835b1 Avoid crashes due to objects read with the #n=object form
4de671d Improve doc string of 'completion-at-point-functions'
ceb46f0 Fix crash in evaluating functions
d8374c4 * src/filelock.c (current_lock_owner): Update comment.

8 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 23 Oct 2016 09:43:17 +0000 (02:43 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

eb17d6f Port --enable-gcc-warnings to GCC 6.2.1
40c426a Work around Samba bug with ':' in symlink contents

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 23 Oct 2016 09:43:16 +0000 (02:43 -0700)]
Merge from origin/emacs-25

2deb20c Port last_marked change to full-program optimizers
27eb668 Adapt GDB scripts to '--enable-check-lisp-object-type' builds
dac64e3 Avoid optimizing out the last_marked[] array

8 years agoAvoid infinite hscrolling in redisplay
Noam Postavsky [Sat, 22 Oct 2016 19:55:21 +0000 (15:55 -0400)]
Avoid infinite hscrolling in redisplay

* src/xdisp.c (redisplay_internal): Add a counter to avoid horizontal
scrolling (e.g., caused by pre-redisplay-functions) triggering infinite
redisplay (Bug #24633).

8 years agoFix error codes in Tramp
Michael Albinus [Sat, 22 Oct 2016 11:54:56 +0000 (13:54 +0200)]
Fix error codes in Tramp

* lisp/net/tramp-compat.el (tramp-compat-user-error): New defsubst,
taken from tramp.el.
(tramp-file-missing): New defconst.

* lisp/net/tramp.el (tramp-user-error): Remove it.
(tramp-check-proper-method-and-host)
(tramp-dissect-file-name, tramp-debug-message)
(tramp-handle-shell-command):
* lisp/net/tramp-adb.el (tramp-adb-handle-shell-command):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
Use `tramp-compat-user-error'.

* lisp/net/tramp.el (tramp-handle-insert-file-contents)
(tramp-handle-load):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy)
* lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
* lisp/net/tramp-smb.el (tramp-smb-handle-file-local-copy):
Use `tramp-file-missing'.  (Bug#24714)

* lisp/net/tramp-sh.el (tramp-sh-handle-add-name-to-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
Use `file-already-exists'.

8 years agoAutoload all commands from misc.el
Jorgen Schaefer [Sat, 22 Oct 2016 11:07:32 +0000 (13:07 +0200)]
Autoload all commands from misc.el

Only two of the commands there were autoloaded, one of which is an
easter egg.
* lisp/miscl.el (copy-from-above-command):
* lisp/miscl.el (zap-up-to-char):
* lisp/miscl.el (mark-beginning-of-buffer):
* lisp/miscl.el (mark-end-of-buffer):
* lisp/miscl.el (upcase-char):
* lisp/miscl.el (forward-to-word):
* lisp/miscl.el (backward-to-word):
Add autoload cookie.

8 years agoOn terminal frames ignore minibuffer frame parameter (Bug#24758)
Martin Rudalics [Sat, 22 Oct 2016 09:52:39 +0000 (11:52 +0200)]
On terminal frames ignore minibuffer frame parameter (Bug#24758)

* src/frame.c (Fmake_terminal_frame): Don't complain when the
caller asks for a deviant minibuffer setting (Bug#24758).

8 years agoNew error file-missing
Paul Eggert [Fri, 21 Oct 2016 20:04:02 +0000 (13:04 -0700)]
New error file-missing

This fixes a recently-introduced bug in delete-directory,
where the code assumes the C locale when determining
whether a file-error corresponds to a missing file (Bug#24714).
* doc/lispref/errors.texi (Standard Errors):
* doc/lispref/files.texi (Changing Files):
* etc/NEWS:
Document this.
* doc/lispref/loading.texi (How Programs Do Loading):
Say "a file-error" rather than "the error file-error" since
it might be a file-missing now.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
* lisp/epa-file.el (epa-file--find-file-not-found-function):
(epa-file-insert-file-contents, epa-file-write-region):
* lisp/ffap.el (find-file-at-point, dired-at-point):
* lisp/jka-compr.el (jka-compr-insert-file-contents)
(jka-compr-insert-file-contents):
* lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory)
(ange-ftp-insert-file-contents, ange-ftp-copy-file-internal):
* lisp/progmodes/etags.el (visit-tags-table):
* lisp/url/url-handlers.el (url-copy-file):
* src/fileio.c (report_file_errno):
Signal file-missing if appropriate.
* lisp/epa-file.el (epa-file-insert-file-contents):
* lisp/jka-compr.el (jka-compr-insert-file-contents):
Don't assume file-error is a leaf in the error hierarchy.
* lisp/files.el (files--force):
* lisp/gnus/nnmaildir.el (nnmaildir--enoent-p):
* lisp/jka-compr.el (jka-compr-insert-file-contents):
Use file-missing to detect whether the file is missing.
* lisp/url/url-handlers.el (url-copy-file):
Signal file-already-exists if appropriate.
* src/fileio.c (syms_of_fileio): Define file-missing.

2016-10-18  Paul Eggert  <eggert@cs.ucla.edu>

8 years agoTeach browse-url to open man page urls
Mark Oteiza [Fri, 21 Oct 2016 15:23:39 +0000 (11:23 -0400)]
Teach browse-url to open man page urls

* lisp/net/browse-url.el (browse-url-man-function): New custom option.
(browse-url): Add a condition to catch links matching "^man:".
(browse-url-man): New function.

8 years agoImprove fontification of footnote references in Info buffers
Eli Zaretskii [Fri, 21 Oct 2016 09:59:58 +0000 (12:59 +0300)]
Improve fontification of footnote references in Info buffers

* lisp/info.el (Info-fontify-node): Don't fontify random numbers
in parentheses as if they were footnote references.  See
https://lists.gnu.org/archive/html/bug-texinfo/2016-10/msg00007.html
for the details.

8 years agoMinor fixes to cc-mode-tests.el
Philipp Stephani [Thu, 20 Oct 2016 18:22:40 +0000 (20:22 +0200)]
Minor fixes to cc-mode-tests.el

See Bug#24747.

* progmodes/cc-mode-tests.el: Rename from cc-mode.el; fix typo in
file-local variable; add comments to make checkdoc happy.

8 years ago* etc/NEWS: Fix typos. Remove entries backported to Emacs 25.2.
Michael Albinus [Thu, 20 Oct 2016 14:29:40 +0000 (16:29 +0200)]
* etc/NEWS: Fix typos.  Remove entries backported to Emacs 25.2.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Thu, 20 Oct 2016 12:58:13 +0000 (14:58 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoDocument, how to suppress iTerm2 shell integration in Tramp
Michael Albinus [Thu, 20 Oct 2016 12:57:17 +0000 (14:57 +0200)]
Document, how to suppress iTerm2 shell integration in Tramp

* doc/misc/tramp.texi (Frequently Asked Questions):
Suppress iTerm2 shell integration.

8 years agocl-seq: Remove max limit on input sequence length
Tino Calancha [Thu, 20 Oct 2016 10:51:55 +0000 (19:51 +0900)]
cl-seq: Remove max limit on input sequence length

* lisp/emacs-lisp/cl-seq.el (cl-fill, cl-replace, cl-delete)
(cl--position, cl-nsubstitute, cl-substitute, cl-remove):
Remove limit on maximum length for the input sequence
(#Bug24264).
* test/lisp/emacs-lisp/cl-seq-tests.el: Update test expected result as passed.

8 years agoDerive dig-mode from special-mode
Mark Oteiza [Thu, 20 Oct 2016 03:59:04 +0000 (23:59 -0400)]
Derive dig-mode from special-mode

* lisp/net/dig.el: Remove unused cl dependency.  Remove top level
mode-class assignment.
(dig-mode-map): Unmap g, as dig has no notion of reverting the buffer.
(dig-mode): Derive from special-mode.
(dig-exit): Use quit-window instead.
(dig): Use pop-to-buffer-same-window.  Remove redundant assignments.
(query-dig): Use pop-to-buffer-same-window.

8 years ago; Fix quoting in etc/NEWS
Michael Albinus [Wed, 19 Oct 2016 08:49:13 +0000 (10:49 +0200)]
; Fix quoting in etc/NEWS

8 years agoChange Tramp version to "2.2.13.25.2"
Michael Albinus [Wed, 19 Oct 2016 08:35:52 +0000 (10:35 +0200)]
Change Tramp version to "2.2.13.25.2"

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.2.13.25.2".

8 years ago* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change.
Eli Zaretskii [Wed, 19 Oct 2016 07:59:05 +0000 (10:59 +0300)]
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change.

8 years agoDon't scan compiled module files for autoloads
Eli Zaretskii [Wed, 19 Oct 2016 07:42:45 +0000 (10:42 +0300)]
Don't scan compiled module files for autoloads

* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Ignore
compiled module files.  Make sure the extension really ends the
file name.

8 years agocl-defstruct: Fix debug spec and check of slot options
Johan Bockgård [Tue, 18 Oct 2016 20:28:17 +0000 (22:28 +0200)]
cl-defstruct: Fix debug spec and check of slot options

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Improve checking of slot
option syntax.  Fix debug spec.  (Bug#24700)

8 years agoisearch: Fix bug in defstruct syntax
Johan Bockgård [Tue, 18 Oct 2016 20:07:59 +0000 (22:07 +0200)]
isearch: Fix bug in defstruct syntax

* lisp/isearch.el (isearch--state): Use correct form of defstruct slot
options.  (Bug#24685)

8 years agoAdd an option for eshell-input-filter
Mark Oteiza [Tue, 18 Oct 2016 22:05:51 +0000 (18:05 -0400)]
Add an option for eshell-input-filter

* etc/NEWS: Document changes.
* lisp/eshell/em-hist.el (eshell-input-filter): Set value to function
symbol.  Change type to a radio for choosing functions.  Refer to both
new functions.
(eshell-input-filter-default): New function.  Same body as the previous
value of eshell-input-filter.
(eshell-input-filter-initial-space): New function.

8 years ago; Fix embarassing typo
Philipp Stephani [Tue, 18 Oct 2016 19:16:55 +0000 (21:16 +0200)]
; Fix embarassing typo

8 years agoFix Bug#24698
Michael Albinus [Tue, 18 Oct 2016 18:41:19 +0000 (20:41 +0200)]
Fix Bug#24698

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Don't send "stty tab0" to *BSD and Darwin machines.  (Bug#24698)

8 years agodelete-directory no longer errors when racing
Paul Eggert [Tue, 18 Oct 2016 16:36:03 +0000 (09:36 -0700)]
delete-directory no longer errors when racing

Problem reported by Glenn Morris for package-test.el (Bug#24714).
* doc/lispref/files.texi (Create/Delete Dirs), etc/NEWS: Document this.
* lisp/files.el (files--force): New function.
(delete-directory): Use it to avoid error in this case.

8 years agoSupport Shift selection in nxml-mode commands
Yuri Khan [Tue, 18 Oct 2016 06:42:54 +0000 (09:42 +0300)]
Support Shift selection in nxml-mode commands

* lisp/nxml/nxml-mode.el (nxml-forward-balanced-item)
(nxml-up-element, nxml-backward-up-element, nxml-down-element)
(nxml-backward-down-element, nxml-forward-element)
(nxml-backward-element, nxml-forward-paragraph)
(nxml-backward-paragraph): Use "^p" as the interactive spec, to
support shift-selection.

Copyright-paperwork-exempt: yes

8 years ago* lisp/subr.el (start-process): Doc fix. (Bug#24693)
Eli Zaretskii [Tue, 18 Oct 2016 06:24:05 +0000 (09:24 +0300)]
* lisp/subr.el (start-process): Doc fix.  (Bug#24693)

8 years agoSimplify some loops and cons
Mark Oteiza [Tue, 18 Oct 2016 05:53:22 +0000 (01:53 -0400)]
Simplify some loops and cons

* lisp/net/mailcap.el: Replace cl with cl-lib.
(mailcap--get-user-mime-data, mailcap--set-user-mime-data):
(mailcap-parse-mailcaps, mailcap-parse-mailcap-extras):
(mailcap-possible-viewers): Use push and dolist where possible.
(mailcap-viewer-passes-test): Remove unused binding.
(mailcap-add-mailcap-entry): Use push.
(mailcap-mime-info): Remove unused binding.  Use push.
(mailcap-parse-mimetypes): Use dolist.

8 years agoFix display of vc-dir CVS file statuses in subdirectories
Göktuğ Kayaalp [Tue, 18 Oct 2016 00:01:58 +0000 (03:01 +0300)]
Fix display of vc-dir CVS file statuses in subdirectories

* lisp/vc/vc-cvs.el (vc-cvs-dir-status-files): Use 'cvs update'
instead of 'cvs status'.  It's faster, easier to parse, and
relieves us of the need to use vc-expand-dirs.  (Bug#24082)
(vc-cvs-after-dir-status): Parse its output.

8 years agoTurn on lexical-binding in auth-source
Mark Oteiza [Mon, 17 Oct 2016 18:31:31 +0000 (14:31 -0400)]
Turn on lexical-binding in auth-source

* lisp/auth-source.el: Turn on lexical-binding.
(auth-source-netrc-parse, auth-source-netrc-normalize):
(auth-source-token-passphrase-callback-function):
(auth-source-netrc-create, auth-source-secrets-search):
(auth-source-macos-keychain-search-items):
(auth-source-plstore-search): Use let instead of lexical-let.

8 years agoUpdate URL of MS-Windows optional DLLs
Eli Zaretskii [Mon, 17 Oct 2016 09:12:25 +0000 (12:12 +0300)]
Update URL of MS-Windows optional DLLs

* nt/README.W32:
* nt/INSTALL: Update the URL of the MS-Windows binaries of the
optional libraries built with MSYS2/MinGW64 project tools.

8 years agoFix frame focus redirection with shared minibuffer windows (Bug#24500)
Martin Rudalics [Mon, 17 Oct 2016 08:52:01 +0000 (10:52 +0200)]
Fix frame focus redirection with shared minibuffer windows (Bug#24500)

* src/frame.c (do_switch_frame): Redirect frame focus also when
the frame switched to has its minibuffer window on the selected
frame.
* src/window.c (candidate_window_p): To qualify as candidate
it's not sufficient for the window's frame to just share the
minibuffer window - it must be active as well.

8 years ago; * etc/NEWS: Add note on atomic windows.
Martin Rudalics [Mon, 17 Oct 2016 07:59:20 +0000 (09:59 +0200)]
; * etc/NEWS: Add note on atomic windows.

8 years agoMerge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25
Eli Zaretskii [Mon, 17 Oct 2016 07:26:55 +0000 (10:26 +0300)]
Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25

8 years agoFix time-related data types in 2 editfns.c functions
Eli Zaretskii [Mon, 17 Oct 2016 07:25:58 +0000 (10:25 +0300)]
Fix time-related data types in 2 editfns.c functions

* src/editfns.c (format_time_string, Fcurrent_time_zone): Pass a
pointer to time_t value to emacs_localtime_rz and gmtime_r,
instead of relying on struct timespec's tv_sec member to be of
compatible type.

8 years agoFix time-related data types in 2 editfns.c functions
Eli Zaretskii [Mon, 17 Oct 2016 07:19:34 +0000 (10:19 +0300)]
Fix time-related data types in 2 editfns.c functions

* src/editfns.c (format_time_string, Fcurrent_time_zone): Pass a
pointer to 'time_t' value to 'emacs_localtime_rz' and 'gmtime_r',
instead of relying on struct timespec's 'tv_sec' member to be of
compatible type.

8 years agoDocument atomic windows in Elisp manual (Bug#18170)
Martin Rudalics [Mon, 17 Oct 2016 06:57:24 +0000 (08:57 +0200)]
Document atomic windows in Elisp manual (Bug#18170)

* lisp/window.el (display-buffer-in-atom-window): If no `side'
alist entry was specified, use `below' as the doc tells.
* doc/lispref/elisp.texi (Atomic Windows): Add menu entry.
* doc/lispref/windows.texi (Atomic Windows): New section.
(Window Parameters): Update reference.

8 years ago* lisp/simple.el (process-menu-mode, list-processes--refresh):
Tino Calancha [Tue, 7 Jun 2016 19:06:38 +0000 (15:06 -0400)]
* lisp/simple.el (process-menu-mode, list-processes--refresh):
Include PID.  (Bug#21725)

(cherry picked from commit b7adc2f23787eb72015cd705b873e229db6a5049)

8 years ago* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Tino Calancha [Tue, 7 Jun 2016 23:24:51 +0000 (19:24 -0400)]
* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Fix non-file-visiting-buffer case.  (Bug#22678)

(cherry picked from commit 738738259ba77fe17e433c64e0758ea59ab5bc75)

8 years ago* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
Tino Calancha [Wed, 8 Jun 2016 00:35:24 +0000 (20:35 -0400)]
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case.  (Bug#23617)

(cherry picked from commit f4ef1a1fea15aa58fbb5e7a59bff260720658e49)

8 years agoPort to Ubuntu 16.10, which needs gcc -nopie
Paul Eggert [Sun, 16 Oct 2016 23:25:47 +0000 (16:25 -0700)]
Port to Ubuntu 16.10, which needs gcc -nopie

* configure.ac (emacs_cv_prog_cc_no_pie): Rename from
emacs_cv_prog_cc_nopie.  All usages changed.  Check for -no-pie in
preference to -nopie (Bug#24682).  Backport from master.

8 years agoNew face homoglyph
Paul Eggert [Mon, 17 Oct 2016 01:48:19 +0000 (18:48 -0700)]
New face homoglyph

Suggested by Eli Zaretskii, from a feature request by
Alan Mackenzie (Bug#24468).
* doc/emacs/display.texi (Standard Faces, Text Display):
* etc/NEWS: Document this.
* etc/themes/dichromacy-theme.el, etc/themes/leuven-theme.el:
* etc/themes/light-blue-theme.el, etc/themes/manoj-dark-theme.el:
* etc/themes/tango-dark-theme.el, etc/themes/tango-theme.el:
* etc/themes/wombat-theme.el:
Customize homoglyph to be the same as escape-glyph.
* lisp/cus-theme.el (custom-theme--listed-faces):
Add homoglyph.
* lisp/faces.el (homoglyph): New face.
* lisp/startup.el (startup--setup-quote-display): Use it.

8 years ago* lisp/cus-start.el (exec-path): Handle nil elements. (Bug#24471)
Glenn Morris [Mon, 17 Oct 2016 01:56:06 +0000 (18:56 -0700)]
* lisp/cus-start.el (exec-path): Handle nil elements.  (Bug#24471)

8 years agoPort to Ubuntu 16.10, which needs gcc -nopie
Paul Eggert [Sun, 16 Oct 2016 23:25:47 +0000 (16:25 -0700)]
Port to Ubuntu 16.10, which needs gcc -nopie

* configure.ac (emacs_cv_prog_cc_no_pie): Rename from
emacs_cv_prog_cc_nopie.  All usages changed.  Check for -no-pie in
preference to -nopie (Bug#24682).

8 years agoCatch the imenu-unavailable error in sh-mode completion table
Andreas Politz [Sun, 16 Oct 2016 13:56:25 +0000 (16:56 +0300)]
Catch the imenu-unavailable error in sh-mode completion table

* lisp/progmodes/sh-script.el (sh--cmd-completion-table):
Catch the imenu-unavailable error (bug#24238).

8 years agoFix bug#24665 in Tramp
Michael Albinus [Sun, 16 Oct 2016 13:52:26 +0000 (15:52 +0200)]
Fix bug#24665 in Tramp

* doc/misc/tramp.texi (External methods): Do not confuse
method names.  (Bug#24665)

8 years ago; Minor fix for last change in characters.el
Eli Zaretskii [Sun, 16 Oct 2016 11:22:24 +0000 (14:22 +0300)]
; Minor fix for last change in characters.el

8 years agoMore char-width fixes
Eli Zaretskii [Sun, 16 Oct 2016 11:19:32 +0000 (14:19 +0300)]
More char-width fixes

* lisp/international/characters.el (char-width-table): More fixes
according to the latest EastAsianWidth.txt.  (Bug#24705)

8 years agouse full time objects (lists) instead of floats when possible
Sam Steingold [Sun, 16 Oct 2016 03:27:46 +0000 (23:27 -0400)]
use full time objects (lists) instead of floats when possible

* midnight.el (midnight-buffer-display-time): Remove
(clean-buffer-list): Use float time only for time comparison

8 years agoSave and restore buffer-display-time
Sam Steingold [Sun, 16 Oct 2016 03:14:48 +0000 (23:14 -0400)]
Save and restore buffer-display-time

* desktop.el (desktop-locals-to-save): Add `buffer-display-time'
(desktop-read): Set `desktop-file-modtime' before loading the desktop file
(desktop-create-buffer): Adjust `buffer-display-time' for the downtime

8 years agoDisable bracketed paste in a terminal in char mode
Philipp Stephani [Sat, 15 Oct 2016 13:19:56 +0000 (15:19 +0200)]
Disable bracketed paste in a terminal in char mode

In char mode, a terminal doesn't accept bracketed paste events,
therefore we should disable them; see Bug#24639.  To decouple the XTerm
management from term.el, introduce a per-buffer setting to disable
bracketed paste for that buffer.  If bracketed paste is inhiited for at
least one buffer in a terminal, it is disabled for the whole terminal.

* term/xterm.el (xterm-inhibit-bracketed-paste-mode): New mode to
inhibit XTerm bracketed paste per buffer.
(xterm--buffer-terminals, xterm--update-bracketed-paste)
(xterm--bracketed-paste-possible, xterm--is-xterm): New helper
functions.
(xterm--init-bracketed-paste-mode): Remove unused helper
function.
(terminal-init-xterm): Update bracketed paste status when
initializing an XTerm and on window configuration change.

* term.el (term-char-mode, term-line-mode): Inhibit XTerm
bracketed paste in char mode.

8 years agoFix char-width-table values for some Emoji
Eli Zaretskii [Sat, 15 Oct 2016 14:58:57 +0000 (17:58 +0300)]
Fix char-width-table values for some Emoji

* lisp/international/characters.el (char-width-table): Add missing
range U+1F400..U+1F43E.  (Bug#24699)

* admin/notes/unicode: Mention the need to verify char-width-table
setting against data in EastAsianWidth.txt.

8 years ago; * src/keyboard.c (make_lispy_event): Fix code formatting in last change.
Eli Zaretskii [Sat, 15 Oct 2016 14:21:49 +0000 (17:21 +0300)]
; * src/keyboard.c (make_lispy_event): Fix code formatting in last change.

8 years agoUndo the effect of CapsLock when other modifiers are present
Dima Kogan [Sat, 15 Oct 2016 14:18:40 +0000 (17:18 +0300)]
Undo the effect of CapsLock when other modifiers are present

* src/keyboard.c (make_lispy_event): Effectively undo the effect
of CapsLock if any modifiers other than Shift are present in a key.
(Bug#24456)

8 years agoKeep point when switching from and to *terminal* buffer
Eli Zaretskii [Sat, 15 Oct 2016 13:53:36 +0000 (16:53 +0300)]
Keep point when switching from and to *terminal* buffer

* lisp/term.el (term-reset-size): Don't reset the size if it
didn't change.  If the size did change, restore point after
adjusting the size.  (Bug#24465)

8 years ago* INSTALL: Use correct Emacs release number 25.
Michael Albinus [Sat, 15 Oct 2016 10:40:45 +0000 (12:40 +0200)]
* INSTALL: Use correct Emacs release number 25.

8 years agoAdd tests for foreign completions in CSS mode
Simen Heggestøyl [Sat, 15 Oct 2016 09:23:26 +0000 (11:23 +0200)]
Add tests for foreign completions in CSS mode

* test/lisp/textmodes/css-mode-tests.el
(css-test-foreign-completions): New test for
`css--foreign-completions'.
(css-test-complete-selector-tag): Rename test.
(css-test-complete-selector-class): New test testing completion of
class names in selectors.
(css-test-complete-selector-id): New test testing completion of IDs in
selectors.

8 years agoAvoid crashes due to objects read with the #n=object form
Eli Zaretskii [Fri, 14 Oct 2016 19:52:46 +0000 (22:52 +0300)]
Avoid crashes due to objects read with the #n=object form

* src/lread.c (read1): Use Fcons for 'placeholder', not AUTO_CONS,
because elements of the list in 'read_objects' cannot be allocated
off the stack.  (Bug#24640)

8 years agoCosmetic change to last mm-url change
Lars Ingebrigtsen [Thu, 13 Oct 2016 23:35:15 +0000 (01:35 +0200)]
Cosmetic change to last mm-url change

* lisp/gnus/mm-url.el (mm-url-encode-multipart-form-data):
Tweak last change slightly for more readability.

8 years agoFix problem with submitting binary data via HTTP forms
Lars Ingebrigtsen [Thu, 13 Oct 2016 19:39:29 +0000 (21:39 +0200)]
Fix problem with submitting binary data via HTTP forms

* lisp/gnus/mm-url.el (mm-url-encode-multipart-form-data):
Document the parameters, clean up the code, and make uploading
binary data really work (which it didn't if the binary bits
were in the last part of the data).

8 years ago* lisp/time.el (display-time-string-forms): Fix custom type.
Mark Oteiza [Thu, 13 Oct 2016 18:41:46 +0000 (14:41 -0400)]
* lisp/time.el (display-time-string-forms): Fix custom type.

8 years agoDerive Man and WoMan modes from special-mode
Mark Oteiza [Thu, 13 Oct 2016 18:29:32 +0000 (14:29 -0400)]
Derive Man and WoMan modes from special-mode

* lisp/man.el (Man-mode-map): Set parent to map composed from both
button-buffer-map and special-mode-map.  Remove redundant bindings.
Fix menu to refer to the quit-window command.
(Man-mode): Derive from special-mode.  Fix docstring.  Remove redundant
buffer-read-only binding.
(Man-quit): Remove.
* lisp/woman.el (woman-really-find-file): Use setq-local.
(woman-mode-map): Refer to woman-mode in docstring.
(woman-mode): Derive from special-mode.  Document woman-mode-map in
docstring.  Use setq-local where possible; imenu-generic-expression is
already buffer-local.
(woman-negative-vertical-space): Replace unused binding with _.

8 years agoImprove doc string of 'completion-at-point-functions'
Eli Zaretskii [Thu, 13 Oct 2016 17:15:21 +0000 (20:15 +0300)]
Improve doc string of 'completion-at-point-functions'

* lisp/minibuffer.el (completion-at-point-functions): Doc fix.
(Bug#24663)

8 years agoFix crash in evaluating functions
Philipp Stephani [Wed, 12 Oct 2016 20:48:32 +0000 (22:48 +0200)]
Fix crash in evaluating functions

See Bug#24673

* src/eval.c (funcall_lambda): Fix crash for bogus functions such
as (closure).

8 years agoFix crash in evaluating functions
Philipp Stephani [Wed, 12 Oct 2016 20:48:32 +0000 (22:48 +0200)]
Fix crash in evaluating functions

See Bug#24673

* src/eval.c (funcall_lambda): Fix crash for bogus functions such
as (closure).

* test/src/eval-tests.el (eval-tests--bug24673): Add test.

8 years agoAdd test for Bug#24627
Tino Calancha [Thu, 13 Oct 2016 08:56:22 +0000 (17:56 +0900)]
Add test for Bug#24627

* /test/lisp/thingatpt-tests.el (thing-at-point-bug24627): New test.

8 years ago* src/filelock.c (current_lock_owner): Update comment.
Paul Eggert [Thu, 13 Oct 2016 00:48:04 +0000 (17:48 -0700)]
* src/filelock.c (current_lock_owner): Update comment.

8 years agoPort --enable-gcc-warnings to GCC 6.2.1
Paul Eggert [Wed, 12 Oct 2016 16:16:31 +0000 (09:16 -0700)]
Port --enable-gcc-warnings to GCC 6.2.1

Backport from master.
* src/conf_post.h (GNUC_PREREQ): New macro.
* src/keyboard.c: Use it to work around GCC bug 54561.
* src/process.c (would_block): New function.
(server_accept_connection, wait_reading_process_output, send_process):
Use it.

8 years agoPort last_marked change to full-program optimizers
Paul Eggert [Wed, 12 Oct 2016 16:00:27 +0000 (09:00 -0700)]
Port last_marked change to full-program optimizers

* src/alloc.c (last_marked): Now EXTERNALLY_VISIBLE.

8 years agoWork around Samba bug with ':' in symlink contents
Paul Eggert [Wed, 12 Oct 2016 16:01:03 +0000 (09:01 -0700)]
Work around Samba bug with ':' in symlink contents

* src/filelock.c (current_lock_owner): When reading the contents
of a lock, treat the UTF-8 for U+F022 as if it were ':' (Bug#24656).
Backport from master.

8 years ago* lib-src/etags.c (invalidate_nodes): Remove a redundant nullp test.
Eli Zaretskii [Wed, 12 Oct 2016 15:24:21 +0000 (18:24 +0300)]
* lib-src/etags.c (invalidate_nodes): Remove a redundant nullp test.

8 years agoAdapt GDB scripts to '--enable-check-lisp-object-type' builds
Eli Zaretskii [Wed, 12 Oct 2016 08:59:53 +0000 (11:59 +0300)]
Adapt GDB scripts to '--enable-check-lisp-object-type' builds

* etc/emacs-buffer.gdb <$qnil>: New variable.
(ybuffer-list, yset-buffer): Use $qnil for comparing against
'nil', as direct comparison with Qnil doesn't work in a build with
'--enable-check-lisp-object-type'.

* src/.gdbinit: Adapt commands of the temporary breakpoint in
init_sys_modes to a build with '--enable-check-lisp-object-type'.

8 years agoWork around Samba bug with ':' in symlink contents
Paul Eggert [Tue, 11 Oct 2016 20:06:42 +0000 (13:06 -0700)]
Work around Samba bug with ':' in symlink contents

* src/filelock.c (current_lock_owner): When reading the contents
of a lock, treat the UTF-8 for U+F022 as if it were ':' (Bug#24656).

8 years agoIf autoloads buffer is unchanged, mark it as such (bug#23692)
Stefan Monnier [Tue, 11 Oct 2016 19:52:14 +0000 (15:52 -0400)]
If autoloads buffer is unchanged, mark it as such (bug#23692)

* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
If autoloads buffer is unchanged, mark it as such (bug#23692).

8 years agoUse "26.1" version string in Tramp, fix some comments
Michael Albinus [Tue, 11 Oct 2016 14:53:33 +0000 (16:53 +0200)]
Use "26.1" version string in Tramp, fix some comments

* lisp/net/tramp-gvfs.el (tramp-gvfs-methods):
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
Use "26.1" version string.

8 years agoAvoid optimizing out the last_marked[] array
Eli Zaretskii [Tue, 11 Oct 2016 11:38:48 +0000 (14:38 +0300)]
Avoid optimizing out the last_marked[] array

* src/alloc.c <last_marked>: No longer 'static', to avoid having
it optimized out in optimized builds, which then makes debugging
GC problems harder.

8 years agoform-at-point work for all kind of THINGS
Tino Calancha [Tue, 11 Oct 2016 02:47:32 +0000 (11:47 +0900)]
form-at-point work for all kind of THINGS

* lisp/thingatpt.el (form-at-point):
Use thing-at-point--read-from-whole-string only if thing-at-point
returns a string (Bug#24605).

8 years agoFix compilation warnings on MS-Windows
Eli Zaretskii [Mon, 10 Oct 2016 16:22:40 +0000 (19:22 +0300)]
Fix compilation warnings on MS-Windows

* src/w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Remove
definitions of these macros, which seem to be unneeded and cause
compiler warnings.
* src/fileio.c (NOMINMAX): Avoid compiler warnings about unused
macros.
* src/firstfile.c (dummy_main_reference): Rename from 'dummy' and
make it external, to avoid compiler warning.

8 years agoSpelling and clarity fixes
Paul Eggert [Mon, 10 Oct 2016 14:58:18 +0000 (07:58 -0700)]
Spelling and clarity fixes

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:39:05 +0000 (07:39 -0700)]
Merge from origin/emacs-25

4f406e9 CC Mode manual: remove reference to former Emacs variable las...
44e402e Allow to disable compaction of font caches
4ff4b66 Allow selection of font for symbols as in Emacs 24.x
c03d44b ; Fix last commit
d4be4f3 ; Fix indexing in lispref manual
ed399f2 ; Minor improvement in documentation of generators
197a6bc Fix horizontal scrolling during Isearch
3566644 Fix infloop in redisplay due to truncated lines and invisible...

# Conflicts:
# etc/NEWS

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:33 +0000 (07:35 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

a6e0a67 gitmerge: Add cherry pick to gitmerge-skip-regexp
fb12af2 ; Merge: some backports from master
6234012 Don't require isearch-update before isearch-done
5e50114 Avoid error in icalendar--read-element
ace9d22 Make a menu less ambiguous
e683495 Doc fix for url-http

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:33 +0000 (07:35 -0700)]
Merge from origin/emacs-25

c4a5e7e Improve documentation of 'menu-bar-open'

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:33 +0000 (07:35 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

34b6df1 Fix compilation with MinGW runtime 3.22.2 and w32api 3.18.2
4ef9ea2 Add documentation note from Alex
9d6026d * src/alloc.c: call only non-null finalizers

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:32 +0000 (07:35 -0700)]
Merge from origin/emacs-25

4b347fe Clarify that doc fixes are okay in feature freeze
01669ad Avoid crashes when setting the cursor
f2144ee Restore 'command-debug-status' functionality
ec6e4b9 ; Minor addition to CONTRIBUTE

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:32 +0000 (07:35 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

e1b2918 Document yank behavior in the right place

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:31 +0000 (07:35 -0700)]
Merge from origin/emacs-25

74b4f13 Document nil args of compare-buffer-substrings
9fc81bc * doc/misc/message.texi (Bcc Warning): Fix markup.
95baa25 * doc/misc/message.texi (Bcc Warning): Document mml-secure-sa...

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:31 +0000 (07:35 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

6234012 Don't require isearch-update before isearch-done
5e50114 Avoid error in icalendar--read-element
ace9d22 Make a menu less ambiguous
e683495 Doc fix for url-http

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 10 Oct 2016 14:35:31 +0000 (07:35 -0700)]
Merge from origin/emacs-25

f1247f0 * lisp/frame.el (blink-cursor-delay): Doc fix.  (Bug#24372)
ace7f14 * lisp/gnus/gnus-art.el (gnus-button-handle-library): Fix typo.
bbf1ffd Regexp Functions doc minor fixes

8 years agoCC Mode manual: remove reference to former Emacs variable last-command-char
Alan Mackenzie [Sun, 9 Oct 2016 13:42:57 +0000 (13:42 +0000)]
CC Mode manual: remove reference to former Emacs variable last-command-char

* doc/misc/cc-mode.texi (Hanging Semicolons and Commas): Replace reference to
variable last-command-char by one to macro c-last-command-char.

8 years agoAllow to disable compaction of font caches
Eli Zaretskii [Sat, 8 Oct 2016 19:31:14 +0000 (22:31 +0300)]
Allow to disable compaction of font caches

* src/font.c (syms_of_font) <inhibit-compacting-font-caches>: New
boolean variable.
* src/alloc.c (compact_font_caches): Use it to bypass the call to
compact_font_cache_entry.  (Bug#24634)  (Bug#24565)

* etc/NEWS: Mention the new variable.

8 years agoAllow selection of font for symbols as in Emacs 24.x
Eli Zaretskii [Sat, 8 Oct 2016 19:03:51 +0000 (22:03 +0300)]
Allow selection of font for symbols as in Emacs 24.x

* src/fontset.c (syms_of_fontset) <use-default-font-for-symbols>:
New boolean variable.
(face_for_char): Use it to fall back to pre-Emacs 25.1 behavior
when selecting fonts for displaying symbol and punctuation
characters.  (Bug#24644)

* etc/NEWS: Mention the new variable.

8 years agoDon’t consider nested let-alist forms
Philipp Stephani [Sat, 8 Oct 2016 13:29:32 +0000 (15:29 +0200)]
Don’t consider nested let-alist forms

See Bug#24641.

* lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search): Don’t
consider symbols in nested ‘let-alist’ forms.

* test/lisp/emacs-lisp/let-alist-tests.el
(let-alist--deep-dot-search--nested): Add a unit test.

8 years ago; Fix last commit
Eli Zaretskii [Sat, 8 Oct 2016 14:16:33 +0000 (17:16 +0300)]
; Fix last commit

* doc/lispref/functions.texi (Argument List): Restore the index
entry for 'wrong-number-of-arguments'.  (Bug#24222)
* doc/lispref/errors.texi: Fix cross-reference for
'wrong-number-of-arguments'.

8 years ago; Fix indexing in lispref manual
Eli Zaretskii [Sat, 8 Oct 2016 14:01:54 +0000 (17:01 +0300)]
; Fix indexing in lispref manual

* doc/lispref/functions.texi (Argument List): Remove the index
entry for 'wrong-number-of-arguments'.  (Bug#24222)

8 years agoSupport SIGTRAP in kill emulation on Windows
Alain Schneble [Sat, 8 Oct 2016 13:52:40 +0000 (16:52 +0300)]
Support SIGTRAP in kill emulation on Windows

* src/w32proc.c (sys_kill): Translate SIGTRAP signal into a call to
'DebugBreakProcess' to cause a breakpoint exception to occur in the
specified process.  On Windows versions prior to Windows XP that do
not support 'DebugBreakProcess' return -1 and set errno to ENOTSUP
(as opposed to EINVAL before this change).
* src/w32proc.c: Add typedef for 'DebugBreakProcess' function pointer
and global variable to track state of run-time dynamic linking of this
function.

* etc/NEWS: Add entry to document that 'signal-process' now supports
SIGTRAP.

8 years ago; Minor improvement in documentation of generators
Wilfred Hughes [Sat, 8 Oct 2016 13:44:47 +0000 (16:44 +0300)]
; Minor improvement in documentation of generators

* doc/lispref/control.texi (Generators): Add a 'require' to the
example code.  (Bug#24539)

8 years agoDeprecate 'wp' group and introduce a new group 'text'
Eli Zaretskii [Sat, 8 Oct 2016 13:37:42 +0000 (16:37 +0300)]
Deprecate 'wp' group and introduce a new group 'text'

* lisp/textmodes/tildify.el (tildify):
* lisp/textmodes/text-mode.el (text-mode-hook):
* lisp/textmodes/table.el (table):
* lisp/textmodes/rst.el (rst):
* lisp/textmodes/refer.el (refer):
* lisp/textmodes/refbib.el (refbib):
* lisp/textmodes/picture.el (picture):
* lisp/textmodes/nroff-mode.el (nroff):
* lisp/textmodes/enriched.el (enriched):
* lisp/textmodes/bib-mode.el (bib):
* lisp/progmodes/ebnf2ps.el (ebnf2ps):
* lisp/nxml/rng-valid.el (relax-ng):
* lisp/view.el (view):
* lisp/ps-print.el (ps-print):
* lisp/printing.el (printing):
* lisp/outline.el (outlines):
* lisp/lpr.el (lpr):
* lisp/delim-col.el (columns): Use 'text' group instead of 'wp'.
* lisp/cus-edit.el (wp): Remove the "text" tag.
(text): New defgroup, inherits from the deprecated 'wp'.
(outlines): Remove, in favor of the definition in outline.el.
(tex): Inherit from 'text'.
Suggested by Drew Adams <drew.adams@oracle.com>.  (Bug#24549)