]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoMerge branch 'emacs-25-merge'
John Wiegley [Sun, 3 Jan 2016 07:31:52 +0000 (23:31 -0800)]
Merge branch 'emacs-25-merge'

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Vincent Belaïche [Sat, 2 Jan 2016 15:59:42 +0000 (16:59 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoAlign textually on fix done for emacs-25 branch for bug#21054
Vincent Belaïche [Sat, 2 Jan 2016 15:59:03 +0000 (16:59 +0100)]
Align textually on fix done for emacs-25 branch for bug#21054

* lisp/ses.el (ses-check-curcell): Suppress ``temporary fix'' comment,
and useless `(if t ...)' in order to align textually on fix done for
emacs-25 branch for bug#21054.

8 years ago; * etc/NEWS: Typo fix.
Xue Fuqiao [Sat, 2 Jan 2016 06:52:57 +0000 (14:52 +0800)]
; * etc/NEWS: Typo fix.

8 years agoAdd notes on bug triage procedure
Andrew Hyatt [Fri, 1 Jan 2016 20:07:53 +0000 (15:07 -0500)]
Add notes on bug triage procedure

* CONTRIBUTE: In section on the issue tracker, point to new triage file.
* admin/notes/triage: New file explaining triage procedure.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Jan 2016 11:18:06 +0000 (06:18 -0500)]
; Auto-commit of loaddefs files.

8 years agoCorrect ses-rename-cell cursor-intangible text prop updating.
Vincent Belaïche [Wed, 30 Dec 2015 23:10:37 +0000 (00:10 +0100)]
Correct ses-rename-cell cursor-intangible text prop updating.

There were two problems:

- First ses-rename-cell has to work when called non interactively
  (with non-nil CELL argument), so in this case the start pos of
  put-text-property cannot be plainly (point), you need a
  ses-goto-print call before

- Second, the range itself was computed erronously, only the first
  char was affected instead of the full cell width. This was not
  noticeable prior to changes (Deprecate `intangible' and
  `point-entered' properties) made by Stefan on 2015-04-13T19:51:15Z

* lisp/ses.el (ses-rename-cell): Correct computation of position range
to which the 'cursor-intangible text property has to be set to cell
new name.

8 years agoDon't fake empty cells value by "" when printing with a lambda.
Vincent Belaïche [Wed, 30 Dec 2015 11:37:54 +0000 (12:37 +0100)]
Don't fake empty cells value by "" when printing with a lambda.

When using a lambda expression printer function the user should be
free to format differently a really empty cell, ie. containing nil,
from a cell containing an empty string "".

* ses.el (ses-call-printer): Replace `(or value "")' by just `value'
in the case of a lambda expression printer function.

* ses.texi (Printer functions): Add example and description about
lambda expression printer function handling all the possible values,
including unexpected ones.

8 years agoQuick temporary hack to fix curcell refreshing.
Vincent Belaïche [Wed, 30 Dec 2015 10:57:29 +0000 (11:57 +0100)]
Quick temporary hack to fix curcell refreshing.

The problem was caused by change: 2015-04-13 Deprecate `intangible'
and `point-entered' properties. The problem is that this change has
removed the (setq ses--curcell t) setting in the ses-command-hook
function.

* ses.el (ses-check-curcell): replace `(eq ses--curcell t)' by just `t' as
a condition to call function `ses-set-curcell'. Comment this as a quick
temporary hack to make it work, as I don't know yet whether a definite
correction would be to make the ses-set-curcell at every ses-check-curcell,
or to revert to the previous approach, ie marking ses--curcell as out-of-date
at every potentially cursor motion command.

9 years agoRestrictive URL checking tweaks
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 09:11:34 +0000 (10:11 +0100)]
Restrictive URL checking tweaks

* lisp/net/eww.el (eww): Check whether the domain is
restrictive instead of the string
(http://македонија.icom.museum is restrictive even if each
part is from a different script).

9 years agoNew function `puny-highly-restrictive-domain-p'
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 09:10:20 +0000 (10:10 +0100)]
New function `puny-highly-restrictive-domain-p'

* lisp/net/puny.el (puny-highly-restrictive-string-p): Rename.
(puny-highly-restrictive-domain-p): New function.

9 years agoeww build fix (require puny)
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 09:00:15 +0000 (10:00 +0100)]
eww build fix (require puny)

9 years agoTransform non-restrictive domains to punycode for display
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 08:59:30 +0000 (09:59 +0100)]
Transform non-restrictive domains to punycode for display

* lisp/net/eww.el (eww): Check whether the domain is Highly
Restrictive in the Unicode IDNA sense.

9 years agoMerge emacs-25 into master (using imerge)
John Wiegley [Wed, 30 Dec 2015 05:40:28 +0000 (21:40 -0800)]
Merge emacs-25 into master (using imerge)

9 years agoFix typos in CC Mode manual
Eli Zaretskii [Tue, 29 Dec 2015 20:56:53 +0000 (22:56 +0200)]
Fix typos in CC Mode manual

* doc/misc/cc-mode.texi (c-offsets-alist, Style Variables): Fix
typos.  (Bug#22267)

9 years agoAvoid assertion violations in compact_font_cache_entry
Eli Zaretskii [Tue, 29 Dec 2015 18:07:23 +0000 (20:07 +0200)]
Avoid assertion violations in compact_font_cache_entry

* src/alloc.c (compact_font_cache_entry): Don't use VECTORP to
avoid assertion violation in ASIZE.  (Bug#22263)

9 years agoFix filling text with bidirectional characters in shr.el
Eli Zaretskii [Tue, 29 Dec 2015 16:49:57 +0000 (18:49 +0200)]
Fix filling text with bidirectional characters in shr.el

* lisp/net/shr.el (shr-insert-document): Bind
bidi-display-reordering to nil while filling lines.  This is
required for when a line includes characters whose bidi
directionality is opposite to the base paragraph direction,
because columns are counted in the logical order.  (Bug#22250)

9 years agoFurther Unicode restrictive fixups
Lars Ingebrigtsen [Tue, 29 Dec 2015 16:46:00 +0000 (17:46 +0100)]
Further Unicode restrictive fixups

* puny.el (puny-highly-restrictive-p): Include the extra
identifier characters from table 3.

9 years ago* src/xfns.c (x_create_tip_frame): Process alpha parameter.
Martin Rudalics [Tue, 29 Dec 2015 16:41:15 +0000 (17:41 +0100)]
* src/xfns.c (x_create_tip_frame): Process alpha parameter.

9 years agoSync with Tramp 2.2.13
Michael Albinus [Tue, 29 Dec 2015 14:35:44 +0000 (15:35 +0100)]
Sync with Tramp 2.2.13

* doc/misc/trampver.texi: Change version to "2.2.13.25.1".

* lisp/net/tramp-compat.el (tramp-compat-delete-dups):
Use `tramp-compat-funcall'.

* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
Make `split-string' call compatible with older Emacsen.

* lisp/net/trampver.el: Change version to "2.2.13.25.1".

9 years ago* doc/misc/tramp.texi: Editorial revisions to the Tramp manual
Lambda Coder [Tue, 29 Dec 2015 14:33:54 +0000 (15:33 +0100)]
* doc/misc/tramp.texi: Editorial revisions to the Tramp manual

9 years agoMention that tls.el is secure by default, and will fail
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:46:40 +0000 (14:46 +0100)]
Mention that tls.el is secure by default, and will fail

9 years agoMake tls.el use trustfiles by default
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:46:20 +0000 (14:46 +0100)]
Make tls.el use trustfiles by default

* lisp/net/tls.el (tls-program): Add a certfile by default (bug#21227).
(open-tls-stream): Insert the trustfile by looking at
`gnutls-trustfiles'.

9 years agoRefactor out gnutls-trustfiles
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:39:53 +0000 (14:39 +0100)]
Refactor out gnutls-trustfiles

