]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoUpdate doc string of 'selective-display'
Eli Zaretskii [Tue, 5 Jan 2016 15:49:50 +0000 (17:49 +0200)]
Update doc string of 'selective-display'

* src/buffer.c (syms_of_buffer) <selective-display>: Say that
using it with the value of 't' is obsolete.  (Bug#1092)

8 years agoMake C++ buffers writeable when writing their initial text properties.
Alan Mackenzie [Tue, 5 Jan 2016 10:30:55 +0000 (10:30 +0000)]
Make C++ buffers writeable when writing their initial text properties.

This is a correction to yesterday's CC Mode patch.

* lisp/progmodes/cc-engine.el (c-before-change-check-<>-operators): Put
c-save-buffer-state around the function rather than a mere `let'.

8 years agoAdditional changes for "make check-expensive"
Michael Albinus [Tue, 5 Jan 2016 08:47:41 +0000 (09:47 +0100)]
Additional changes for "make check-expensive"

* CONTRIBUTE : Encourage use of ":tags '(:expensive-test)".
Explain make target `check-expensive'.

* etc/NEWS: Mention new make target `check-expensive'.

* test/automated/Makefile.in (check-doit): New target.
(check, check-expensive): Use it.

8 years ago; * admin/MAINTAINERS: Remove myself.
Xue Fuqiao [Tue, 5 Jan 2016 02:28:25 +0000 (10:28 +0800)]
; * admin/MAINTAINERS: Remove myself.

; Lack of time.

8 years agoApply text properties for <, > in new after-change function (C++ Java Modes).
Alan Mackenzie [Mon, 4 Jan 2016 22:29:33 +0000 (22:29 +0000)]
Apply text properties for <, > in new after-change function (C++ Java Modes).

These are category/syntax-table properties to give < and > paren syntax.
Also apply certain `c-type' text properties to the insides of <..> constructs
to ensure that identifiers contained by them get fontified.  This patch fixes
bug #681.

* lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Reformulate due to new
after-change action.

* lisp/progmodes/cc-engine.el (c-before-change-check-<>-operators): Expand
change region to include <s and >s which might not be already marked as
parens, rather than just when paren text properties are removed.
(c-restore-<>-properties): New after-change function, which applies text
properties marking < and > with paren syntax.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarations): Ensure `c-type'
properties are applied to the interiors of <...> constructs, to ensure
fontification of identifiers there.

* lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Add
c-restore-<>-properties to this list for C++ and Java.

* lisp/progmodes/cc-mode.el (c-common-init): When invoking
c-before-font-lock-functions, exclude c-restore-<>-properties from the
functions invoked.
(c-before-change): Initialize c-new-BEG/END here (rather than c-after-change)
to allow modification by before-change functions.
(c-after-change): Amend c-new-END here, rather than initializing it and
c-new-BEG.

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Michael Albinus [Mon, 4 Jan 2016 22:28:23 +0000 (23:28 +0100)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoIntroduce check-expensive tests.
Michael Albinus [Mon, 4 Jan 2016 22:28:07 +0000 (23:28 +0100)]
Introduce check-expensive tests.

* Makefile.in (check-expensive):
* test/automated/Makefile.in (check-expensive): New target.

* test/automated/auto-revert-tests.el
(auto-revert-test01-auto-revert-several-files):
* test/automated/file-notify-tests.el (file-notify--deftest-remote):
* test/automated/tramp-tests.el (tramp-test26-process-file)
(tramp-test27-start-file-process, tramp-test28-shell-command)
(tramp-test29-vc-registered)
(tramp-test31-special-characters-with-stat)
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls)
(tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl)
(tramp-test32-utf8-with-ls, tramp-test33-asynchronous-requests)
(tramp-test35-unload): Tag the tests as :expensive-test.

8 years agoshr-tag-video bug fix
Lars Magne Ingebrigtsen [Mon, 4 Jan 2016 22:03:16 +0000 (23:03 +0100)]
shr-tag-video bug fix

* shr.el (shr-tag-video): Protect against the `poster' being
empty.

8 years agoMinor fixes in tramp-tests.el
Michael Albinus [Mon, 4 Jan 2016 18:25:39 +0000 (19:25 +0100)]
Minor fixes in tramp-tests.el

