1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-19 14:41:11 -08:00
Commit graph

116671 commits

Author SHA1 Message Date
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
Juri Linkov
18a89a069c Better support for multi-line shell input.
* lisp/comint.el (comint-history-isearch-search)
(comint-history-isearch-wrap): Use field-beginning instead of
comint-line-beginning-position.
(comint-send-input): Go to the end of the field instead of the end
of the line to accept whole multi-line input.
http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html

[backport from trunk]
2015-01-13 07:39:15 +00:00
Eli Zaretskii
b544ab561f Fix return value of vertical-motion at ZV (Bug#19553)
src/indent.c (Fvertical_motion): Return zero if we started from ZV
 and there's an overlay after-string there.
2015-01-10 15:03:51 +02:00
Eli Zaretskii
1f179ea1ba Fix encoding of I/O in net-utils.el for MS-Windows. (Bug#19458)
lisp/net/net-utils.el (net-utils-run-program, net-utils-run-simple):
 On MS-Windows, bind coding-system-for-read to the console output
 codepage.
2015-01-09 11:50:21 +02:00
Eli Zaretskii
70f298f88e Fix the description of -nl in --help text. (Bug#19542)
src/emacs.c (usage_message): Fix the description of the -nl switch.
2015-01-09 11:13:33 +02:00
Eli Zaretskii
7c0bfa1d08 Fix line-move-visual's following of column in R2L lines (backport from trunk).
src/simple.el (line-move-visual): When converting X pixel coordinate
 to temporary-goal-column, adjust the value for right-to-left
 screen lines.  This fixes vertical-motion, next/prev-line, etc.

 src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
 returned for right-to-left screen lines.  (Before the change on
 2014-12-30, the incorrectly-computed X pixel coordinate concealed
 this bug.)

(cherry picked from commit 5fbd17e369)

Conflicts:
	lisp/simple.el
2015-01-09 11:06:18 +02:00
Glenn Morris
2a57b7e5b4 Fixes: debbugs:18756
sh-basic-indent-line fix

* lisp/progmodes/sh-script.el (sh-mode): Doc fix.
(sh-basic-indent-line): Handle electric newline.
2015-01-06 13:52:15 -05:00
Steve Purcell
4e86e02951 Backport: Add an extra column for Version in list-packages table
* emacs-lisp/package.el (package-menu-mode): Use an extra column for
the "Version" column, to accomodate date-and-time-based versions.

(cherry picked from commit eaf25ad549)
2015-01-06 21:42:12 +03:00
Eli Zaretskii
d279e66808 Fix assertion violations in try_window_id (Bug#19511)
src/xdisp.c (move_it_to, try_cursor_movement): Don't use the window
 end information if the window_end_valid flag is unset.
 (try_window_id): If the call to display_line invalidated the
 window end information, give up the try_window_id optimization.
2015-01-05 17:42:55 +02:00
Paul Eggert
031eadcbed Fix dired quoting bug with "HitNHide"
Fixes Bug#19498.
* files.el (shell-quote-wildcard-pattern): Also quote "`".
2015-01-04 13:45:44 -08:00
Eli Zaretskii
5981b4b1c0 More doc fixes for bug#19502 -- make documentation less X-specific.
doc/lispref/frames.texi (Display Feature Testing): Make the description of
 x-server-version and x-server-vendor less X-specific.

 Make doc strings on X and w32 identical.
 src/w32fns.c (Fx_server_version, Fx_server_vendor): Doc fix.
 src/xfns.c (Fx_server_version, Fx_server_vendor): Doc fix.
2015-01-04 20:30:16 +02:00
Eli Zaretskii
143516c73d src/emacs.c (syms_of_emacs) <system-configuration>: Doc fix. (Bug#19502) 2015-01-04 17:51:35 +02:00
Dmitry Gutov
d7af65d24a Backport: Unbreak `mouse-action' property in text buttons
* lisp/button.el (push-button): Fix regression from 2012-12-06.

(cherry picked from commit d94007484a)
2015-01-04 14:44:48 +03:00
Glenn Morris
e13e3bd819 * admin/update_autogen (commit): Prepend "# " to commit message. 2015-01-02 17:30:52 -08:00
Glenn Morris
780eb0a732 Auto-commit of loaddefs files. 2015-01-02 07:22:18 -05:00
Paul Eggert
a012c7bbca Fix copyright years by hand
These are dates that admin/update-copyright did not update,
or updated incorrectly.
2015-01-01 09:18:59 -08:00
Paul Eggert
732fd4c7e1 Update copyright year to 2015
Run admin/update-copyright.
2015-01-01 09:18:06 -08:00
Paul Eggert
a5f90a3762 * .gitattributes: New file. 2015-01-01 09:17:57 -08:00
Eli Zaretskii
5a9710f6e6 Make sure tool-bar changes are reflected on display.
lisp/tool-bar.el (tool-bar-local-item)
 (tool-bar-local-item-from-menu): Call force-mode-line-update to
 make sure the tool-bar changes show on display.
2015-01-01 17:29:51 +02:00
Paul Eggert
93796baeee * autogen.sh: Port better to non-GNU 'cp'.
Problem reported by Han Boetes.
2014-12-31 07:15:43 -08:00
Eli Zaretskii
9758516441 Fix a typo in a comment in the previous commit. 2014-12-30 21:51:34 +02:00
Eli Zaretskii
aa472a3771 Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473)
src/xdisp.c (pos_visible_p): Fix up the X coordinate for
 right-to-left screen lines.
2014-12-30 19:29:24 +02:00