* lisp/net/gnutls.el (gnutls-trustfiles): Refactor out for reuse by tls.el.

9 years agoRemove --insecure from gnutls-cli invocation
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:30:53 +0000 (14:30 +0100)]
Remove --insecure from gnutls-cli invocation

* tls.el (tls-program): Default to using secure TLS
connections (bug#19284).

9 years agoAdd a new function to say whether a string is restrictive
Lars Ingebrigtsen [Tue, 29 Dec 2015 11:40:55 +0000 (12:40 +0100)]
Add a new function to say whether a string is restrictive

* puny.el (puny-highly-restrictive-p): New function.

9 years agoSpelling fix
Paul Eggert [Tue, 29 Dec 2015 03:05:50 +0000 (19:05 -0800)]
Spelling fix

9 years agoPort report-emacs-bug to deterministic builds
Paul Eggert [Tue, 29 Dec 2015 02:43:09 +0000 (18:43 -0800)]
Port report-emacs-bug to deterministic builds

* lisp/mail/emacsbug.el (report-emacs-bug): Future-proof the
recent "built on" change to deterministic builds where
emacs-build-system will be nil.  See:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg01369.html

9 years ago; * lisp/progmodes/project.el: Update TODO
Dmitry Gutov [Tue, 29 Dec 2015 01:53:32 +0000 (03:53 +0200)]
; * lisp/progmodes/project.el: Update TODO

9 years agoFix URL auth error message
Jose A. Ortega Ruiz [Tue, 29 Dec 2015 00:27:48 +0000 (01:27 +0100)]
Fix URL auth error message

* lisp/url/url-http.el (url-http-handle-authentication): Make the error
message more correct (bug#20069).

Copyright-paperwork-exempt: yes

9 years agoMention the new puny.el library
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:11:34 +0000 (00:11 +0100)]
Mention the new puny.el library

9 years agoIDNA-related fixes for the URL library
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:11:06 +0000 (00:11 +0100)]
IDNA-related fixes for the URL library

