]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoAdd symref-filepattern entries for c?perl-mode
Dmitry Gutov [Fri, 11 Mar 2016 03:29:49 +0000 (05:29 +0200)]
Add symref-filepattern entries for c?perl-mode

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Add entries for perl-mode and
cperl-mode.

8 years agoDon't use XRANDR 1.3 extensions if the server doesn't support them.
Ken Raeburn [Wed, 9 Mar 2016 03:17:16 +0000 (22:17 -0500)]
Don't use XRANDR 1.3 extensions if the server doesn't support them.

* src/xterm.h (struct x_display_info): Add fields to save XRANDR
version number.
* src/xfns.c (x_get_monitor_attributes): Save the version numbers
after querying the X server.
(x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or
XRRGetScreenResourcesCurrent if the server doesn't support at least
RANDR version 1.3.  Conditionalize the code blocks on compiling
against library version 1.3 or better, rather than feature tests for
each function.
* configure.ac: Stop testing for those two functions.

8 years ago; NEWS update for the last change in etags
Eli Zaretskii [Thu, 10 Mar 2016 16:31:11 +0000 (18:31 +0200)]
; NEWS update for the last change in etags

8 years agoSync with gnulib
Paul Eggert [Thu, 10 Mar 2016 15:55:38 +0000 (07:55 -0800)]
Sync with gnulib

This incorporates:
2016-03-08 intprops: make .h file license match module
2016-03-08 acl: fix missing return on Cygwin
2016-03-05 extern-inline: port to PGI CC
* doc/misc/texinfo.tex, lib/intprops.h, lib/set-permissions.c:
* m4/extern-inline.m4:
Copy from gnulib.

8 years agoRework C source files to avoid ^(
Paul Eggert [Thu, 10 Mar 2016 15:34:52 +0000 (07:34 -0800)]
Rework C source files to avoid ^(

Work around Bug#22884 by rewording comments and strings to avoid ‘(’
at the start of a line unless it starts a function.  This change
is a short-term hack; in the longer run we plan to fix cc-mode’s
performance for C files that have ‘(’ at the start of a line in a
comment or string.

8 years agoBy default, etags produces unqualified Perl tag names
Eli Zaretskii [Thu, 10 Mar 2016 15:27:26 +0000 (17:27 +0200)]
By default, etags produces unqualified Perl tag names

* lib-src/etags.c (Perl_functions): Produce unqualified names,
unless -Q was specified.
(print_help): Update the description of -Q.

* doc/man/etags.1: Update the documentation of -Q.

* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/CTAGS.good: Adapt the expected test results to the
changed Perl functionality.

8 years agoIndent methods with keyword names correctly
Dmitry Gutov [Thu, 10 Mar 2016 12:35:45 +0000 (14:35 +0200)]
Indent methods with keyword names correctly

* lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call):
Rename to ruby-smie--before-method-name.  Now also check if we're
after a 'def' keyword.  Update both callers.

8 years agoPropertize character literals and special global variables differently
Dmitry Gutov [Thu, 10 Mar 2016 02:13:25 +0000 (04:13 +0200)]
Propertize character literals and special global variables differently

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Propertize
character literals and global variables with special names with
prefix and symbol syntax classes, for SMIE to tokenize them
together automatically.
(ruby-font-lock-keywords): Fix an old regression in highlighting
character literals.

8 years ago; Fix last change in NEWS
Eli Zaretskii [Thu, 10 Mar 2016 10:17:02 +0000 (12:17 +0200)]
; Fix last change in NEWS

8 years agoChange how /etc/NEWS presents character folding
John Wiegley [Wed, 9 Mar 2016 23:32:22 +0000 (15:32 -0800)]
Change how /etc/NEWS presents character folding

* NEWS: Note that character folding is no longer the default.

8 years agoRevert "Revert "Backport: * lisp/isearch.el: Turn char-folding off by default""
John Wiegley [Wed, 9 Mar 2016 23:29:59 +0000 (15:29 -0800)]
Revert "Revert "Backport: * lisp/isearch.el: Turn char-folding off by default""

This reverts commit a91b4b51ddf2575d821adb8b84fdf32cff83886e.

8 years agoProperly handle lambda as read function (bug 22961)
Andreas Schwab [Wed, 9 Mar 2016 18:40:00 +0000 (19:40 +0100)]
Properly handle lambda as read function (bug 22961)

* src/lread.c (readchar): Be more strict about checking for
string in cons for read_vector.
(unreadchar): Likewise.

8 years agoPropertize operator symbol names with symbol syntax class
Dmitry Gutov [Wed, 9 Mar 2016 14:43:51 +0000 (16:43 +0200)]
Propertize operator symbol names with symbol syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Do it here.
(ruby-font-lock-keywords): Instead of handling them here.  Leave
highlighting them to the "normal" matcher, because now we can.
(ruby-smie--forward-token, ruby-smie--backward-token):
Likewise, don't special-case operator symbols anymore.
(ruby-smie--args-separator-p): Simplify the regexp, match operator
names with \s_.
(ruby-smie--implicit-semi-p): Handle the special cases of ? and =
at EOL the same way: check if the character has been assigned the
symbol syntax class by syntax-propertize.

8 years agoStop recognizing :#{} as symbol in ruby-mode
Dmitry Gutov [Tue, 8 Mar 2016 19:16:54 +0000 (21:16 +0200)]
Stop recognizing :#{} as symbol in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove
the weird part that recognized colon followed by interpolation
construct without quotes (e.g. ':#{abc}') as symbol, which is just a
syntax error in any modern version of Ruby.  Fix nearby bug reference.

8 years agoAllow using the left shift operator without spaces on both sides
Dmitry Gutov [Tue, 8 Mar 2016 13:46:19 +0000 (15:46 +0200)]
Allow using the left shift operator without spaces on both sides

* lisp/progmodes/ruby-mode.el (ruby-singleton-class-p): Rename to
ruby-verify-heredoc, reverse the meaning of the return value, and
short-circuit if preceded by a symbol not separated by whitespace.

* test/automated/ruby-mode-tests.el (ruby-no-heredoc-left-shift)
(ruby-no-heredoc-class-self): New tests.

8 years agoProperly handle unquoting in wdired (bug 22938)
Andreas Schwab [Tue, 8 Mar 2016 20:32:52 +0000 (21:32 +0100)]
Properly handle unquoting in wdired (bug 22938)

The recorded old names are not quoted, don't unquote them.

* lisp/wdired.el (wdired-normalize-filename): Add argument
unquotep, only unquote if non-nil.
(wdired-get-filename): Don't unquote the old file name.
(wdired-get-previous-link): Always unquote.

8 years ago; Spelling fix and tighten up comment
Paul Eggert [Tue, 8 Mar 2016 15:42:36 +0000 (07:42 -0800)]
; Spelling fix and tighten up comment

8 years agoAllow splat operator before percent literal
Dmitry Gutov [Mon, 7 Mar 2016 02:02:34 +0000 (04:02 +0200)]
Allow splat operator before percent literal

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Allow splat operator before percent literal.

8 years agoDon't apply the return value of goto-char as syntax class
Dmitry Gutov [Mon, 7 Mar 2016 01:19:09 +0000 (03:19 +0200)]
Don't apply the return value of goto-char as syntax class

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Don't
apply the return value of goto-char as syntax class.

8 years agoGuard against nested percent literals
Dmitry Gutov [Mon, 7 Mar 2016 00:58:49 +0000 (02:58 +0200)]
Guard against nested percent literals

* lisp/progmodes/ruby-mode.el
(ruby-syntax-propertize-percent-literal):
Don't check the syntax status.
(ruby-syntax-propertize): Check it here.  And also guard against
being in a larger percent literal.

* test/automated/ruby-mode-tests.el
(ruby-no-nested-percent-literals): New test.

8 years agoRecognize iuwu-mod after an escaped newline
Dmitry Gutov [Sun, 6 Mar 2016 21:18:06 +0000 (23:18 +0200)]
Recognize iuwu-mod after an escaped newline

* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Check if the
newline is escaped.
(ruby-smie-rules): Indent iuwu-mod after an escaped newline
correctly.

8 years agoFix symbolic mode string conversion for s and t
Andreas Schwab [Sun, 6 Mar 2016 23:20:40 +0000 (00:20 +0100)]
Fix symbolic mode string conversion for s and t

* lisp/files.el (file-modes-char-to-right): Fix values for ?s and
?t.
(file-modes-symbolic-to-number): Default to a for ts permissions.

8 years agoUpdate 'ucs-names' database
Eli Zaretskii [Sun, 6 Mar 2016 20:22:53 +0000 (22:22 +0200)]
Update 'ucs-names' database

* lisp/international/mule-cmds.el (ucs-names): Update used and
unused ranges from the latest UnicodeData.txt.

8 years agoImprove doc string of 'shell-command'
Eli Zaretskii [Sun, 6 Mar 2016 17:36:57 +0000 (19:36 +0200)]
Improve doc string of 'shell-command'

* lisp/simple.el (shell-command): Mention that COMMAND is prompted
for.  (Bug#22926)

8 years agoMake the code in movemail_strftime more general
Eli Zaretskii [Sun, 6 Mar 2016 16:27:16 +0000 (18:27 +0200)]
Make the code in movemail_strftime more general

* lib-src/movemail.c (movemail_strftime): Transform the format
string passed by the caller instead of using a separate format
string.

8 years agoSpeed up redisplay of binary files with long series of nulls
Eli Zaretskii [Sun, 6 Mar 2016 16:14:46 +0000 (18:14 +0200)]
Speed up redisplay of binary files with long series of nulls

* src/bidi.c (bidi_resolve_weak): Avoid entering a loop searching
for a character needed for resolving the type of a series of BN
and ET characters, as required by rule W5 of UAX#9, if the results
of the resolution are known in advance, because we are at level
zero, and the previous strong character was L.
(bidi_resolve_neutral): Partially resurrect the optimization for a
long series of control characters in an otherwise strictly L2R
text.
(bidi_level_of_next_char): Don't enter the loop that searches for
a paragraph separator if the current character is already at base
embedding level.  (Bug#22739)

8 years agoRemove the highlighting support for quoting 'like this' inside Lisp docstrings
Dmitry Gutov [Sun, 6 Mar 2016 00:40:49 +0000 (02:40 +0200)]
Remove the highlighting support for quoting 'like this' inside Lisp docstrings

Remove the highlighting support for quoting 'like this' inside
Lisp docstrings.  This part of
c4151ebe15479de4c2e511b068cdf9af6a4576cf seems to have been
unintentional, considering substitute-command-keys gives wrong
output for such usage.
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Do not highlight text between two
straight quotes as symbol.

8 years agoRestore leading space in movemail pop output
Paul Eggert [Sat, 5 Mar 2016 19:30:51 +0000 (11:30 -0800)]
Restore leading space in movemail pop output

* lib-src/movemail.c (movemail_strftime) [WINDOWSNT]: New function.
(strftime) [WINDOWSNT]: New macro.
(mbx_delimit_begin): Go back to previous version of this code,
now that there’s a special-purpose WINDOWSNT implementation
that should do the right thing.  That way, the output continues
to use leading space rather than leading zero for day of month.

8 years agoFix bidi-paragraph-direction in Rmail view buffer
Eli Zaretskii [Sat, 5 Mar 2016 12:48:37 +0000 (14:48 +0200)]
Fix bidi-paragraph-direction in Rmail view buffer

* lisp/mail/rmail.el (rmail-show-message-1): Reset
bidi-paragraph-direction to nil before formatting the message for
display.

8 years agoDon't misindent computed property generator methods
Dmitry Gutov [Sat, 5 Mar 2016 12:35:10 +0000 (14:35 +0200)]
Don't misindent computed property generator methods

* lisp/progmodes/js.el (js--looking-at-operator-p):
Don't misindent computed property generator methods
(https://github.com/mooz/js2-mode/issues/317).

8 years agoFix mbox files produced by movemail on MS-Windows
Eli Zaretskii [Sat, 5 Mar 2016 10:57:06 +0000 (12:57 +0200)]
Fix mbox files produced by movemail on MS-Windows

* lib-src/movemail.c (mbx_delimit_begin): Use portable strftime
format specifiers, as at least the MS-Windows version of strftime
doesn't support %e and %T.

8 years agodoc string file descriptor exhaustion fix
Paul Eggert [Sat, 5 Mar 2016 00:29:55 +0000 (16:29 -0800)]
doc string file descriptor exhaustion fix

* src/doc.c (get_doc_string): Move newly-added check to a better
location (Bug#22814).

8 years agoFix Bug#22814
Michael Albinus [Fri, 4 Mar 2016 12:57:43 +0000 (12:57 +0000)]
Fix Bug#22814

* src/doc.c (get_doc_string): Raise an error in case too many
files are open.  (Bug#22814)

8 years agoFix insertion of edited servers in the dribble file
Lars Ingebrigtsen [Fri, 4 Mar 2016 11:52:26 +0000 (11:52 +0000)]
Fix insertion of edited servers in the dribble file

* lisp/gnus/gnus-srvr.el (gnus-server-update-server): Don't
insert explicit newlines, because they're quoted (bug#22903).

Backport:

(cherry picked from commit ca4e30058eba0531f38fff75f14734acffab84ea)

8 years agoFix previous fix of enlarge-/shrink-window
Martin Rudalics [Fri, 4 Mar 2016 07:37:53 +0000 (08:37 +0100)]
Fix previous fix of enlarge-/shrink-window

* lisp/window.el (enlarge-window, shrink-window): Consistently
signal user-error instead of error.  Resize minibuffer window by
delta lines instead of pixels.  When a window cannot be resized,
signal an error only when this function was invoked by a command
in the enlarge-/shrink-window group (this restores the behavior
before the fix of bug#22723 for the non-interactive case).

8 years ago* lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic
Artur Malabarba [Thu, 3 Mar 2016 22:03:16 +0000 (19:03 -0300)]
* lisp/isearch.el (isearch-define-mode-toggle): Fix toggling logic

8 years agoComplete temperature units in calc-convert-temperature
Mark Oteiza [Thu, 3 Mar 2016 17:56:44 +0000 (17:56 +0000)]
Complete temperature units in calc-convert-temperature

* lisp/calc/calc-units.el (calc-convert-temperature): Complete with
temperature units in math-standard-units.

8 years agoMake sure to use case-sensitive search
Dmitry Gutov [Thu, 3 Mar 2016 00:36:27 +0000 (02:36 +0200)]
Make sure to use case-sensitive search

* lisp/progmodes/xref.el (xref-collect-references): Make sure to
use case-sensitive search.

8 years agoPrevent infinite loop on not-well-formed xml. (Bug#16344)
Ulf Jasper [Wed, 2 Mar 2016 18:03:27 +0000 (19:03 +0100)]
Prevent infinite loop on not-well-formed xml. (Bug#16344)

* lisp/xml.el (xml-parse-tag-1): Prevent inifinite loop. (Bug#16344)
* test/automated/xml-parse-tests.el (xml-parse-tests--bad-data): Add
  test cases for Bug#16344.

8 years agoAdd the missing test case for the previous patch
Alan Third [Wed, 2 Mar 2016 17:21:24 +0000 (17:21 +0000)]
Add the missing test case for the previous patch

lisp/dabbrev.el (dabbrev--substitute-expansion): Return EXPANSION after
any processing.
lisp/dabbrev.el (dabbrev-expand): Set EXPANSION to the return value of
DABBREV--SUBSTITUTE-EXPANSION.
test/automated/dabbrev-tests.el (dabbrev-expand-test): Test for bug#1948.

8 years agoUse the correct dabbrev expansion
Alan Third [Wed, 2 Mar 2016 17:20:47 +0000 (17:20 +0000)]
Use the correct dabbrev expansion

lisp/dabbrev.el (dabbrev--substitute-expansion): Return EXPANSION after
any processing.
lisp/dabbrev.el (dabbrev-expand): Set EXPANSION to the return value of
DABBREV--SUBSTITUTE-EXPANSION.
test/automated/dabbrev-tests.el (dabbrev-expand-test): Test for bug#1948.

8 years ago; Auto-commit of loaddefs files. emacs-25.0.92
Nicolas Petton [Wed, 2 Mar 2016 17:03:12 +0000 (18:03 +0100)]
; Auto-commit of loaddefs files.

8 years agoBump version to 25.0.92
Nicolas Petton [Wed, 2 Mar 2016 16:05:22 +0000 (17:05 +0100)]
Bump version to 25.0.92

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.92.

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Wed, 2 Mar 2016 16:04:36 +0000 (17:04 +0100)]
* etc/AUTHORS: Update the AUTHORS file

8 years agoauthors.el updates
Nicolas Petton [Wed, 2 Mar 2016 16:03:59 +0000 (17:03 +0100)]
authors.el updates

* admin/authors.el (authors-ignored-files): Addition.

8 years ago; fix changelog entries
Nicolas Petton [Wed, 2 Mar 2016 16:03:21 +0000 (17:03 +0100)]
; fix changelog entries

8 years ago; make change-history-commit
Nicolas Petton [Wed, 2 Mar 2016 12:46:19 +0000 (13:46 +0100)]
; make change-history-commit

8 years agoFix Bug#22859
Michael Albinus [Wed, 2 Mar 2016 10:24:55 +0000 (10:24 +0000)]
Fix Bug#22859

* lisp/filenotify.el (file-notify-callback): Return a `deleted'
event in case of kqueue and file1 is nil.  (Bug#22859)

8 years ago; * src/w32proc.c: Update the commentary to sys_select.
Eli Zaretskii [Tue, 1 Mar 2016 18:18:10 +0000 (20:18 +0200)]
; * src/w32proc.c: Update the commentary to sys_select.

8 years agoFix reordering of bidi text in an isolate inside an override
Eli Zaretskii [Tue, 1 Mar 2016 16:41:04 +0000 (18:41 +0200)]
Fix reordering of bidi text in an isolate inside an override

* src/bidi.c (bidi_resolve_explicit): Override the orig_type value
of FSI with either LRI or RLI, as determined by the first strong
directional character in the isolate.  This prevents failure to
isolate when the FSI...PDI text is inside a directional override.
(Bug#22786)

8 years agoDocument c-guess-basic-syntax in the CC Mode manual.
Alan Mackenzie [Tue, 1 Mar 2016 15:01:46 +0000 (15:01 +0000)]
Document c-guess-basic-syntax in the CC Mode manual.

* doc/misc/cc-mode.texi (Syntactic Analysis): Document the function, adding
pxrefs to Custom Line-Up and Other Indentation.
(Custom Line-Up): Add a note on using c-guess-basic-syntax with a pxref to
Syntactic Analysis.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Mar 2016 12:19:06 +0000 (07:19 -0500)]
; Auto-commit of loaddefs files.

8 years agoFix targets in test/automated/Makefile.in
Michael Albinus [Tue, 1 Mar 2016 09:58:01 +0000 (10:58 +0100)]
Fix targets in test/automated/Makefile.in

* test/automated/Makefile.in: Use $(SELECTOR_DEFAULT) also for
empty target and target all.

8 years ago; * lisp/vc/vc-hooks.el: corrected docstring of face
Oscar Fuentes [Tue, 1 Mar 2016 03:53:03 +0000 (04:53 +0100)]
; * lisp/vc/vc-hooks.el: corrected docstring of face

Do not merge to master

8 years agoComment on last change to define-derived-mode
Leo Liu [Tue, 1 Mar 2016 03:50:11 +0000 (11:50 +0800)]
Comment on last change to define-derived-mode

* lisp/emacs-lisp/derived.el (define-derived-mode): Add comment.

8 years agoAllow binding `url-mime-accept-string'
Lars Ingebrigtsen [Tue, 1 Mar 2016 03:49:26 +0000 (14:49 +1100)]
Allow binding `url-mime-accept-string'

* lisp/url/url-http.el (url-http): Allow binding
`url-mime-accept-string' (bug#22855).

Backport:

(cherry picked from commit 144bb0cf322b9756d29def3e27a42303e2edce43)

8 years agoAlso allow setting the paragraph direction to nil
Lars Ingebrigtsen [Tue, 1 Mar 2016 00:31:37 +0000 (11:31 +1100)]
Also allow setting the paragraph direction to nil

* lisp/net/eww.el (eww-toggle-paragraph-direction): Also allow
setting the paragraph direction to nil ("auto").

8 years agoMade the new OS X visible bell more visible.
Anders Lindgren [Mon, 29 Feb 2016 20:54:15 +0000 (21:54 +0100)]
Made the new OS X visible bell more visible.

* src/nsterm.m: (EmacsBell:init:) Scaled up the visible bell
  "caution" image five times, as the image in its original size
  was hard to see.

8 years agoUse the correct background color when filling nested <divs>
Lars Ingebrigtsen [Mon, 29 Feb 2016 11:21:11 +0000 (22:21 +1100)]
Use the correct background color when filling nested <divs>

* lisp/net/shr.el (shr-face-background): Return the first
background, because that's the one that's visible (bug#22680).

Backport:

(cherry picked from commit cad0bc70558f9c28c808711c5295dec9fc5ad6e5)

8 years agoMake <div> in <li> not insert extra newlines
Lars Ingebrigtsen [Mon, 29 Feb 2016 07:06:36 +0000 (18:06 +1100)]
Make <div> in <li> not insert extra newlines

* lisp/net/shr.el (shr-tag-div): Make <div> in <li> not insert
extra newlines (bug#19587).

Backport:

(cherry picked from commit 379a846b8548dc32a9019ef0a37c02f62cd9bad1)

8 years agoUncomment the next-error-function integration in xref
Dmitry Gutov [Mon, 29 Feb 2016 03:16:41 +0000 (05:16 +0200)]
Uncomment the next-error-function integration in xref

* lisp/progmodes/xref.el (xref--xref-buffer-mode):
Uncomment the next-error-function integration
(http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20489#110).

8 years agoRemove the word "valid", to avoid ambiguity
Dmitry Gutov [Mon, 29 Feb 2016 02:45:00 +0000 (04:45 +0200)]
Remove the word "valid", to avoid ambiguity

* doc/emacs/maintaining.texi (Identifier Search)
(Looking Up Identifiers): Remove the word "valid" (bug#22692).

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Michael Albinus [Sun, 28 Feb 2016 10:09:12 +0000 (11:09 +0100)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoSet auto-revert-use-notify to nil in global-auto-revert-mode. (Bug#22814)
Michael Albinus [Sun, 28 Feb 2016 09:54:45 +0000 (10:54 +0100)]
Set auto-revert-use-notify to nil in global-auto-revert-mode.  (Bug#22814)

* etc/NEWS:
* etc/PROBLEMS: Mention this.

* lisp/autorevert.el (global-auto-revert-mode): Set
`auto-revert-use-notify' to nil.  (Bug#22814)

8 years ago* etc/TODO: Minor quoting and grammar fixes.
Paul Eggert [Sun, 28 Feb 2016 09:26:52 +0000 (01:26 -0800)]
* etc/TODO: Minor quoting and grammar fixes.

8 years agoFix ModelSim error parsing
Friedrich Beckmann [Sun, 28 Feb 2016 06:04:09 +0000 (17:04 +1100)]
Fix ModelSim error parsing

* lisp/progmodes/vhdl-mode.el (vhdl-compiler-alist): Fix
ModelSim error parsing (bug#5768).

Copyright-paperwork-exempt: yes

8 years agoMake parse-time-string-chars faster
Lars Ingebrigtsen [Sun, 28 Feb 2016 05:09:33 +0000 (15:39 +1030)]
Make parse-time-string-chars faster

* lisp/calendar/parse-time.el (parse-time-string-chars): Clean
up the code (backport:).

8 years agoAdd a eww command to toggle paragraph direction
Lars Ingebrigtsen [Sun, 28 Feb 2016 04:22:56 +0000 (14:52 +1030)]
Add a eww command to toggle paragraph direction

* lisp/net/eww.el (eww-toggle-paragraph-direction): New
command and keystroke.

* doc/misc/eww.texi (Advanced): Mention the `D' command.

8 years ago* nextstep/WISHLIST: Merge into etc/TODO and remove.
Glenn Morris [Sat, 27 Feb 2016 19:05:10 +0000 (11:05 -0800)]
* nextstep/WISHLIST: Merge into etc/TODO and remove.

* etc/TODO: Merge in items from nextstep/WISHLIST.
* nextstep/README: Update for this change.

8 years agoFix char signedness issue in bidi code
Andreas Schwab [Sat, 27 Feb 2016 15:53:03 +0000 (16:53 +0100)]
Fix char signedness issue in bidi code

* src/dispextern.h (struct bidi_t): Change type of resolved_level
and isolate_level to signed char.  (Bug#22830)

8 years ago* lib-src/pop.c (socket_connection): Fix format string.
Andreas Schwab [Sat, 27 Feb 2016 13:19:06 +0000 (14:19 +0100)]
* lib-src/pop.c (socket_connection): Fix format string.

8 years agoAvoid inflooping in thing-at-point-looking-at
Eli Zaretskii [Sat, 27 Feb 2016 11:27:36 +0000 (13:27 +0200)]
Avoid inflooping in thing-at-point-looking-at

* lisp/thingatpt.el (thing-at-point-looking-at): Avoid inflooping
with regular expressions whose matching doesn't move point.
(Bug#22756)
Describe the argument DISTANCE in the doc string.

8 years ago* lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change.
Leo Liu [Sat, 27 Feb 2016 05:48:01 +0000 (13:48 +0800)]
* lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change.

8 years agoetc/PROBLEMS: Mention problems with using file descriptors
Michael Albinus [Fri, 26 Feb 2016 20:00:28 +0000 (21:00 +0100)]
etc/PROBLEMS: Mention problems with using file descriptors

* etc/PROBLEMS: Mention problems with using file descriptors
of kqueue file notification library.

8 years ago* lisp/apropos.el (apropos-variable): Doc fix. (Bug#22813).
Kaushal Modi [Fri, 26 Feb 2016 18:32:12 +0000 (20:32 +0200)]
* lisp/apropos.el (apropos-variable): Doc fix.  (Bug#22813).

8 years agoRemove unneeded workaround in xftfont.c
Eli Zaretskii [Thu, 25 Feb 2016 19:59:57 +0000 (21:59 +0200)]
Remove unneeded workaround in xftfont.c

* src/xftfont.c (xftfont_open): Remove "dirty workaround" for
XftTextExtents8 behavior, as it is no longer needed.  Suggested by
Fangwen Yu <yynyygy@gmail.com>.  (Bug#22383)

8 years ago; * etc/NEWS: Reflect latest changes in saveplace.
Eli Zaretskii [Thu, 25 Feb 2016 19:22:58 +0000 (21:22 +0200)]
; * etc/NEWS: Reflect latest changes in saveplace.

8 years ago* lisp/saveplace.el (save-place-local-mode): New minor mode
Stefan Monnier [Thu, 25 Feb 2016 18:44:43 +0000 (13:44 -0500)]
* lisp/saveplace.el (save-place-local-mode): New minor mode

(toggle-save-place): Define as obsolete alias.
(save-place--setup-hooks): New function.
(save-place-mode): Use it.

8 years agoFix redisplay on a TTY after 'make-frame'
Eli Zaretskii [Thu, 25 Feb 2016 17:57:47 +0000 (19:57 +0200)]
Fix redisplay on a TTY after 'make-frame'

* src/xdisp.c (clear_garbaged_frames): Don't clear/redraw a
garbaged TTY frame if it is not the selected frame.  (Bug#22794)

8 years agoMake double-click-1 work with unbalanced parens in CC Mode. Fixes bug#5560.
Alan Mackenzie [Thu, 25 Feb 2016 09:31:23 +0000 (09:31 +0000)]
Make double-click-1 work with unbalanced parens in CC Mode.  Fixes bug#5560.

* lisp/mouse.el (mouse-start-end): check the syntax of alleged parens with
`syntax-after' to ensure syntax-table text properties are respected.

8 years agoInput method polish-slash should not use keyboard translation
Magnus Henoch [Thu, 25 Feb 2016 05:40:19 +0000 (16:10 +1030)]
Input method polish-slash should not use keyboard translation

* lisp/leim/quail/latin-pre.el ("polish-slash"): Input method
polish-slash should not use keyboard translation (bug#19081).

8 years agoFix an assertion
Chris Feng [Thu, 25 Feb 2016 01:34:55 +0000 (09:34 +0800)]
Fix an assertion

* src/dispnew.c (clear_glyph_matrix_rows): Test matrix->nrows == 0 (which
implies start == 0) separately.

8 years agoFix 'toggle-save-place'
Eli Zaretskii [Wed, 24 Feb 2016 20:56:32 +0000 (22:56 +0200)]
Fix 'toggle-save-place'

* lisp/saveplace.el (toggle-save-place): Set up hooks necessary to
support save-place in the buffer.  Autoload the command.

8 years ago* src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)
Stefan Monnier [Wed, 24 Feb 2016 20:50:54 +0000 (15:50 -0500)]
* src/keyboard.c: Don't inadvertently set immediate_echo (bug#22581)

* src/keyboard.c (read_key_sequence): Don't inadvertently set
immediate_echo when we don't want any echo-keystrokes.
(echo_keystrokes_p): Move earlier.

8 years agoMinor fixes in calculator.el
Chris Zheng [Wed, 24 Feb 2016 20:35:18 +0000 (22:35 +0200)]
Minor fixes in calculator.el

* lisp/calculator.el (calculator-mode-map): Bind `E' for
`calculator-exp'.
(calculator-last-input): Fix a bug with pressing F1.
(Bug#20764)

Copyright-paperwork-exempt: yes

8 years agoUpdate HISTORY section in readme for the NextStep interface.
Anders Lindgren [Wed, 24 Feb 2016 20:25:09 +0000 (21:25 +0100)]
Update HISTORY section in readme for the NextStep interface.

* nextstep/README: Update HISTORY after suggestion
from former maintainer Adrian Robert.

8 years ago; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording.
Eli Zaretskii [Wed, 24 Feb 2016 20:00:45 +0000 (22:00 +0200)]
; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording.

8 years agoImprove documentation of 'save-place-mode'
Eli Zaretskii [Wed, 24 Feb 2016 19:54:21 +0000 (21:54 +0200)]
Improve documentation of 'save-place-mode'

* lisp/saveplace.el (toggle-save-place): Update the doc string wrt
turning on 'save-place-mode' globally.

* etc/NEWS: Mention the need to call 'save-place-mode' for turning
on the mode in all buffers.

8 years agoAllocate glyph matrices for the initial frame
Chris Feng [Wed, 24 Feb 2016 07:58:02 +0000 (08:58 +0100)]
Allocate glyph matrices for the initial frame

* src/frame.c (make_initial_frame): Allocate glyph matrices (Bug#22787).

* src/dispnew.c (clear_glyph_matrix_rows): matrix->nrows can be 0.

Copyright-paperwork-exempt: yes

8 years agoFix white space in last checkin
Lars Ingebrigtsen [Wed, 24 Feb 2016 02:55:29 +0000 (13:55 +1100)]
Fix white space in last checkin

8 years agoMake `insert-pair' always leave the cursor where documented
Dima Kogan [Wed, 24 Feb 2016 02:54:17 +0000 (13:54 +1100)]
Make `insert-pair' always leave the cursor where documented

* lisp/emacs-lisp/lisp.el (insert-pair): The docstring of
insert-pair states that after insertion, the point ends up
after the opening character. This was not true if the pair was
inserted to surround a region (bug#16949).

8 years agoetc/NEWS: Mention the new second parameter to `package-install'
Kaushal Modi [Wed, 24 Feb 2016 02:30:30 +0000 (13:30 +1100)]
etc/NEWS: Mention the new second parameter to `package-install'

* etc/NEWS: Mention the new second parameter to
`package-install' (bug#22784).

8 years agoHighlight assignments in Makefiles more correctly
John F. Trudeau [Wed, 24 Feb 2016 01:21:06 +0000 (12:21 +1100)]
Highlight assignments in Makefiles more correctly

* lisp/progmodes/make-mode.el (makefile-macroassign-regex):
Highlight assignments preceded by a TAB character correctly
(bug#20787).

Copyright-paperwork-exempt: yes

Backport:

(cherry picked from commit bbd86c5642bd62c43d72391669f28eaa14459fd5)

8 years agoImprove documentation of focus-related hooks
Eli Zaretskii [Tue, 23 Feb 2016 17:42:14 +0000 (19:42 +0200)]
Improve documentation of focus-related hooks

* doc/lispref/commands.texi (Focus Events): Mention focus-related
hooks.  (Bug#21728)

8 years agoFurther improve doc string of 'disable-point-adjustment'
Eli Zaretskii [Tue, 23 Feb 2016 17:35:21 +0000 (19:35 +0200)]
Further improve doc string of 'disable-point-adjustment'

* src/keyboard.c (syms_of_keyboard): <disable-point-adjustment>
<global-disable-point-adjustment>: Clarify doc strings.  (Bug#22771)

8 years agoFurther adaptions in file-notify-tests.el for w32notify
Michael Albinus [Tue, 23 Feb 2016 12:51:36 +0000 (13:51 +0100)]
Further adaptions in file-notify-tests.el for w32notify

* test/automated/file-notify-tests.el
(file-notify--test-read-event-timeout, file-notify--test-timeout):
Decrease values.
(file-notify-test03-autorevert)
(file-notify-test04-file-validity)
(file-notify-test05-dir-validity): Run tests also for w32notify.
(file-notify-test08-watched-file-in-watched-dir):
Adapt expected events for w32notify.

8 years agoDon't bug out on localised dates in gnus-icalendar
Jan Tatarik [Tue, 23 Feb 2016 10:17:41 +0000 (21:17 +1100)]
Don't bug out on localised dates in gnus-icalendar

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event:org-timestamp): Don't bug out on
localised dates.

8 years ago(ls-lisp-insert-directory): Make -B work
Drew Adams [Tue, 23 Feb 2016 10:12:55 +0000 (21:12 +1100)]
(ls-lisp-insert-directory): Make -B work

* lisp/ls-lisp.el (ls-lisp-insert-directory): Make -B work
(bug#20776).

Backport:

(cherry picked from commit ef52e66efd78aac4c4e5bd5e11870e5ba3b37a1e)

8 years agoMake buttons in header lines work
Vaidheeswaran C [Tue, 23 Feb 2016 09:46:00 +0000 (20:46 +1100)]
Make buttons in header lines work

* lisp/help-mode.el (help-button-action): `help-xref-button' in
header line doesn't work (bug#21024).

Backport:

(cherry picked from commit c11e565a6b6d09fa39d4c3ef65bef08190eaecc1)

8 years agoMake setf for frame-height/width work again
Christopher Wellons [Tue, 23 Feb 2016 04:45:08 +0000 (15:45 +1100)]
Make setf for frame-height/width work again

* lisp/emacs-lisp/cl-lib.el (frame-height): Make setf for
frame-height/width work again (bug#21979).