1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00
Commit graph

116079 commits

Author SHA1 Message Date
Glenn Morris
bbece175c9 Use a @configure_input@ comment at the start of generated Makefiles 2013-07-23 18:57:17 -04:00
Glenn Morris
97afc49a1a * inotify-test.el (inotify-file-watch-simple): Delete temp-file when done. 2013-07-23 15:54:01 -04:00
Glenn Morris
66878244eb * test/automated/subword-tests.el: Require subword. 2013-07-23 09:08:47 -07:00
Michael Albinus
80ff0c71ad * net/tramp.el (tramp-handle-file-notify-add-watch): New defun.
* net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use it.
2013-07-23 16:06:02 +02:00
Juanma Barranquero
74d7f75a6b lisp/desktop.el (desktop-list*): Fix previous change. 2013-07-23 13:29:30 +02:00
Glenn Morris
20d5e28ab3 Auto-commit of generated files. 2013-07-23 06:17:48 -04:00
Paul Eggert
e3ebe15a74 Fix ChangeLog typo. 2013-07-23 10:06:46 +01:00
Paul Eggert
a29c3e6db0 Port to GNU/Linux systems with tinfo but not ncurses.
* configure.ac (USE_NCURSES): New symbol.
* src/dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX,
to decide whether ncurses is being used.  Without this change,
GCC complains about tgetent not being declared, on a system
that has tinfo installed but ncurses not installed.
2013-07-23 09:08:57 +01:00
Paul Eggert
f274311c2c * eval.c (Fprogn): Check that BODY is a proper list. 2013-07-23 08:22:16 +01:00
Katsumi Yamaoka
a048c2955c [Gnus] Fix previous commit
* gnus.el (gnus-continuum-version):
* gnus-msg.el (gnus-extended-version): Simplify.

* gnus.el (gnus-continuum-version-1): Remove.
* gnus-msg.el (gnus-bug): Revert.
2013-07-23 07:04:24 +00:00
Paul Eggert
16b0520a9e Tune UNEVALLED functions by using XCAR instead of Fcar, etc.
* data.c (Fsetq_default):
* eval.c (Fif, Fcond, Fprog1, Fsetq, Fquote, Ffunction, Fdefvar)
(Fdefconst, FletX, Flet, Fwhile, Fcatch, Funwind_protect)
(Fcondition_case):
Tune by taking advantage of the fact that ARGS is always a list
when a function is declared to have UNEVALLED args.
2013-07-23 07:48:34 +01:00
Paul Eggert
9ca960e27a * emacsgtkfixed.c: Port to GCC 4.6.
GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7.
2013-07-23 07:38:51 +01:00
Katsumi Yamaoka
02efb5eee6 Calculate gnus-version correctly on Cygwin
* gnus.el (gnus-continuum-version): Do main calculations in integers.
  (gnus-continuum-version-1): New function, return a string.
* gnus-msg.el (gnus-extended-version, gnus-bug):
  Use gnus-continuum-version-1 instead of gnus-continuum-version.
2013-07-23 05:22:20 +00:00
Juanma Barranquero
afacaa1b18 src/callproc.c (child_setup): Silence compiler warnings. 2013-07-23 03:11:40 +02:00
Juanma Barranquero
b61d71e44f lisp/desktop.el: Simplify.
(desktop-clear): Simplify; remove useless checks against invalid buffer names.
(desktop-list*): Use cl-list*.
(desktop-buffer-info, desktop-create-buffer): Simplify.
2013-07-23 03:10:54 +02:00
Leo Liu
c35120929b * bookmark.el (bookmark-make-record): Restore NAME as a default
value.

Fixes: debbugs:14933
2013-07-23 08:58:28 +08:00
Stefan Monnier
7d22ce18d4 * lisp/emacs-lisp/autoload.el (autoload--setup-output): New function,
extracted from autoload--insert-text.
(autoload--insert-text): Remove.
(autoload--print-cookie-text): New function, extracted from
autoload--insert-cookie-text.
(autoload--insert-cookie-text): Remove.
(autoload-generate-file-autoloads): Adjust calls accordingly.
2013-07-22 19:21:14 -04:00
Stefan Monnier
9b2607e821 * lisp/winner.el (winner-hook-installed-p): Remove.
(winner-mode): Simplify accordingly.
2013-07-22 18:51:29 -04:00
Stefan Monnier
c43a861814 * lisp/subr.el (add-to-list): Fix compiler-macro when `append' is
not constant.  Don't use `cl-member' for the base case.
2013-07-22 13:24:31 -04:00
Stefan Monnier
0ac26976f1 * lisp/progmodes/subword.el: Fix boundary case.
(subword-forward-regexp): Make it a constant.  Wrap optional \\W in its
own group.
(subword-backward-regexp): Make it a constant.
(subword-forward-internal): Don't treat a trailing capital as the
beginning of a word.
* test/automated/subword-tests.el: New file.