* lisp/url/url-http.el (url-http-create-request): IDNA-encode
the Host: header.

* lisp/url/url-util.el (url-encode-url): Don't hex-encode
domain names, but leave them as UTF-8, so that they can be
IDNA-encoded later when contacting the host.

9 years agoIDNA-encode all domain names in `open-network-stream'
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:09:10 +0000 (00:09 +0100)]
IDNA-encode all domain names in `open-network-stream'

* network-stream.el (open-network-stream)
(network-stream-open-plain, network-stream-open-starttls):
IDNA-encode all domain names, if needed.

9 years agoFix puny-encoding all-non-ASCII domains
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:07:50 +0000 (00:07 +0100)]
Fix puny-encoding all-non-ASCII domains

* puny.el (puny-encode-string): Fix the all-non-ASCII encoding case.

9 years agoshr link traversal fixup
Lars Ingebrigtsen [Mon, 28 Dec 2015 20:55:18 +0000 (21:55 +0100)]
shr link traversal fixup

* shr.el (shr-next-link): Don't bug out on adjacent links.

Backport:

(cherry picked from commit 1efc5f8b09273c359683ce13be95fb5df7a84311)

9 years agoshr link traversal fixup
Lars Ingebrigtsen [Mon, 28 Dec 2015 20:55:18 +0000 (21:55 +0100)]
shr link traversal fixup

* shr.el (shr-next-link): Don't bug out on adjacent links.

9 years agoset :safe on css-indent-offset
Tom Tromey [Mon, 28 Dec 2015 20:00:56 +0000 (13:00 -0700)]
set :safe on css-indent-offset

* lisp/textmodes/css-mode.el (css-indent-offset): Add :safe 'integerp.

9 years ago* eww.el (eww-mode): Remove superfluous bidi reset.
Lars Ingebrigtsen [Mon, 28 Dec 2015 20:02:43 +0000 (21:02 +0100)]
* eww.el (eww-mode): Remove superfluous bidi reset.

9 years agoMake chunked encoding trailer detection more compliant
James Stout [Mon, 28 Dec 2015 19:49:57 +0000 (20:49 +0100)]
Make chunked encoding trailer detection more compliant

