Alan Mackenzie
d69e9f1c24
CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669.
...
cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
nil.
2015-02-01 21:20:35 +00:00
Glenn Morris
a78774a6b3
# Auto-commit of loaddefs files.
2015-02-01 07:24:05 -05:00
Alan Mackenzie
e726f2058c
Handle "#" operator properly inside macro. Fix coding bug.
...
cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): On finding a "#" which
looks like the start of a macro, check it isn't already inside a macro.
cc-engine.el (c-state-safe-place): Don't record a new "safe" position
into the list of them when this is beyond our current position.
2015-01-31 21:44:47 +00:00
Martin Rudalics
618931b5b6
Handle dead frame in menu-bar-non-minibuffer-window-p. (Bug#19728)
...
* menu-bar.el (menu-bar-non-minibuffer-window-p): Return nil when
the menu frame is dead. (Bug#19728)
2015-01-31 19:38:58 +01:00
Eli Zaretskii
017a03afc9
Document MS-Windows file-name idiosyncrasies (Bug#19463)
...
doc/emacs/msdog.texi (Windows Files): Document characters invalid in
Windows file names.
2015-01-31 18:32:11 +02:00
Eli Zaretskii
f3faf4f027
Fix description of Customize buffer in Emacs manual.
...
doc/emacs/custom.texi (Customization Groups): Update the looks of the
Customize Group buffer.
2015-01-31 18:05:38 +02:00
Eli Zaretskii
1c1d0b75e8
Fix a typo in the Emacs manual's Hungry Delete description.
...
doc/emacs/programs.texi (Hungry Delete): Fix a typo: "C-d" instead of
"C-c C-d" in hungry-delete mode.
2015-01-31 17:50:36 +02:00
Eli Zaretskii
be7fb822b8
src/dispextern.h (FACE_FOR_CHAR): Fix the commentary.
2015-01-30 13:47:47 +02:00
Paul Eggert
33c4409a8e
Spelling fixes
2015-01-29 19:47:35 -08:00
Fabián Ezequiel Gallina
6c8231ee8c
python.el: Handle tabs in python-indent-dedent-line.
...
Fixes: debbugs:19730
* lisp/progmodes/python.el (python-indent-dedent-line): Fixes for
indentation with tabs. Thanks to <dale@codefu.org>.
* test/automated/python-tests.el
(python-indent-dedent-line-backspace-2)
(python-indent-dedent-line-backspace-3): New tests.
2015-01-30 00:41:52 -03:00
Fabián Ezequiel Gallina
41c3b9241c
* lisp/progmodes/python.el (python-indent-context): Respect user
...
indentation after comment.
* test/automated/python-tests.el (python-indent-pep8-1)
(python-indent-pep8-2, python-indent-pep8-3)
(python-indent-after-comment-2): Fix tests.
(python-indent-after-comment-3): New test.
2015-01-30 00:19:55 -03:00
Hans Wennborg
868df45153
Avoid compiler warnings in decode_env_path.
...
src/emacs.c (decode_env_path): Add parentheses around ternary
operator to increase readability and pacify compiler warnings.
2015-01-29 21:31:14 +02:00
Tassilo Horn
b28c97942e
Fix XEmacs version typo in comment and ChangeLog
2015-01-29 20:28:16 +01:00
Eli Zaretskii
989fb32064
Improve solution of bug #19701
...
src/w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not ready")
to ENOENT.
2015-01-29 20:43:08 +02:00
Eli Zaretskii
6310530450
Fix refilling of list of language environments in User Manual (Bug#19697)
...
doc/emacs/mule.texi (Language Environments): Work around refill bug in
makeinfo 4.x.
2015-01-29 18:51:24 +02:00
Tassilo Horn
c4c447d8cc
Restore XEmacs compatibility
...
* textmodes/reftex-vars.el (featurep): Conditionalize value of
reftex-label-regexps in order to stay compatible with XEmacs 25
which has no explicitly numbered groups in regexps (bug#19714).
2015-01-29 15:51:40 +01:00
Katsumi Yamaoka
b75358e98f
Merge remote-tracking branch 'origin/emacs-24' into emacs-24
2015-01-29 02:29:55 +00:00
Lars Magne Ingebrigtsen
c96c93fad1
[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail
2015-01-29 02:28:18 +00:00
Lars Magne Ingebrigtsen
972282f3bd
[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail
2015-01-29 02:22:34 +00:00
Elias Oltmanns
7779da6fc1
lisp/gnus/nimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix
2015-01-29 01:41:44 +00:00
Elias Oltmanns
9ee2d9f92a
[Backport] lisp/gnus/nnimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix
2015-01-29 01:20:00 +00:00
Eli Zaretskii
ad588afdaa
Improve the fix for bug #19701
...
src/dired.c (directory_files_internal, file_name_completion)
[WINDOWSNT]: Signal an error when errno is set non-zero by
'readdir', regardless of its value.
src/w32.c (sys_readdir): Set errno to ENOENT when the directory
doesn't exist and to EACCES when it's not accessible to the
current user. Set errno to zero when FindNextFile exhausts the
directory, so that callers don't interpret that as an error and
don't signal a file-error.
(open_unc_volume): Set errno to ENOENT if WNetOpenEnum fails.
2015-01-28 19:42:28 +02:00
Tassilo Horn
ba10f4b560
Fix issues with BibTeX entries containing ")".
...
* textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
punctuation syntax since to allow bibtex fields with values such
as {Test 1) and 2)} (bug#19205, bug#19707).
(reftex--prepare-syntax-tables): New function.
(reftex-mode): Use it.
[backport from trunk]
2015-01-28 10:45:06 +01:00
Eli Zaretskii
9664defd26
Signal a file-error from directory-files on MS-Windows (Bug#19701)
...
src/dired.c (directory_files_internal) [WINDOWSNT]: If readdir
returns NULL and errno is ENOTDIR, behave as if opendir failed to
open the directory.
src/w32.c (sys_readdir): If FindFirstFile fails because the
directory doesn't exist, set errno to ENOTDIR.
2015-01-27 21:02:13 +02:00
Fabián Ezequiel Gallina
fd4e65e4ae
Added missing test for previous commit
2015-01-27 00:35:07 -03:00
Fabián Ezequiel Gallina
5485e3e5b2
python.el: New non-global state dependent indentation engine.
...
Fixes: debbugs:18319
Fixes: debbugs:19595
* lisp/progmodes/python.el (python-syntax-comment-or-string-p): Accept
PPSS as argument.
(python-syntax-closing-paren-p): New function.
(python-indent-current-level)
(python-indent-levels): Mark obsolete.
(python-indent-context): Return more context cases.
(python-indent--calculate-indentation)
(python-indent--calculate-levels): New functions.
(python-indent-calculate-levels): Use them.
(python-indent-calculate-indentation, python-indent-line):
(python-indent-line-function): Rewritten to use new API.
(python-indent-dedent-line): Simplify logic.
(python-indent-dedent-line-backspace): Use `unless`.
(python-indent-toggle-levels): Delete function.
* test/automated/python-tests.el (python-indent-pep8-1)
(python-indent-pep8-2, python-indent-pep8-3)
(python-indent-after-comment-1, python-indent-after-comment-2)
(python-indent-inside-paren-1, python-indent-inside-paren-2)
(python-indent-after-block-1, python-indent-after-block-2)
(python-indent-after-backslash-1, python-indent-after-backslash-2)
(python-indent-after-backslash-3, python-indent-block-enders-1)
(python-indent-block-enders-2, python-indent-block-enders-3)
(python-indent-block-enders-4, python-indent-block-enders-5)
(python-indent-dedenters-1, python-indent-dedenters-2)
(python-indent-dedenters-3, python-indent-dedenters-4)
(python-indent-dedenters-5, python-indent-dedenters-6)
(python-indent-dedenters-7, python-indent-dedenters-8): Fix tests.
(python-indent-base-case, python-indent-after-block-3)
(python-indent-after-backslash-5, python-indent-inside-paren-3)
(python-indent-inside-paren-4, python-indent-inside-paren-5)
(python-indent-inside-paren-6, python-indent-inside-string-1)
(python-indent-inside-string-2, python-indent-inside-string-3)
(python-indent-dedent-line-backspace-1): New Tests.
2015-01-27 00:17:24 -03:00
Eli Zaretskii
3b23e6a702
Fix the description of --insert command-line option (Bug#19694)
...
doc/emacs/cmdargs.texi (Action Arguments): Clarify into which buffer
'--insert' inserts.
2015-01-26 19:41:38 +02:00
Eli Zaretskii
7a7e594128
Add a cross-reference in ELisp manual. (Bug#19668)
...
doc/lispref/searching.texi (Regexp Search): Add a cross-reference to "Syntax
of Regexps".
2015-01-24 12:09:02 +02:00
Jan D
b4f40757ef
Fixes: debbugs:19660
...
* nsterm.m (drawRect:): Add block/unblock_input.
2015-01-24 10:57:21 +01:00
Glenn Morris
83b3c312d7
* test/automated/regexp-tests.el: Require regexp-opt
2015-01-23 19:52:07 -05:00
Dmitry Gutov
81fb8ab036
Backport: Fix package tests when TMPDIR is in HOME
...
Fixes: debbugs:19657
* test/automated/package-test.el (with-package-test):
Bind `abbreviated-home-dir' to nil.
(package-test-describe-package, package-test-signed):
Expect abbreviated directory names.
(cherry picked from commit f02406c74a )
2015-01-23 15:33:25 +02:00
Wolfgang Jenkner
3a345b5062
Backport: Handle the `neg' operator in some calc-units functions.
...
* lisp/calc/calc-units.el (math-units-in-expr-p)
(math-single-units-in-expr-p, math-find-compatible-unit-rec)
(math-extract-units): Handle the `neg' operator. (Bug#19582)
* test/automated/calc-tests.el (calc-tests-equal, calc-tests-simple):
New functions.
(test-calc-remove-units, test-calc-extract-units)
(test-calc-convert-units): New tests.
2015-01-22 03:29:23 +01:00
Eli Zaretskii
8ee825c35b
doc/emacs/programs.texi (Custom C Indent): Fix a typo. (Bug#19647)
2015-01-21 18:16:09 +02:00
Paul Eggert
88ba49fe35
Fix coding.c subscript error
...
* coding.c (CODING_ISO_INVOKED_CHARSET):
Avoid undefined behavior if CODING_ISO_INVOCATION returns negative.
2015-01-21 00:29:32 -08:00
Daniel Koning
3ea1b31f46
Prevent artist-mode from creating runaway timers (Bug#6130).
...
* subr.el (posnp): Correct docstring of `posnp'.
(posn-col-row): Make it work with all mouse position objects.
* textmodes/artist.el (artist-mouse-draw-continously): Cancel
timers if an error occurs during continuous drawing. (Bug#6130)
* commands.texi (Drag Events, Motion Events, Event Examples)
(Accessing Mouse): Describe actual range of values that mouse
position objects can have.
2015-01-21 09:01:30 +01:00
Paul Eggert
4c09e3aef9
Backport: correct old fix for GTK font selection
...
* gtkutil.c (xg_get_font): Fix off-by-2 typo.
Fixes: bug#3228
2015-01-20 22:05:58 -08:00
Jan D
87309740ca
Backport from trunk of bug 19531.
...
Fixes: debbugs:19531
* nsterm.m (EV_TRAILER2): Set Vinhibit_quit to Qt.
2015-01-21 06:18:59 +01:00
Eli Zaretskii
24aacfc905
Improve documentation of buttons (Bug#19628)
...
doc/lispref/display.texi (Manipulating Buttons): Explain more about the
'action' property.
2015-01-20 21:20:39 +02:00
Eli Zaretskii
52ae3dbb21
doc/lispref/text.texi (Clickable Text): Improve indexing. (Bug#19629)
2015-01-20 20:22:20 +02:00
Eli Zaretskii
310f707451
lisp/button.el (button-activate, push-button): Doc fix. (Bug#19628)
2015-01-20 20:15:20 +02:00
Eli Zaretskii
3ee38f2000
Disallow w32 builds --without-toolkit-scroll-bars.
...
configure.ac (HAVE_W32): Abort with error message if
--without-toolkit-scroll-bars was specified. See
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00525.html
for the details.
2015-01-20 18:26:28 +02:00
Eli Zaretskii
e6518fc8f5
Fix display of images in R2L screen lines
...
src/xdisp.c (produce_image_glyph): Fix display of images in R2L
screen lines: prepend the new glyph to the ones already there
instead of appending it.
2015-01-17 20:32:16 +02:00
Eli Zaretskii
b0af6745d6
Use u+05f4 in TUTORIAL.he.
...
etc/tutorials/TUTORIAL.he: Use u+05f4 HEBREW PUNCTUATION GERSHAYIM
instead of u+0022 QUOTATION MARK in Hebrew acronyms.
2015-01-17 15:06:55 +02:00
Samer Masterson
7b8cba98bf
Backport: Parse pcomplete arguments regardless of pcomplete-cycle-completions
...
* pcomplete.el (pcomplete-parse-arguments): Parse arguments regardless
of pcomplete-cycle-completions's value.
Fixes: debbugs:18950
(cherry picked from commit dfa8729c10 )
2015-01-16 05:43:39 +03:00
Eli Zaretskii
a3505cb3ef
doc/lispref/variables.texi (Creating Buffer-Local): Improve indexing (Bug#19608)
2015-01-15 19:31:49 +02:00
Dima Kogan
d132c7b658
erc-backend.el: Give hook-name a default value of nil and add-to-list unconditionally. Fixes debbugs:19363
2015-01-14 16:55:44 -05:00
Eli Zaretskii
61cc7bf8c4
Fix support of non-ASCII frame titles on MS-Windows (Bug#19590)
...
src/w32fns.c (w32_set_title_bar_text): New function, including
support for titles with non-ASCII characters outside of the
current system codepage.
(x_set_name, x_set_title): Use it.
2015-01-14 20:14:02 +02:00
Michael Albinus
1e5902ac64
* filenotify.el (file-notify--descriptor): Do not cons for remote files.
2015-01-13 15:58:50 +01:00
Michael Albinus
b1ea160728
Handle watching of several files in the same directory for inotify.
...
Fixes: debbugs:18880
* filenotify.el (file-notify-descriptors, file-notify-handle-event):
Adapt docstring.
(file-notify--descriptor): New defun.
(file-notify-callback, file-notify-add-watch, file-notify-rm-watch):
Adapt docstring. Handle multiple values for
`file-notify-descriptors' entries.
* net/tramp.el (tramp-handle-file-notify-rm-watch): Do not check
`file-notify-descriptors', the implementation has been changed.
2015-01-13 11:26:39 +01:00
Juri Linkov
67edddfce6
More fixes to support multi-line search in comint
...
* lisp/comint.el (comint-history-isearch-message): Use field-beginning
instead of comint-line-beginning-position - that's more fixes for
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html
(comint-history-isearch-message): Fix args of isearch-message-prefix.
[backport from trunk]
2015-01-13 07:39:23 +00:00