* test/automated/tramp-tests.el (tramp-test26-process-file):
Move point properly.
(tramp-test29-vc-registered): Work with relative file names.

8 years agoEnsure redisplay when 'truncate-lines' is set
Eli Zaretskii [Mon, 4 Jan 2016 17:08:37 +0000 (19:08 +0200)]
Ensure redisplay when 'truncate-lines' is set

* lisp/frame.el (redisplay--variables): Add 'truncate-lines'.
(Bug#22303)

8 years agoFix a doc string of 'transient-mark-mode'
Eli Zaretskii [Mon, 4 Jan 2016 16:58:20 +0000 (18:58 +0200)]
Fix a doc string of 'transient-mark-mode'

* src/buffer.c (syms_of_buffer) <transient-mark-mode>: Prevent
"lambda" in doc string from becoming a link to lambda expressions.

8 years agoMS-Windows followup to latest gnulib update
Eli Zaretskii [Mon, 4 Jan 2016 16:25:21 +0000 (18:25 +0200)]
MS-Windows followup to latest gnulib update

* nt/gnulib.mk (EXTRA_DIST): Add ignore-value.h.

8 years agoSpelling fix
Paul Eggert [Mon, 4 Jan 2016 07:51:44 +0000 (23:51 -0800)]
Spelling fix

8 years agoDo secure signed Bcc handling
Jens Lechtenboerger [Mon, 4 Jan 2016 00:56:11 +0000 (01:56 +0100)]
Do secure signed Bcc handling

* lisp/gnus/message.el (message-send): Do secure signed Bcc handling
(bug#18718).

8 years agoAvoid stdio in SIGINT handler
Paul Eggert [Sun, 3 Jan 2016 23:00:49 +0000 (15:00 -0800)]
Avoid stdio in SIGINT handler

* admin/merge-gnulib (GNULIB_MODULES): Add ignore-value.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/ignore-value.h: New file, from gnulib.
* src/keyboard.c: Include it.
(write_stdout, read_stdin): New functions.
(handle_interrupt): Use them instead of printf and getchar,
and avoid fflush when handling signals.

8 years ago* doc/misc/texinfo.tex: Revert unwanted copyright change.
Paul Eggert [Sun, 3 Jan 2016 22:47:05 +0000 (14:47 -0800)]
* doc/misc/texinfo.tex: Revert unwanted copyright change.

8 years ago; * etc/refcards/ru-refcard.tex (cyear): Update via M-x set-copyright.
Glenn Morris [Sun, 3 Jan 2016 19:32:57 +0000 (11:32 -0800)]
; * etc/refcards/ru-refcard.tex (cyear): Update via M-x set-copyright.

8 years ago* lisp/align.el (align): Simplify a lambda
Artur Malabarba [Sun, 3 Jan 2016 16:58:35 +0000 (16:58 +0000)]
* lisp/align.el (align): Simplify a lambda

8 years ago* lisp/align.el (align): Fix arg order in call to `align-region'
Artur Malabarba [Sun, 3 Jan 2016 16:57:12 +0000 (16:57 +0000)]
* lisp/align.el (align): Fix arg order in call to `align-region'

8 years agoFix compilation next-error in buffers with selective-display
Eli Zaretskii [Sun, 3 Jan 2016 15:22:06 +0000 (17:22 +0200)]
Fix compilation next-error in buffers with selective-display

* lisp/progmodes/compile.el (compilation-beginning-of-line): New
function.
(compilation-internal-error-properties)
(compilation-next-error-function, compilation-set-window): Use
it.  (Bug#1092)

8 years ago* nsm.el (nsm-check-protocol): Fix typo in the message.
Lars Magne Ingebrigtsen [Sun, 3 Jan 2016 11:19:13 +0000 (12:19 +0100)]
* nsm.el (nsm-check-protocol): Fix typo in the message.

8 years agoAdd SHA1 warnings for high network security settings
Lars Magne Ingebrigtsen [Sun, 3 Jan 2016 09:41:51 +0000 (10:41 +0100)]
Add SHA1 warnings for high network security settings

* nsm.el (nsm-check-protocol): When using high security, warn
about SHA1 certificates, which are now believed to be open to
spoofing.

8 years ago; * etc/NEWS: Typo fix.
Xue Fuqiao [Sun, 3 Jan 2016 01:12:56 +0000 (09:12 +0800)]
; * etc/NEWS: Typo fix.

8 years agoRefactor mml-smime.el, mml1991.el, mml2015.el
Jens Lechtenboerger [Sun, 3 Jan 2016 01:10:34 +0000 (01:10 +0000)]
Refactor mml-smime.el, mml1991.el, mml2015.el

(Maybe this is the last merge from Gnus git to Emacs git)

Cf. discussion on ding mailing list, messages in
<http://thread.gmane.org/gmane.emacs.gnus.general/86228>.
Common code from the three files mml-smime.el, mml1991.el, and
mml2015.el is moved to mml-sec.el.  Auxiliary functions are added
to gnus-util.el.

The code is supported by test cases with necessary test keys.

Documentation in message.texi is updated.

* doc/misc/message.texi (Security, Using S/MIME):
Update for refactoring mml-smime.el, mml1991.el, mml2015.el.
(Using OpenPGP): Rename from "Using PGP/MIME"; update contents.
(Passphrase caching, Encrypt-to-self, Bcc Warning): New sections.

* lisp/gnus/gnus-util.el (gnus-test-list, gnus-subsetp, gnus-setdiff):
New functions.

* lisp/gnus/mml-sec.el: Require gnus-util and epg.
(epa--select-keys): Autoload.
(mml-signencrypt-style-alist, mml-secure-cache-passphrase): Doc fix.
(mml-secure-openpgp-signers): New user option;
make mml1991-signers and mml2015-signers obsolete aliases to it.
(mml-secure-smime-signers): New user option;
make mml-smime-signers an obsolete alias to it.
(mml-secure-openpgp-encrypt-to-self): New user option;
make mml1991-encrypt-to-self and mml2015-encrypt-to-self obsolete
aliases to it.
(mml-secure-smime-encrypt-to-self): New user option;
make mml-smime-encrypt-to-self an obsolete alias to it.
(mml-secure-openpgp-sign-with-sender): New user option;
make mml2015-sign-with-sender an obsolete alias to it.
(mml-secure-smime-sign-with-sender): New user option;
make mml-smime-sign-with-sender an obsolete alias to it.
(mml-secure-openpgp-always-trust): New user option;
make mml2015-always-trust an obsolete alias to it.
(mml-secure-fail-when-key-problem, mml-secure-key-preferences):
New user options.
(mml-secure-cust-usage-lookup, mml-secure-cust-fpr-lookup)
(mml-secure-cust-record-keys, mml-secure-cust-remove-keys)
(mml-secure-add-secret-key-id, mml-secure-clear-secret-key-id-list)
(mml-secure-cache-passphrase-p, mml-secure-cache-expiry-interval)
(mml-secure-passphrase-callback, mml-secure-check-user-id)
(mml-secure-secret-key-exists-p, mml-secure-check-sub-key)
(mml-secure-find-usable-keys, mml-secure-select-preferred-keys)
(mml-secure-fingerprint, mml-secure-filter-keys)
(mml-secure-normalize-cust-name, mml-secure-select-keys)
(mml-secure-select-keys-1, mml-secure-signer-names, mml-secure-signers)
(mml-secure-self-recipients, mml-secure-recipients)
(mml-secure-epg-encrypt, mml-secure-epg-sign): New functions.

* lisp/gnus/mml-smime.el: Require epg;
refactor declaration and autoloading of epg functions.
(mml-smime-use): Doc fix.
(mml-smime-cache-passphrase, mml-smime-passphrase-cache-expiry):
Obsolete.
(mml-smime-get-dns-cert, mml-smime-get-ldap-cert):
Use format instead of gnus-format-message.
(mml-smime-epg-secret-key-id-list): Remove variable.
(mml-smime-epg-passphrase-callback, mml-smime-epg-find-usable-key)
(mml-smime-epg-find-usable-secret-key): Remove functions.
(mml-smime-epg-sign, mml-smime-epg-encrypt): Refactor.

* lisp/gnus/mml1991.el (mml1991-cache-passphrase)
(mml1991-passphrase-cache-expiry): Obsolete.
(mml1991-epg-secret-key-id-list): Remove variable.
(mml1991-epg-passphrase-callback, mml1991-epg-find-usable-key)
(mml1991-epg-find-usable-secret-key): Remove functions.
(mml1991-epg-sign, mml1991-epg-encrypt): Refactor.

* lisp/gnus/mml2015.el (mml2015-cache-passphrase)
(mml2015-passphrase-cache-expiry): Obsolete.
(mml2015-epg-secret-key-id-list): Remove variable.
(mml2015-epg-passphrase-callback, mml2015-epg-check-user-id)
(mml2015-epg-check-sub-key, mml2015-epg-find-usable-key)
(mml2015-epg-find-usable-secret-key): Remove functions.
(mml2015-epg-decrypt, mml2015-epg-clear-decrypt, mml2015-epg-sign)
(mml2015-epg-encrypt): Refactor.

8 years ago; Clarify that xref is still experimental
Dmitry Gutov [Sun, 3 Jan 2016 00:03:29 +0000 (02:03 +0200)]
; Clarify that xref is still experimental

8 years ago; * admin/release-process: Remove some obsolete records.
Glenn Morris [Sat, 2 Jan 2016 18:33:17 +0000 (10:33 -0800)]
; * admin/release-process: Remove some obsolete records.

8 years ago* lisp/progmodes/fortran.el (fortran-make-syntax-propertize-function):
Glenn Morris [Sat, 2 Jan 2016 18:16:03 +0000 (10:16 -0800)]
* lisp/progmodes/fortran.el (fortran-make-syntax-propertize-function):

Explicitly ignore case.  (Bug#22262)

8 years ago(semantic-symref-derive-find-filepatterns): Return a list
Stefan Monnier [Sat, 2 Jan 2016 18:03:42 +0000 (13:03 -0500)]
(semantic-symref-derive-find-filepatterns): Return a list

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-derive-find-filepatterns): Return a list.
(semantic-symref-perform-search): Quote the result here once and for all.

8 years ago; Re-arrange xref-related entries in NEWS.
Eli Zaretskii [Sat, 2 Jan 2016 16:05:44 +0000 (18:05 +0200)]
; Re-arrange xref-related entries in NEWS.

8 years agoFix xref-find-references on MS-Windows
Eli Zaretskii [Sat, 2 Jan 2016 15:24:48 +0000 (17:24 +0200)]
Fix xref-find-references on MS-Windows

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-derive-find-filepatterns): Use
'shell-quote-argument' instead of manually quoting in a way that
only works with Posix shells.  (Bug#22289)

8 years ago; Fixed visual bell artifact problem on NextStep.
Anders Lindgren [Sat, 2 Jan 2016 14:54:01 +0000 (15:54 +0100)]
; Fixed visual bell artifact problem on NextStep.

* src/nsterm.m (EmacsBell): Add feature to remove visual bell
  unconditionally.
  (hide_bell): New function.
  (ns_copy_bits): Hide visible bell before scrolling the frame content.

8 years agoDocument new features of tildify-mode
Eli Zaretskii [Sat, 2 Jan 2016 12:48:38 +0000 (14:48 +0200)]
Document new features of tildify-mode

* lisp/textmodes/tildify.el (tildify-foreach-ignore-environments)
(tildify-mode): Spelling fixes in doc strings.

* etc/NEWS: Reformat the tildify-mode entry.

8 years agoDocument new features of Whitespace mode
Eli Zaretskii [Sat, 2 Jan 2016 12:06:02 +0000 (14:06 +0200)]
Document new features of Whitespace mode

* doc/emacs/display.texi (Useless Whitespace): Document
'whitespace-toggle-options' and the new 'big-indent' style.
Document 'whitespace-big-indent-regexp'.  Document the Global
Whitespace mode.

8 years agoImprove documentation of new Hide-IfDef features
Eli Zaretskii [Sat, 2 Jan 2016 10:36:28 +0000 (12:36 +0200)]
Improve documentation of new Hide-IfDef features

* etc/NEWS: Expand and reword Hide-IfDef section.

8 years agoFix regression in font-locking cl-assert and cl-check-type
Leo Liu [Sat, 2 Jan 2016 07:48:44 +0000 (15:48 +0800)]
Fix regression in font-locking cl-assert and cl-check-type

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Fix
  el-errs-re.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Jan 2016 12:23:33 +0000 (07:23 -0500)]
; Auto-commit of loaddefs files.

8 years agoSpelling and grammar fixes
Paul Eggert [Fri, 1 Jan 2016 09:58:41 +0000 (01:58 -0800)]
Spelling and grammar fixes

8 years agoFix copyright years by hand
Paul Eggert [Fri, 1 Jan 2016 09:38:07 +0000 (01:38 -0800)]
Fix copyright years by hand

These are dates that admin/update-copyright did not update, or
updated incorrectly.

8 years agoUpdate copyright year to 2016
Paul Eggert [Fri, 1 Jan 2016 09:16:19 +0000 (01:16 -0800)]
Update copyright year to 2016

Run admin/update-copyright.

8 years agoMerge from gnulib
Paul Eggert [Fri, 1 Jan 2016 09:12:52 +0000 (01:12 -0800)]
Merge from gnulib

This mostly just updates copyright dates of gnulib files.
It also updates to the latest version of texinfo.tex.

8 years agolisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.
Mark Oteiza [Thu, 31 Dec 2015 18:33:35 +0000 (13:33 -0500)]
lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler.

8 years agoPort chart.el methods to cl-generic.
Mark Oteiza [Thu, 31 Dec 2015 18:26:43 +0000 (13:26 -0500)]
Port chart.el methods to cl-generic.

cl-call-next-method cannot be used inside EIEIO's defmethod.
* lisp/emacs-lisp/chart.el: Require cl-generic at compile time.
* lisp/emacs-lisp/chart.el (initialize-instance, chart-draw):
(chart-draw-title, chart-size-in-dir, chart-draw-axis):
(chart-axis-draw, chart-translate-xpos, chart-translate-ypos):
(chart-translate-namezone, chart-draw-data, chart-add-sequence):
(chart-trim, chart-sort): Use cl-defmethod instead of defmethod.

8 years agoAdd nt/INSTALL.W64 build instructions
Brian Burns [Thu, 31 Dec 2015 17:00:16 +0000 (19:00 +0200)]
Add nt/INSTALL.W64 build instructions

* nt/INSTALL.W64: New file.
* nt/INSTALL: Point to INSTALL.W64 for 64-bit build instructions.

8 years agoAdd new input method 'programmer-dvorak'
Joakim Jalap [Thu, 31 Dec 2015 16:01:45 +0000 (18:01 +0200)]
Add new input method 'programmer-dvorak'

* lisp/leim/quail/programmer-dvorak.el ("programmer-dvorak"): New
input method.

* etc/NEWS: Mention it.

8 years agoAllow to invoke original M-TAB binding in 'flyspell-prog-mode'
Eli Zaretskii [Thu, 31 Dec 2015 15:44:07 +0000 (17:44 +0200)]
Allow to invoke original M-TAB binding in 'flyspell-prog-mode'

* lisp/textmodes/flyspell.el (flyspell-prog-mode): Record the
original M-TAB binding in a buffer-local variable.
(flyspell-auto-correct-word): Invoke the original binding of M-TAB
if that is recorded, when point is in a place where flyspell
should not be active (e.g., because the user turned on
'flyspell-prog-mode').  (Bug#18533)

8 years agoFix EWW rendering of long RTL lines
Eli Zaretskii [Thu, 31 Dec 2015 15:18:25 +0000 (17:18 +0200)]
Fix EWW rendering of long RTL lines

* lisp/net/shr.el (shr-insert-document): Undo any previous hscroll
of the selected window before filling its lines.  (Bug#22250)

8 years agofix bug#21054
Vincent Belaïche [Thu, 31 Dec 2015 08:21:46 +0000 (09:21 +0100)]
fix  bug#21054

* ses.el (ses-check-curcell): Call `ses-set-curcell' unconditionally

8 years agoClean up cairo printing code
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 05:18:09 +0000 (14:18 +0900)]
Clean up cairo printing code

* src/gtkutil.c (xg_get_page_setup): Use listn.
* src/xfns.c (Fx_export_frames, Fx_print_frames_dialog): Doc fix.  Use
decode_window_system_frame and FRAME_VISIBLE_P.
(Fx_print_frames_dialog): Use redisplay_preserve_echo_area instead
of Fdisplay.
* src/xterm.c (x_cr_export_frames): Use redisplay_preserve_echo_area
instead of Fdisplay.  Temporarily unblock_input around QUIT.

8 years agoMove variables to inner loop, preparing for Mac port merge
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 02:28:16 +0000 (11:28 +0900)]
Move variables to inner loop, preparing for Mac port merge

* src/keyboard.c (command_loop_1): Move variables `cmd',
`keybuf', and `i' to inner loop.

8 years agoAdd handle_user_signal_hook
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 02:17:35 +0000 (11:17 +0900)]
Add handle_user_signal_hook

* src/keyboard.h (handle_user_signal_hook): New declaration.
* src/keyboard.c (handle_user_signal_hook): New variable.
(handle_user_signal): Call it.

8 years agoAvoid writing to purespace
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:59:40 +0000 (10:59 +0900)]
Avoid writing to purespace

* src/alloc.c (Fmake_string): Don't write to empty string contents.
(allocate_vector): Don't write to empty vector size.
* src/character.h (CHECK_CHARACTER_CAR, CHECK_CHARACTER_CDR):
Don't call unnecessary XSETCAR or XSETCDR.
* src/lisp.h (STRING_SET_UNIBYTE, STRING_SET_MULTIBYTE): Don't
write to empty string size_byte.

8 years agoRemove unused variable
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:43:57 +0000 (10:43 +0900)]
Remove unused variable

* lisp/international/mule-cmds.el: Remove unused variable
`mac-system-coding-system'.

8 years ago* configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:37:15 +0000 (10:37 +0900)]
* configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.

8 years agoUse posix_openpt instead of openpty on Darwin
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:24:12 +0000 (10:24 +0900)]
Use posix_openpt instead of openpty on Darwin

* configure.ac (PTY_ITERATION, FIRST_PTY_LETTER, PTY_OPEN)
(PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Remove
Darwin-specific definitions.  Use posix_openpt instead.

8 years agoDocument support for ':documentation' in Lisp mode
Shakthi Kannan [Wed, 30 Dec 2015 17:59:12 +0000 (19:59 +0200)]
Document support for ':documentation' in Lisp mode

* lisp/emacs-lisp/lisp-mode.el (lisp-string-in-doc-position-p)
(lisp-string-after-doc-keyword-p)
(lisp-font-lock-syntactic-face-function): Add doc strings.

8 years agoDocument new features of TeX mode
Shakthi Kannan [Wed, 30 Dec 2015 17:46:55 +0000 (19:46 +0200)]
Document new features of TeX mode

* doc/emacs/text.texi (TeX Print): Document
'tex-print-file-extension'.
* doc/emacs/programs.texi (Misc for Programs): Document support
for Prettify Symbols mode in TeX mode.

8 years agoClarify docs of hscroll in RTL text
Eli Zaretskii [Wed, 30 Dec 2015 17:13:44 +0000 (19:13 +0200)]
Clarify docs of hscroll in RTL text

* doc/lispref/windows.texi (Horizontal Scrolling): Clarify the
meaning of a window's horizontal scroll amount for RTL paragraphs.

8 years agoFix rendering of HTML pages that use character composition
Eli Zaretskii [Wed, 30 Dec 2015 17:00:19 +0000 (19:00 +0200)]
Fix rendering of HTML pages that use character composition

* src/indent.c (Fvertical_motion): Fix the case when point starts
in the middle of a composition, as in shr-vertical-motion.
(Bug#22250)

8 years agoAvoid some compiler warnings in w32.c
Eli Zaretskii [Wed, 30 Dec 2015 16:26:56 +0000 (18:26 +0200)]
Avoid some compiler warnings in w32.c

* src/w32.c (codepage_for_filenames, crlf_to_lf)
(ansi_encode_filename, socket_to_fd, sys_write)
(check_windows_init_file): Avoid compiler warnings about
differences in pointer signedness.

8 years agoUndo ill-advised change
Dmitry Gutov [Wed, 30 Dec 2015 04:25:39 +0000 (06:25 +0200)]
Undo ill-advised change

* lisp/progmodes/xref.el (xref-collect-matches): Undo
ill-advised change.  The hits come in the order that `find'
produces them in, which isn't alphabetical.

8 years agoUnbreak completion in python-mode buffers
Dmitry Gutov [Wed, 30 Dec 2015 04:24:08 +0000 (06:24 +0200)]
Unbreak completion in python-mode buffers

* lisp/progmodes/python.el (python-shell-completion-at-point):
Unbreak in python-mode buffers.

8 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 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 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 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 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 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 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 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 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 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 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 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 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 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.