* lisp/url/url-http.el
(url-http-chunked-encoding-after-change-function): Make
trailer detection more compliant (bug#16345).

Copyright-paperwork-exempt: yes

9 years agoReconnect erc even on server errors
Lars Ingebrigtsen [Mon, 28 Dec 2015 19:52:41 +0000 (20:52 +0100)]
Reconnect erc even on server errors

* lisp/erc/erc-backend.el (erc-server-reconnect-p): Try to
reconnect even if a server error has occurred (bug#18527).

9 years agoFix punycode short circuit logic
Lars Ingebrigtsen [Mon, 28 Dec 2015 18:13:51 +0000 (19:13 +0100)]
Fix punycode short circuit logic

* puny.el (puny-encode-domain): Fix short-circuit logic.

9 years agoFix Bug#10873 in `report-emacs-bug'
Martin Rudalics [Mon, 28 Dec 2015 18:11:22 +0000 (19:11 +0100)]
Fix Bug#10873 in `report-emacs-bug'

* lisp/mail/emacsbug.el (report-emacs-bug): If
`report-emacs-bug-no-explanations' is nil, make sure we can show
mail and warnings buffer on this frame (Bug#10873).

9 years agoIDNA speed up
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:47:51 +0000 (18:47 +0100)]
IDNA speed up

* puny.el (puny-encode-domain): Make the common non-IDNA case faster

9 years agoAdd IDNA domain encode/decode functions
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:41:13 +0000 (18:41 +0100)]
Add IDNA domain encode/decode functions

* puny.el (puny-decode-domain): New function.
(puny-encode-domain): Ditto.
(puny-decode-digit): Fix digit decoding error.

9 years agoRename idna.el to puny.el
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:21:20 +0000 (18:21 +0100)]
Rename idna.el to puny.el

* puny.el: Renamed from idna.el to avoid name collisions with
the external idna.el library.

9 years agoAlways reset the bidi direction
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:11:56 +0000 (18:11 +0100)]
Always reset the bidi direction

* eww.el (eww-display-html): Always reset the bidi direction
to `left-to-right' (bug#22257).

9 years agoAllow line comments ending with escaped NL to be continued to the next line.
Alan Mackenzie [Mon, 28 Dec 2015 16:01:05 +0000 (16:01 +0000)]
Allow line comments ending with escaped NL to be continued to the next line.

Use this in C, C++, and Objective C Modes.  Fixes bug#22246

* src/syntax.c (comment-end-can-be-escaped): New buffer local variable.
(forw-comment, back-comment): On encountering an end of comment character,
test whether it is escaped when `comment-end-can-be-escaped' is non-nil.

* doc/lispref/syntax.texi (Control Parsing): Describe
`comment-end-can-be-escaped'.

* etc/NEWS (Lisp Changes): Describe `comment-end-can-be-escaped'.

* lisp/progmodes/cc-langs.el: New c-lang-setvar `comment-end-can-be-escaped'.

9 years agolisp/gnus/mml-sec.el (mml-secure-bcc-is-safe): Keep old Emacsen compatibility
Katsumi Yamaoka [Mon, 28 Dec 2015 05:34:12 +0000 (05:34 +0000)]
lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe): Keep old Emacsen compatibility

* lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe):
Don't use split-string with 4th arg for old Emacsen compatibility.

9 years agoRename project-library-roots to project-external-roots
Dmitry Gutov [Mon, 28 Dec 2015 04:17:19 +0000 (06:17 +0200)]
Rename project-library-roots to project-external-roots

* lisp/progmodes/project.el (project-library-roots): Rename to
project-external-roots.
(project-library-roots-function): Rename to
project-vc-external-roots-function.  Only use it in the VC
backend, for now.  Update project-external-roots accordingly.
(project-vc-library-roots): Remove.
(project-or-libraries-find-regexp):
Rename to project-or-external-find-regexp.

* lisp/progmodes/elisp-mode.el (elisp-library-roots):
Rename to elisp-load-path-roots.

* lisp/progmodes/etags.el (etags-library-roots): Remove.  Use
an anonymous function for the default value of
project-vc-external-roots-function.

9 years ago* idna.el (idna-decode-string-internal): Implement decoding.
Lars Ingebrigtsen [Mon, 28 Dec 2015 03:15:16 +0000 (04:15 +0100)]
* idna.el (idna-decode-string-internal): Implement decoding.

9 years agoFurther IDNA tweaks
Lars Ingebrigtsen [Mon, 28 Dec 2015 01:57:40 +0000 (02:57 +0100)]
Further IDNA tweaks

(idna-encode-string): Make idna-encode-string safe for
non-ASCII use.

9 years agoClean up the code slightly
Lars Ingebrigtsen [Mon, 28 Dec 2015 01:55:52 +0000 (02:55 +0100)]
Clean up the code slightly

9 years agoAdded basic idna encoding support
Lars Ingebrigtsen [Mon, 28 Dec 2015 01:46:50 +0000 (02:46 +0100)]
Added basic idna encoding support