Fixes: debbugs:13758
2013-07-22 12:25:32 -04:00
Paul Eggert
368a85a4db * sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame
when including <sys/user.h>, to prevent Sparc/ARM machine/frame.h
from messing up Emacs's 'struct frame'.

Fixes: debbugs:14923
2013-07-22 16:30:54 +01:00
Ari Roponen
6874724a3d lisp/emacs-lisp/package.el (package-menu-mode): Fix bug#14930.
Don't modify the global value of tabulated-list-revert-hook.
2013-07-22 13:39:32 +02:00
Glenn Morris
ac2bcafcdc Auto-commit of loaddefs files. 2013-07-22 06:21:02 -04:00
Michael Albinus
32813ea795 * files.texi (Magic File Names): Add file-notify-add-watch,
file-notify-rm-watch and file-notify-supported-p.  Move
file-remote-p down.

* errors.texi (Standard Errors): Add file-notify-error.

* os.texi (Desktop Notifications): Rename from Notifications.
(File Notifications): New node.

* elisp.texi (Top): Update menu for these changes.
2013-07-22 11:19:00 +02:00
Michael Albinus
fb83082013 Fix typo. 2013-07-22 11:17:21 +02:00
Stefan Monnier
3a3f390d1b * lisp/url/url-http.el (status): Remove, unused.
(success): Remove var.
(url-http-handle-authentication): Return the value that `success'
should take instead of setting `success' directly.  Don't set `status'
since it's not used.
(url-http-parse-headers): Avoid unneeded setq.
Move the `setq success'.
(url-http): Use pcase.
(url-http-file-exists-p): Simplify.
2013-07-22 00:06:21 -04:00
Juanma Barranquero
a1c80d9d45 lisp/desktop.el: Require 'cl-lib.
(desktop-before-saving-frames-functions): New hook.
(desktop--process-minibuffer-frames): Set desktop-mini parameter only
for frames being saved.  Rename from desktop--save-minibuffer-frames.
(desktop-save-frames): Run hook desktop-before-saving-frames-functions.
Do not save frames with non-nil `desktop-dont-save' parameter.  Filter
out deleted frames.
(desktop--find-frame): Use cl-find-if.
(desktop--select-frame): Use cl-(first|second|third) to access values
of desktop-mini.
(desktop--make-frame): Use cl-delete-if.
(desktop--sort-states): Fix sorting of minibuffer-owning frames.
(desktop-restore-frames): Use cl-(first|second|third) to access values
of desktop-mini.  Look for visible frame at the end, not while
restoring frames.
2013-07-22 03:25:47 +02:00
Juanma Barranquero
70f1b5e80d lisp/dired-x.el: Fix bug#14927.
(dired-mark-unmarked-files, dired-virtual, dired-guess-default)
(dired-mark-sexp, dired-filename-at-point): Use string-match-p, looking-at-p.
2013-07-22 03:04:10 +02:00
Juanma Barranquero
56bc453c4a lisp/desktop.el: Make some frame-restoring functions public.
(desktop-saved-frame-states): Rename from desktop--saved-states;
all users changed.
(desktop-save-frames): Rename from desktop--save-frames.
Do not save state to desktop file.
(desktop-save): Save desktop-saved-frame-states to desktop file
and reset to nil.
(desktop-restoring-frames-p): New function.
(desktop-restore-frames): Use it.  Rename from desktop--restore-frames.
(desktop-read): Use desktop-restoring-frames-p.  Do not try to fix
buffer-lists when restoring frames.  Suggested by Martin Rudalics.
2013-07-21 19:45:12 +02:00
Paul Eggert
f4e891b5a8 * alloc.c (make_save_ptr_ptr): Define this function.
It was inadvertently omitted.  It's needed only if
HAVE_MENUS && ! (USE_X_TOOLKIT || USE_GTK).
2013-07-21 08:56:55 -07:00
Jan Djärv
96c8b65ebd * nsterm.m (sendEvent:): Skip mouse moved if no dialog and no Emacs
frame have focus.

Fixes: debbugs:14895
2013-07-21 13:47:07 +02:00
Glenn Morris
75bdb32ae3 Auto-commit of generated files. 2013-07-21 06:19:07 -04:00
Paul Eggert
ee01079735 Avoid vfork-related deadlock more cleanly.
* callproc.c (child_setup): When the child's exec fails, output
the program name, as that's more useful.  Use O_NONBLOCK to avoid
deadlock.
* process.c (create_process_1): Remove; no longer needed.
(create_process): Remove timer hack; no longer needed, now that
the child avoids deadlock.
2013-07-20 23:53:47 -07:00
Paul Eggert
02c66599e3 Spelling fixes. 2013-07-20 21:22:33 -07:00
Juanma Barranquero
763a086dc7 lisp/ChangeLog, src/ChangeLog: Fix typos. 2013-07-21 04:53:19 +02:00
Juanma Barranquero
728dc3cc60 lisp/desktop.el: Correctly restore iconified frames.
(desktop--filter-iconified-position): New function.
(desktop-filter-parameters-alist): Add entries for `top' and `left'.
2013-07-21 04:42:11 +02:00
Glenn Morris
d828e5f942 image-dired.el: use with-current-buffer
* lisp/image-dired.el (image-dired-track-original-file):
Use with-current-buffer.
(image-dired-track-thumbnail): Use with-current-buffer.
Avoid changing point of wrong window.
2013-07-20 12:29:02 -07:00
Glenn Morris
c4074c9f63 Tweak some message calls in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-delete-handler, gdb-stopped):
Let `message' do the formatting.
(def-gdb-preempt-display-buffer): Add explicit format.
2013-07-20 12:25:05 -07:00
Glenn Morris
f0398ec17f Merge from emacs-24; up to 2012-12-31T11:35:13Z!rudalics@gmx.at 2013-07-20 12:20:33 -07:00
Glenn Morris
862f1c9c3a * lisp/image-dired.el (image-dired-track-original-file):
Avoid changing point of wrong window.

Fixes: debbugs:14909
2013-07-20 12:17:32 -07:00
Andreas Schwab
1451928fff * international/mule.el (coding-system-iso-2022-flags): Fix last
change.
2013-07-20 17:41:38 +02:00
Paul Eggert
6496aec9e9 Fix array bounds violation when pty allocation fails.
* configure.ac (PTY_TTY_NAME_SPRINTF): Use PTY_NAME_SIZE,
not sizeof pty_name, since pty_name is now a pointer to the array.
* src/process.c (PTY_NAME_SIZE): New constant.
(pty_name): Remove static variable; it's now auto.
(allocate_pty): Define even if !HAVE_PTYS; that's simpler.
Take pty_name as an arg rather than using a static variable.
All callers changed.
(create_process): Recover pty_flag from process, not from volatile local.
(create_pty): Stay inside array even when pty allocation fails.
(Fmake_serial_process): Omit unnecessary initializaiton of pty_flag.
2013-07-20 08:33:00 -07:00
Paul Eggert
b2a069c2f8 * lread.c (Fload): Avoid initialization only when lint checking.
Mention that it's needed only for older GCCs.
2013-07-20 07:21:25 -07:00
Kenichi Handa
7e67809332 merge trunk 2013-07-20 20:51:53 +09:00
Kenichi Handa
0efe47a860 coding.c (decode_coding_iso_2022): Fix previous change. 2013-07-20 20:45:50 +09:00
Kenichi Handa
1145cc5221 mule.el (coding-system-iso-2022-flags): Change 8-bit-level-4' 2013-07-20 20:22:56 +09:00
Andreas Schwab
6b1b199dc0 * lread.c (Fload): Avoid uninitialized warning. 2013-07-20 10:25:46 +02:00
Kenichi Handa
99107004b1 * coding.c (CODING_ISO_FLAG_LEVEL_4): New macro.
(decode_coding_iso_2022): Check the single-shift area.  (Bug#8522)
2013-07-20 13:19:05 +09:00
Kenichi Handa
eaaa8f3ea1 * mule.el (coding-system-iso-2022-flags): Add `level-4'. (Bug#8522) 2013-07-20 13:15:37 +09:00
Paul Eggert
3f5bef16fa Fix some minor file descriptor leaks and related glitches.
* filelock.c (create_lock_file) [!O_CLOEXEC]: Use fcntl with FD_CLOEXEC.
(create_lock_file): Use write, not emacs_write.
* image.c (slurp_file, png_load_body):
* process.c (Fnetwork_interface_list, Fnetwork_interface_info)
(server_accept_connection):
Don't leak an fd on memory allocation failure.
* image.c (slurp_file): Add a cheap heuristic for growing files.
* xfaces.c (Fx_load_color_file): Block input around the fopen too,
as that's what the other routines do.  Maybe input need not be
blocked at all, but it's better to be consistent.
Avoid undefined behavior when strlen is zero.
2013-07-19 11:09:23 -07:00