1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-06 20:49:33 +00:00

112176 Commits

Author SHA1 Message Date
Paul Eggert
3af1c8684e Spelling fixes. 2013-07-13 22:18:48 -07:00
Paul Eggert
4700b5a52d * callproc.c (child_setup, relocate_fd) [!DOS_NT]:
* process.c (create_process) [!DOS_NT]:
Remove now-unnecessary calls to emacs_close.
2013-07-13 17:30:45 -07:00
Dmitry Gutov
2ce3c56586 * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
conversion methods on Kernel.
2013-07-13 23:10:19 +04:00
Alan Mackenzie
2cdb769811 progmodes/cc-engine.el (c-forward-decl-or-cast-1): Label CASE 13
and comment it out.  This out-commenting enables certain C++
declarations to be parsed correctly.
2013-07-13 17:45:07 +00:00
Eli Zaretskii
922ae7eeed Prevent leak in GDI objects (bug #14850).
src/w32term.c (x_draw_hollow_cursor): Delete the brush object when
 returning early.
2013-07-13 17:21:01 +03:00
Eli Zaretskii
1b796d6b24 Improve the documentation of prefer-utf-8 and related issues.
lisp/international/mule.el (define-coding-system): Doc fix.

 etc/NEWS: Document prefer-utf-8 coding-system and the new attributes
 :inhibit-null-byte-detection, :inhibit-iso-escape-detection, and
 :prefer-utf-8.
2013-07-13 13:55:21 +03:00
Eli Zaretskii
f9a74c4cc2 Fix bug #14822 with decoding when inhibit-null-byte-detection is non-nil.
src/coding.c (syms_of_coding): Set up inhibit-null-byte-detection
 and inhibit-iso-escape-detection attributes of 'undecided'.
2013-07-13 13:29:15 +03:00
Glenn Morris
6ee585de08 Auto-commit of generated files. 2013-07-13 06:17:35 -04:00
Paul Eggert
69e0e5eef1 * deps.mk (sysdep.o): Remove dependency on ../lib/ignore-value.h.
Reported by Herbert J. Skuhra in
<http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00455.html>.
2013-07-13 02:32:45 -07:00
Eli Zaretskii
1a67b811cb Fix bug #14838 with slow scrolling with certain fonts.
lisp/simple.el (default-font-height): Don't call font-info if the
 frame's default font didn't change since the frame was created.
2013-07-13 10:26:43 +03:00
Leo Liu
58fbe886f5 * ido.el (ido-read-file-name): Guard against non-symbol value. 2013-07-13 12:44:19 +08:00
Fabián Ezequiel Gallina
1f0480d4cd * lisp/progmodes/python.el (python-imenu--build-tree): Fix corner case
in nested defuns.

* test/automated/python-tests.el (python-imenu-create-index-2)
(python-imenu-create-index-3): New tests.
2013-07-12 22:55:58 -03:00
Leo Liu
deee89ff66 * NEWS: Mention new value for ido-use-virtual-buffers. 2013-07-13 09:30:36 +08:00
Leo Liu
97ead0e597 * ido.el (ido-exhibit): Handle ido-enter-matching-directory before
ido-set-matches call.

Fixes: debbugs:6852
2013-07-13 08:57:47 +08:00
Paul Eggert
5e301d7651 Don't lose top specpdl entry when memory is exhausted.
* eval.c (grow_specpdl): Increment specpdl top by 1 and check for
specpdl overflow here, to simplify callers; all callers changed.
Always reserve an unused entry at the stack top; this avoids
losing the top entry's information when memory is exhausted.
2013-07-12 17:24:38 -07:00
Paul Eggert
c04bbd85c9 * configure.ac: Simplify --with-file-notification handling. 2013-07-12 17:01:43 -07:00
Glenn Morris
f24e7572fb ChangeLog fix 2013-07-12 19:55:01 -04:00
Dmitry Gutov
481861772a * progmodes/ruby-mode.el (ruby-font-lock-keywords): Simplify the last
change.
2013-07-13 03:36:14 +04:00
Glenn Morris
f7306b812c * configure.ac: Further fix. 2013-07-12 19:15:20 -04:00
Glenn Morris
81974faaba * configure.ac: Fix goofs in previous. 2013-07-12 19:14:20 -04:00
Dmitry Gutov
0880a9520e * lisp/progmodes/ruby-mode.el (ruby-percent-literals-beg-re):
(ruby-syntax-expansion-allowed-p): Support array of symbols, for
Ruby 2.0.
(ruby-font-lock-keywords): Distinguish calls to functions with
module-like names from module references.  Highlight character
literals.
2013-07-13 00:28:53 +04:00
Sergio Durigan Junior
6741ad6cfa Fix last lisp/ChangeLog entry.
Fixes: debbugs:14847
2013-07-12 21:19:10 +03:00
Sergio Durigan Junior
a7d8babb09 Fix bug #14847 with continued GDB command lines in gdb-mi.el.
lisp/progmodes/gdb-mi.el (gdb-strip-string-backslash): New function.
 (gdb-send): Handle continued commands.
2013-07-12 21:17:17 +03:00
Glenn Morris
671d4bfc55 * configure.ac: If with-file-notification=yes, if gfile not found,
go on to try inotify (not on MS Windows or Nextstep).

* etc/NEWS: Copyedits.
2013-07-12 13:36:42 -04:00
Paul Eggert
a773ed9ac8 Clean up errno reporting and fix some errno-reporting bugs.
* callproc.c (Fcall_process):
* fileio.c (Fcopy_file, Finsert_file_contents, Fwrite_region):
* process.c (create_process, Fmake_network_process):
* unexaix.c (report_error):
* unexcoff.c (report_error):
Be more careful about reporting the errno of failed operations.
The code previously reported the wrong errno sometimes.
Also, prefer report_file_errno to setting errno + report_file_error.
(Fcall_process): Look at openp return value rather than at path,
as that's a bit faster and clearer when there's a numeric predicate.
* fileio.c (report_file_errno): New function, with most of the
old contents of report_file_error.
(report_file_error): Use it.
(Ffile_exists_p, Ffile_accessible_directory_p):
Set errno to 0 when it is junk.
* fileio.c (Faccess_file):
* image.c (x_create_bitmap_from_file):
Use faccessat rather than opening the file, to avoid the hassle of
having a file descriptor open.
* lisp.h (report_file_errno): New decl.
* lread.c (Flocate_file_internal): File descriptor 0 is valid, too.
2013-07-12 10:30:48 -07:00
Paul Eggert
7e649856bc Minor EBADF fixes.
* process.c (create_process, wait_reading_process_output) [AIX]:
Remove obsolete SIGHUP-related  code, as Emacs no longer disables
SIGHUP, so EBADF is no longer acceptable here (it wouldn't work in
a multithreaded environment anyway).
* sysdep.c (emacs_close): It's not dangerous to invoke emacs_close (-1).
2013-07-12 07:31:42 -07:00
Juanma Barranquero
acfcc8c53b lisp/desktop.el: Minor fixes.
(desktop--v2s): Remove unused local variable.
(desktop-save-buffer): Make defvar-local; adjust docstring.
(desktop-auto-save-timeout, desktop-owner): Use ignore-errors.
(desktop-clear, desktop-save-buffer-p): Use string-match-p.
2013-07-12 13:21:01 +02:00
Glenn Morris
40a6242346 Auto-commit of generated files. 2013-07-12 06:17:37 -04:00
Andreas Schwab
20549e2343 Remove lisp/emacs-lisp/.gitignore 2013-07-12 11:33:10 +02:00
Andreas Schwab
051f277502 * emacs-lisp/map-ynp.el (map-y-or-n-p): Fix last change. 2013-07-12 11:33:09 +02:00
Andreas Schwab
f6774c1ada * image.c (x_find_image_file): Don't close a remote file handle. 2013-07-12 11:02:30 +02:00
Eli Zaretskii
18331b9040 Minor followup to previous commit.
lisp/simple.el (next-line, previous-line): Document TRY-VSCROLL and ARG.

Fixes: debbugs:14842
2013-07-12 11:35:42 +03:00
Eli Zaretskii
c544322e3e Fix bug #14842 with doc strings of next-line and previous-line.
lisp/simple.el (next-line, previous-line): Document TRY-VSCROLL.
2013-07-12 11:33:14 +03:00
Glenn Morris
48dde4df64 * admin/admin.el (manual-style-string): Use non-abbreviated url. 2013-07-11 23:45:04 -07:00
Glenn Morris
539a920cda Remove some more reimplementations of cl-lib functions
* lisp/doc-view.el: Require cl-lib at runtime too.
(doc-view-remove-if): Remove.
(doc-view-search-next-match, doc-view-search-previous-match):
Use cl-remove-if.

* lisp/edmacro.el: Require cl-lib at runtime too.
(edmacro-format-keys, edmacro-parse-keys): Use cl-mismatch, cl-subseq.
(edmacro-mismatch, edmacro-subseq): Remove.

* lisp/filesets.el: Comments.

* lisp/shadowfile.el: Require cl-lib.
(shadow-remove-if): Remove.
(shadow-set-cluster, shadow-shadows-of-1, shadow-remove-from-todo):
Use cl-remove-if.

* lisp/wid-edit.el: Require cl-lib.
(widget-choose): Use cl-remove-if.
(widget-remove-if): Remove.

* lisp/progmodes/ebrowse.el: Require cl-lib at runtime too.
(ebrowse-delete-if-not): Remove.
(ebrowse-browser-buffer-list, ebrowse-member-buffer-list)
(ebrowse-tree-buffer-list, ebrowse-same-tree-member-buffer-list):
Use cl-delete-if-not.
2013-07-11 20:54:57 -07:00
Paul Eggert
bacba3c265 Fix races with threads and file descriptors.
* configure.ac (PTY_TTY_NAME_SPRINTF): Use emacs_close, not close.
* src/callproc.c (Fcall_process_region):
* src/dired.c (open_directory):
* src/emacs.c (main, Fdaemon_initialized):
* src/image.c (x_find_image_file):
* src/inotify.c (Finotify_rm_watch):
* src/lread.c (Flocate_file_internal):
* src/process.c (Fnetwork_interface_list, Fnetwork_interface_info):
* src/term.c (term_mouse_moveto, init_tty):
* src/termcap.c (tgetent):
* src/unexaix.c, src/unexcoff.c (report_error, report_error_1, adjust_lnnoptrs)
* src/unexaix.c, src/unexcoff.c, src/unexcw.c, src/unexelf.c (unexec):
* src/unexhp9k800.c, src/unexmacosx.c (unexec):
* src/callproc.c (Fcall_process_region):
Use emacs_close, not close.
* src/sysdep.c (POSIX_CLOSE_RESTART, posix_close) [!POSIX_CLOSE_RESTART]:
New macro and function, which emulates the POSIX_CLOSE_RESTART macro
and posix_close function on current platforms (which all lack them).
(emacs_close): Use it.  This should fix the races on GNU/Linux and
on AIX and on future platforms that support POSIX_CLOSE_RESTART,
and it should avoid closing random victim file descriptors on
other platforms.
2013-07-11 19:03:47 -07:00
Juanma Barranquero
1048af7c8f lisp/emacs-lisp/cl-macs.el: Fix typos in docstrings. 2013-07-12 03:11:22 +02:00
Leo Liu
6c0674ee27 * ido.el (dired-do-copy, dired): Set 'ido property.
Fixes: debbugs:11954
2013-07-12 09:01:53 +08:00
Paul Eggert
c8536ec405 * inotify.c (uninitialized): Remove. All uses replaced by -1.
(Finotify_add_watch): Simplify, since -1 means uninitialized now.
Touch up doc a bit.
2013-07-11 10:28:58 -07:00
Glenn Morris
2d8484878b ChangeLog fix 2013-07-11 13:27:27 -04:00
Glenn Morris
daca02043b ChangeLog fix (no need to merge to trunk) 2013-07-11 13:19:31 -04:00
Glenn Morris
6e0e82a034 ChangeLog fixes 2013-07-11 13:18:48 -04:00
Glenn Morris
4582a01c70 Remove some reimplementations of cl-gensym
* lisp/thumbs.el: Require cl-lib at run-time too.
(thumbs-gensym-counter, thumbs-gensym):
Remove reimplementation of cl-gensym.
(thumbs-temp-file): Use cl-gensym.

* lisp/emacs-lisp/edebug.el: Require cl-lib at run-time too.
(edebug-gensym-index, edebug-gensym):
Remove reimplementation of cl-gensym.
(edebug-make-enter-wrapper, edebug-make-form-wrapper): Use cl-gensym.
2013-07-11 13:16:19 -04:00
Glenn Morris
a3d4dd872c * admin/notes/changelogs: Explain "there is no need". 2013-07-11 09:15:57 -07:00
Glenn Morris
a19b3c2d97 Stop reimplementing a bunch of cl- functions in ert
* lisp/emacs-lisp/ert.el: Require cl-lib at runtime too.
(ert--cl-do-remf, ert--remprop, ert--remove-if-not)
(ert--intersection, ert--set-difference, ert--set-difference-eq)
(ert--union, ert--gensym-counter, ert--gensym-counter)
(ert--coerce-to-vector, ert--remove*, ert--string-position)
(ert--mismatch, ert--subseq): Remove reimplementations of cl funcs.
(ert-make-test-unbound, ert--expand-should-1)
(ert--expand-should, ert--should-error-handle-error)
(should-error, ert--explain-equal-rec)
(ert--plist-difference-explanation, ert-select-tests)
(ert--make-stats, ert--remove-from-list, ert--string-first-line):
Use cl-lib functions rather than reimplementations.

* test/automated/ert-tests.el: Require cl-lib at runtime too.
(ert-test-special-operator-p): Use cl-gensym rather than ert-- version.
(ert-test-remprop, ert-test-remove-if-not, ert-test-remove*)
(ert-test-set-functions, ert-test-gensym)
(ert-test-coerce-to-vector, ert-test-string-position)
(ert-test-mismatch): Remove tests.

* test/automated/cl-lib.el: New, split from ert-tests.el.
2013-07-11 09:13:38 -07:00
Glenn Morris
17bd3d0493 Adding :safe property to a defcustom does not merit a :version bump 2013-07-11 09:07:00 -07:00
Glenn Morris
d2e1542aa9 Quieten ruby-mode-tests.el compilation
* test/automated/ruby-mode-tests.el (ruby-deftest-move-to-block):
Goto point-min.
(works-on-do, zero-is-noop, ok-with-three, ok-with-minus-two)
(ruby-move-to-block-skips-percent-literal)
(ruby-move-to-block-skips-heredoc)
(ruby-move-to-block-moves-from-else-to-if)
(ruby-beginning-of-defun-does-not-fold-case)
(ruby-end-of-defun-skips-to-next-line-after-the-method):
Replace goto-line with forward-line/goto-char.
(ruby-move-to-block-does-not-fold-case): Remove unneeded end-of-buffer.
2013-07-11 09:04:56 -07:00
Glenn Morris
03d0198115 Silence package-test.el compilation
* test/automated/package-test.el (makeinfo-buffer): Autoload.
(compilation-in-progress, tar-parse-info, tar-header-name): Declare.
(package-test-install-texinfo): Don't require makeinfo.
2013-07-11 09:01:26 -07:00
Glenn Morris
709c6d2b1c * test/automated/files.el: Stop "local variables" confusion. 2013-07-11 09:00:05 -07:00
Glenn Morris
63cd50d4e2 * automated/flymake-tests.el (flymake-tests): Remove unused group. 2013-07-11 08:58:15 -07:00