* lisp/net/idna.el: New file.

9 years agoDisconnection fixes for erc
Vivek Dasmohapatra [Sun, 27 Dec 2015 22:28:52 +0000 (23:28 +0100)]
Disconnection fixes for erc

* lisp/erc/erc-backend.el (erc-server-reconnect-p): Don't
reconnect if the user has disconnected explicitly (bug#4589).

9 years agoFurther erc asynch fixes
Thomas Riccardi [Sun, 27 Dec 2015 22:14:13 +0000 (23:14 +0100)]
Further erc asynch fixes

* lisp/erc/erc-backend.el (erc-process-sentinel-2): Make
erc-server-connect to return even if the connection is not
ready.  Then erc-open and erc-server-reconnect do the
same. (bug#5650).

Copyright-paperwork-exempt: yes

9 years agoMake erc connect asynchronously
Vivek Dasmohapatra [Sun, 27 Dec 2015 22:12:30 +0000 (23:12 +0100)]
Make erc connect asynchronously

* lisp/erc/erc-backend.el (erc-server-reconnect): Use it to
reconnect asynchronously.

* lisp/erc/erc-backend.el (erc-open-network-stream): New function (bug#5650).

9 years agoClear erc user list upon disconnection
Deniz Dogan [Sun, 27 Dec 2015 21:36:55 +0000 (22:36 +0100)]
Clear erc user list upon disconnection

* lisp/erc/erc-backend.el (erc-process-sentinel): Clear channel user
lists upon disconnection.  This prevents invalid channel
user lists when reconnecting (bug#10947).

9 years agoDon't bug out in erc after waking from sleep
Lars Ingebrigtsen [Sun, 27 Dec 2015 21:18:32 +0000 (22:18 +0100)]
Don't bug out in erc after waking from sleep

* erc-backend.el (erc-server-send-ping): If the server has
closed connection, this may already have been detected and
`erc-server-last-received-time' has been set to nil (bug#13608).

9 years agoProxy error in erc with multiple clients
David Edmondson [Sun, 27 Dec 2015 20:33:01 +0000 (21:33 +0100)]
Proxy error in erc with multiple clients

* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).

Backport:

(cherry picked from commit 507e98a54d1aa37823c64993d6b59257a82fe8f4)

9 years agoProxy error in erc with multiple clients
David Edmondson [Sun, 27 Dec 2015 20:33:01 +0000 (21:33 +0100)]
Proxy error in erc with multiple clients

* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).

9 years agoEnsure that we don't have several timers in erc
Dima Kogan [Sun, 27 Dec 2015 20:19:13 +0000 (21:19 +0100)]
Ensure that we don't have several timers in erc

* lisp/erc/erc-backend.el (erc-server-setup-periodical-ping): Checks
for existing timers in the alist before adding new ones.  If a
timer already exists, it is cancelled and
overwritten. (bug#19292).

9 years agoFix mml-sec build warnings
Jens Lechtenboerger [Sun, 27 Dec 2015 20:12:16 +0000 (21:12 +0100)]
Fix mml-sec build warnings

* lisp/gnus/mml-sec.el: Fix warnings by adding autoloads
(bug#18718).

Backport:

(cherry picked from commit 3603097f62f5f4aa5451716e9ac380161f6829e2)

9 years agoFix mml-sec build warnings
Jens Lechtenboerger [Sun, 27 Dec 2015 20:12:16 +0000 (21:12 +0100)]
Fix mml-sec build warnings

* lisp/gnus/mml-sec.el: Fix warnings by adding autoloads
(bug#18718).

9 years agoDon't insert erc logs at the end
Lars Ingebrigtsen [Sun, 27 Dec 2015 20:08:01 +0000 (21:08 +0100)]
Don't insert erc logs at the end

* erc-log.el (erc-log-setup-logging): Insert the previous log
at the start of the buffer, not at the end (bug#20496).

9 years ago(eww-setup-buffer): Restore left-to-right defaults
Lars Ingebrigtsen [Sun, 27 Dec 2015 19:35:05 +0000 (20:35 +0100)]
(eww-setup-buffer): Restore left-to-right defaults

* eww.el (eww-setup-buffer): Restore left-to-right defaults.

Backport:

(cherry picked from commit 96c874b96b617c124d500a94de761a61f2a08685)

9 years ago(eww-setup-buffer): Restore left-to-right defaults
Lars Ingebrigtsen [Sun, 27 Dec 2015 19:35:05 +0000 (20:35 +0100)]
(eww-setup-buffer): Restore left-to-right defaults

* eww.el (eww-setup-buffer): Restore left-to-right defaults.

9 years agoDon't join erc channels doubly
Lars Ingebrigtsen [Sun, 27 Dec 2015 19:25:57 +0000 (20:25 +0100)]
Don't join erc channels doubly

* erc-join.el (erc-autojoin-channels): Don't join channels
more than once (if you have several nicks) (bug#20695).

9 years agoAvoid leaving "ghost" of mouse pointer on MS-Windows
Eli Zaretskii [Sun, 27 Dec 2015 18:52:21 +0000 (20:52 +0200)]
Avoid leaving "ghost" of mouse pointer on MS-Windows

* src/w32term.c (frame_set_mouse_pixel_position):
* src/w32fns.c (Fw32_mouse_absolute_pixel_position): Momentarily
disable "mouse trails" when moving the mouse pointer.  (Bug#22247)
* src/w32term.c (frame_set_mouse_pixel_position): Include
w32common.h.

9 years ago* lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe): Fix typo in last check-in.
Lars Ingebrigtsen [Sun, 27 Dec 2015 18:24:58 +0000 (19:24 +0100)]
* lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe): Fix typo in last check-in.

9 years agoIdentify unsafe combinations of Bcc and encryption
Jens Lechtenboerger [Sun, 27 Dec 2015 18:22:56 +0000 (19:22 +0100)]
Identify unsafe combinations of Bcc and encryption

* lisp/gnus/gnus-util.el (gnus-subsetp): New function
* lisp/gnus/mml-sec.el (mml-secure-safe-bcc-list): New variable
* lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe): New function

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 27 Dec 2015 11:23:49 +0000 (06:23 -0500)]
; Auto-commit of ChangeLog files.

9 years agoFix auth source lookups from erc with port numbers
Krzysztof Jurewicz [Sun, 27 Dec 2015 08:04:02 +0000 (09:04 +0100)]
Fix auth source lookups from erc with port numbers

* lisp/erc/erc.el (erc-open): `auth-source' wants strings, not port
numbers (bug#20541).

Copyright-paperwork-exempt: yes

9 years agoRun erc-kill-channel-hook always on exit
Fran Litterio [Sun, 27 Dec 2015 07:56:45 +0000 (08:56 +0100)]
Run erc-kill-channel-hook always on exit

* lisp/erc/erc.el (erc-kill-buffer-function): Run erc-kill-channel-hook
when erc-kill-queries-on-quit is set (bug#21187).

9 years ago* shr.el (shr-descend): Allow using lambdas in external functions.
Lars Ingebrigtsen [Sun, 27 Dec 2015 06:18:29 +0000 (07:18 +0100)]
* shr.el (shr-descend): Allow using lambdas in external functions.

9 years agoSpelling fix
Paul Eggert [Sat, 26 Dec 2015 23:39:40 +0000 (15:39 -0800)]
Spelling fix

* test/automated/url-parse-tests.el:
(url-generic-parse-url/same-document-reference):
Rename from url-generic-parse-url/same-decument-reference.

9 years agoReword initial *scratch* for brevity, appearance
Paul Eggert [Sat, 26 Dec 2015 23:22:28 +0000 (15:22 -0800)]
Reword initial *scratch* for brevity, appearance

* lisp/startup.el (initial-scratch-message):
Reword to avoid apostrophes, and to make it shorter.
See the thread starting in:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg01241.html

9 years agoAdd ert-deftest to lisp-mode.el
Leo Liu [Sat, 26 Dec 2015 20:44:11 +0000 (04:44 +0800)]
Add ert-deftest to lisp-mode.el

* lisp-mode.el (lisp-imenu-generic-expression,
  lisp-el-font-lock-keywords-1): Add ert-deftest.

9 years agoMark imap changes as not needing doc changes
Lars Ingebrigtsen [Sat, 26 Dec 2015 20:48:10 +0000 (21:48 +0100)]
Mark imap changes as not needing doc changes

9 years ago* imap.el (imap-ssl-open): Remove
Lars Ingebrigtsen [Sat, 26 Dec 2015 20:47:20 +0000 (21:47 +0100)]
* imap.el (imap-ssl-open): Remove

9 years agoUse built-in encryption in imap.el
Lars Ingebrigtsen [Sat, 26 Dec 2015 20:45:51 +0000 (21:45 +0100)]
Use built-in encryption in imap.el

* lisp/net/imap.el (imap-ssl-program): Remove (bug#21134).
(imap-starttls-open): Use open-network-stream instead of starttls.el.
(imap-tls-open): Use open-network-stream instead of tls.el.

9 years agoDon't try using /bin/sh in artist.el on MS-Windows
Eli Zaretskii [Sat, 26 Dec 2015 20:35:48 +0000 (22:35 +0200)]
Don't try using /bin/sh in artist.el on MS-Windows

* lisp/textmodes/artist.el (artist-figlet-get-font-list-windows):
New function.
(artist-figlet-choose-font): Use it on MS-Windows and MS-DOS.
(Bug#20167)

9 years agoAlways define gmalloc etc. in src/gmalloc.c
Wolfgang Jenkner [Sat, 26 Dec 2015 20:12:02 +0000 (12:12 -0800)]
Always define gmalloc etc. in src/gmalloc.c

This is a work-around to prevent the compiler from using semantic
knowledge about malloc for optimization purposes.  E.g., gcc 5.2
with -O2 replaces most of calloc's definition by a call to calloc;
see Bug#22085.
* src/gmalloc.c [!HYBRID_MALLOC] (malloc, realloc, calloc)
(aligned_alloc, free): Do not undef.  Instead, define these as
functions (perhaps renamed to gmalloc etc.) in terms of gmalloc etc.

9 years agoFix documentation of browse-url browser-related functions
Eli Zaretskii [Sat, 26 Dec 2015 18:47:42 +0000 (20:47 +0200)]
Fix documentation of browse-url browser-related functions

* lisp/net/browse-url.el (browse-url)
(browse-url-default-browser, browse-url-default-windows-browser)
(browse-url-default-macosx-browser, browse-url-chromium)
(browse-url-kde, browse-url-text-xterm): Clarify the usage of ARGS
and NEW-WINDOW arguments in these functions.  (Bug#19421)

9 years agoPropagate Bug#14412 fix to backtrace_eval_unrewind
Paul Eggert [Sat, 26 Dec 2015 17:30:22 +0000 (09:30 -0800)]
Propagate Bug#14412 fix to backtrace_eval_unrewind

* src/eval.c (unbind_to): Redo so that the FALLTHROUGH!! comment
becomes accurate again. This shouldn’t affect behavior.
(backtrace_eval_unrewind): Apply the recent unbind_to fix here, too.

9 years ago; * etc/NEWS: Update entries for VHDL and Calculator.
Eli Zaretskii [Sat, 26 Dec 2015 17:08:15 +0000 (19:08 +0200)]
; * etc/NEWS: Update entries for VHDL and Calculator.

9 years agoDon't produce non-ASCII characters in *scratch*
Eli Zaretskii [Sat, 26 Dec 2015 16:58:04 +0000 (18:58 +0200)]
Don't produce non-ASCII characters in *scratch*

* lisp/startup.el (initial-scratch-message): Quote apostrophes to
avoid producing non-ASCII characters in the *scratch* buffer's
commentary.

9 years agoDocument changes in 'compare-windows'
Eli Zaretskii [Sat, 26 Dec 2015 16:30:07 +0000 (18:30 +0200)]
Document changes in 'compare-windows'

* lisp/vc/compare-w.el (compare-windows-removed)
(compare-windows-added): Doc fix.

* doc/emacs/files.texi (Comparing Files): Document the changes in
window selection by 'compare-windows'.

9 years agoDocument 'vc-annotate-background-mode'
Eli Zaretskii [Sat, 26 Dec 2015 16:04:03 +0000 (18:04 +0200)]
Document 'vc-annotate-background-mode'

* doc/emacs/maintaining.texi (Old Revisions): Document
'vc-annotate-background-mode'.

9 years agoDocument 'vc-region-history'
Eli Zaretskii [Sat, 26 Dec 2015 15:52:53 +0000 (17:52 +0200)]
Document 'vc-region-history'

* doc/emacs/maintaining.texi (VC Change Log): Document
'vc-region-history'.

9 years agoImprove documentation of 'vc-push'
Eli Zaretskii [Sat, 26 Dec 2015 15:09:25 +0000 (17:09 +0200)]
Improve documentation of 'vc-push'

* doc/emacs/maintaining.texi (Pulling / Pushing): Expand and
improve the documentation of 'vc-push'.

* lisp/vc/vc.el (vc-pull, vc-push): Doc fix.

9 years ago; * etc/NEWS: Document new features of SQL Mode.
Eli Zaretskii [Sat, 26 Dec 2015 14:30:22 +0000 (16:30 +0200)]
; * etc/NEWS: Document new features of SQL Mode.

9 years agoInclude the tests for the URL parsing fixes
Alain Schneble [Sat, 26 Dec 2015 13:52:43 +0000 (14:52 +0100)]
Include the tests for the URL parsing fixes

9 years agoMake relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
Alain Schneble [Fri, 25 Dec 2015 23:50:25 +0000 (00:50 +0100)]
Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)

* test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
* test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
* lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
information in URL-struct.
* lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
path and query into nil path and query, respectively.
* lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
empty path into an absolute ("/") path.
* lisp/url/url-expand.el (url-expand-file-name): Properly resolve
fragment-only URIs. Do not just return them unchanged.
* lisp/url/url-expand.el (url-default-expander): An empty path in the relative
reference URI should not drop the last segment.

Backport:

(cherry picked from commit b792ecea1715e080ad8e232d3d154b8a25d2edfb)

9 years ago; * etc/NEWS: Mark some URL entries as not requiring documentation changes
Eli Zaretskii [Sat, 26 Dec 2015 13:49:42 +0000 (15:49 +0200)]
; * etc/NEWS: Mark some URL entries as not requiring documentation changes

9 years agoDocument 'url-user-agent'.
Eli Zaretskii [Sat, 26 Dec 2015 13:31:32 +0000 (15:31 +0200)]
Document 'url-user-agent'.

* lisp/url/url-http.el (url-user-agent): Move from here...
* lisp/url/url-vars.el (url-user-agent): ...to here.  This is to
keep all the URL defcustoms in one place, and also have it defined
whenever the URL library is loaded.

* doc/misc/url.texi (Customization): Document 'url-user-agent'.

9 years agoDocument protocols supported by URL library via Tramp
Eli Zaretskii [Sat, 26 Dec 2015 12:59:50 +0000 (14:59 +0200)]
Document protocols supported by URL library via Tramp

* doc/misc/url.texi (Tramp): New node, describes the URL schemes
supported via Tramp.
(Supported URL Types, file/ftp, rlogin/telnet/tn3270): Mention
Tramp.

9 years agoDocument changes in Shell-script mode
Eli Zaretskii [Sat, 26 Dec 2015 11:48:00 +0000 (13:48 +0200)]
Document changes in Shell-script mode

* lisp/progmodes/sh-script.el (sh-mode, sh-set-shell): Document
the 'sh-shell' file-local variable.
(top level): Add an auto-load form to avoid byte-compiler warning
about 'comint-send-string'.

9 years agoFix documentation of 'ses-define-local-printer'
Eli Zaretskii [Sat, 26 Dec 2015 11:16:15 +0000 (13:16 +0200)]
Fix documentation of 'ses-define-local-printer'

* doc/misc/ses.texi (Printer functions): Fix whitespace between
sentences and punctuation.  Add an index entry for
'ses-define-local-printer'.

9 years agoDocument 'ert-summarize-tests-batch-and-exit'
Shakthi Kannan [Sat, 26 Dec 2015 11:05:06 +0000 (13:05 +0200)]
Document 'ert-summarize-tests-batch-and-exit'

* doc/misc/ert.texi (Running Tests in Batch Mode): Document
'ert-summarize-tests-batch-and-exit'.

9 years agoAvoid assertion violation in unbind_to
Eli Zaretskii [Sat, 26 Dec 2015 10:43:08 +0000 (12:43 +0200)]
Avoid assertion violation in unbind_to

* src/eval.c (unbind_to) <SPECPDL_LET>: Avoid assertion violation
if we get here with an object that is not a symbol.  (Bug#14412)