Stefan Monnier [Mon, 8 Jul 2013 22:26:37 +0000 (18:26 -0400)]
* lisp/faces.el (tty-setup-hook): Declare the hook.
Stefan Monnier [Mon, 8 Jul 2013 21:54:54 +0000 (17:54 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--split-pred): Add `vars' argument to try
and detect when a guard/pred depends on local vars.
(pcase--u1): Adjust caller.
Fixes: debbugs:14773
Jan Djärv [Mon, 8 Jul 2013 17:54:39 +0000 (19:54 +0200)]
* NEWS: NS can be build with ImageMagick.
Eli Zaretskii [Mon, 8 Jul 2013 17:33:17 +0000 (20:33 +0300)]
Fix lisp/ChangeLog entry for last commit.
Eli Zaretskii [Mon, 8 Jul 2013 17:30:50 +0000 (20:30 +0300)]
Improve scrolling when line-spacing is non-nil.
lisp/simple.el (line-move-partial, line-move): Account for
line-spacing.
Jan Djärv [Mon, 8 Jul 2013 13:26:13 +0000 (15:26 +0200)]
configure.ac (HAVE_IMAGEMAGICK): Check on NS also.
image.c (imagemagick_load_image): Do not use MagickExportImagePixels
on NS even if it is present. Pixmap on NS is a void*.
Fixes: debbugs:14798
Kenichi Handa [Mon, 8 Jul 2013 11:55:58 +0000 (20:55 +0900)]
merge trunk
Kenichi Handa [Mon, 8 Jul 2013 11:51:55 +0000 (20:51 +0900)]
decoder-tests.el (decoder-tests-prefer-utf-8-read):
Use with-ccoding-priority to avoid side-effect (Bug#14781).
Lars Magne Ingebrigtsen [Mon, 8 Jul 2013 11:19:51 +0000 (13:19 +0200)]
* net/shr.el (shr-map): Reinstate the `u' key binding
It's been used a while.
Glenn Morris [Mon, 8 Jul 2013 10:17:45 +0000 (06:17 -0400)]
Auto-commit of generated files.
Paul Eggert [Mon, 8 Jul 2013 06:15:38 +0000 (23:15 -0700)]
Try to fix FreeBSD 9.1 porting problem.
This incorporates the following merge from gnulib:
2013-07-07 stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
Fixes: debbugs:14812
Paul Eggert [Mon, 8 Jul 2013 03:20:35 +0000 (20:20 -0700)]
Remove stray empty line.
Paul Eggert [Sun, 7 Jul 2013 23:22:43 +0000 (16:22 -0700)]
Port to Ubuntu 10.
Problem reported by T.V. Raman.
* configure.ac (accept4): New function to check for.
* src/process.c (close_on_exec, accept4, process_socket):
Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC.
Fixes: debbugs:14803
Juanma Barranquero [Sun, 7 Jul 2013 23:05:52 +0000 (01:05 +0200)]
ChangeLog fixes.
Juanma Barranquero [Sun, 7 Jul 2013 22:50:34 +0000 (00:50 +0200)]
lisp/subr.el (read-quoted-char): Remove unused local variable `char'.
Michael Kifer [Sun, 7 Jul 2013 19:35:54 +0000 (15:35 -0400)]
* faces.el (tty-run-terminal-initialization): function changed (Stefan
Monnier's patch).
* viper.el (viper-emacs-state-mode-list): add egg-status-buffer-mode.
(viper-version): version update.
(viper-go-away,viper-setup-hooks): function changed (Stefan Monnier's
patch).
(viper--lookup-key,viper-catch-tty-ESC,viper-uncatch-tty-ESC,
viper-setup-ESC-to-escape): new functions (Stefan Monnier's
patch).
* viper-cmd.el: (viper-del-forward-char-in-insert): new function.
(viper-save-kill-buffer): check if buffer is modified.
(viper-envelop-ESC-key): function deleted (Stefan Monnier's patch).
(viper-intercept-ESC-key): function changed (Stefan Monnier's patch).
* viper-keym.el (viper-ESC-key): constant changed (Stefan Monnier's
patch).
* ediff.el (ediff-files-command,ediff3-files-command): new functions.
(ediff-merge-command,ediff-merge-with-ancestor-command): new functions.
(ediff-directories-command,ediff-directories3-command): new functions.
(ediff-merge-directories-command): new function.
(ediff-merge-directories-with-ancestor-command): new function.
All the above are command-line interfaces to ediff: facilitate calling
Emacs with the appropriate ediff functions invoked.
(ediff-version): version update.
Eli Zaretskii [Sun, 7 Jul 2013 18:48:16 +0000 (21:48 +0300)]
MS-Windows followup for 2013-07-07T18:00:14Z!eggert@cs.ucla.edu.
nt/inc/sys/socket.h (F_SETFD, O_CLOEXEC, F_DUPFD_CLOEXEC)
(FD_CLOEXEC): New macros.
src/w32.c (sys_dup): Declare prototype.
src/filelock.c:
src/emacs.c:
src/callproc.c [WINDOWSNT]: Include sys/socket.h.
Paul Eggert [Sun, 7 Jul 2013 18:00:14 +0000 (11:00 -0700)]
Make file descriptors close-on-exec when possible.
This simplifies Emacs a bit, since it no longer needs to worry
about closing file descriptors by hand in some cases.
It also fixes some unlikely races. Not all such races, as
libraries often open files internally without setting
close-on-exec, but it's an improvement.
* admin/merge-gnulib (GNULIB_MODULES): Add fcntl, pipe2.
(GNULIB_TOOL_FLAGS): Avoid binary-io, close. Do not avoid fcntl.
* configure.ac (mkostemp): New function to check for.
(PTY_OPEN): Pass O_CLOEXEC to posix_openpt.
* lib/fcntl.c, lib/getdtablesize.c, lib/pipe2.c, m4/fcntl.m4:
* m4/getdtablesize.m4, m4/pipe2.m4: New files, taken from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* nt/gnulib.mk: Remove empty gl_GNULIB_ENABLED_verify section;
otherwise, gnulib-tool complains given close-on-exec changes.
* nt/inc/ms-w32.h (pipe): Remove.
* nt/mingw-cfg.site (ac_cv_func_fcntl, gl_cv_func_fcntl_f_dupfd_cloexec)
(gl_cv_func_fcntl_f_dupfd_works, ac_cv_func_pipe2): New vars.
* src/alloc.c (valid_pointer_p) [!WINDOWSNT]:
* src/callproc.c (Fcall_process) [!MSDOS]:
* src/emacs.c (main) [!DOS_NT]:
* src/nsterm.m (ns_term_init):
* src/process.c (create_process):
Use 'pipe2' with O_CLOEXEC instead of 'pipe'.
* src/emacs.c (Fcall_process_region) [HAVE_MKOSTEMP]:
* src/filelock.c (create_lock_file) [HAVE_MKOSTEMP]:
Prefer mkostemp with O_CLOEXEC to mkstemp.
* src/callproc.c (relocate_fd) [!WINDOWSNT]:
* src/emacs.c (main): Use F_DUPFD_CLOEXEC, not plain F_DUPFD.
No need to use fcntl (..., F_SETFD, FD_CLOEXEC), since we're
now using pipe2.
* src/filelock.c (create_lock_file) [! HAVE_MKOSTEMP]:
Make the resulting file descriptor close-on-exec.
* src/lisp.h, src/lread.c, src/process.c (close_load_descs, close_process_descs):
* src/lread.c (load_descriptor_list, load_descriptor_unwind):
Remove; no longer needed. All uses removed.
* src/process.c (SOCK_CLOEXEC): Define to 0 if not supplied by system.
(close_on_exec, accept4, process_socket) [!SOCK_CLOEXEC]:
New functions.
(socket) [!SOCK_CLOEXEC]: Supply a substitute.
(Fmake_network_process, Fnetwork_interface_list):
(Fnetwork_interface_info, server_accept_connection):
Make newly-created socket close-on-exec.
* src/sysdep.c (emacs_open, emacs_fopen):
Make new-created descriptor close-on-exec.
* src/w32.c (fcntl): Support F_DUPFD_CLOEXEC well enough for Emacs.
* src/w32.c, src/w32.h (pipe2): Rename from 'pipe', with new flags arg.
Fixes: debbugs:14803
Eli Zaretskii [Sun, 7 Jul 2013 15:49:03 +0000 (18:49 +0300)]
Improve scrolling of windows whose font is different from frame's default.
lisp/simple.el (default-font-height, window-screen-lines): New
functions.
(line-move, line-move-partial): Use them instead of
frame-char-height and window-text-height. This makes scrolling
text smoother when the buffer's default face uses a font that is
different from the frame's default font.
Jan Djärv [Sun, 7 Jul 2013 08:41:09 +0000 (10:41 +0200)]
*** empty log message ***
Paul Eggert [Sun, 7 Jul 2013 07:28:29 +0000 (00:28 -0700)]
Fix openp errno handling.
* callproc.c (Fcall_process): Preserve openp errno around close.
* lread.c (openp): Set errno when returning -1, as some callers
expect this.
Gnus developers [Sat, 6 Jul 2013 23:40:56 +0000 (23:40 +0000)]
Merge changes made in Gnus master
2013-07-06 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Group Parameters): Mention regexp
substitutions (bug#11688).
2013-07-06 Nathan Trapuzzano <nbtrap@nbtrap.com> (tiny change)
* gnus.texi (Generic Marking Commands): Fix grammar (bug#13368).
2013-07-06 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Emacsen): Fix version.
* gnus-faq.texi (FAQ 1-6): Mention the correct Emacs version.
2013-07-06 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-block-private-groups): Allow `global' methods to
display images.
* gnus.el (gnus-valid-select-methods): Mark nnrss as global.
* message.el (message-cancel-news): According to
<mailman.216.
1372942181.12400.help-gnu-emacs@gnu.org>, "cancel" is
preferred over "cmsg cancel" in the Subject.
* nnir.el (nnir-engines): Note that the group specs are regexps
(bug#13238).
* gnus-msg.el (gnus-copy-article-buffer): If the article buffer has
gotten read-only text properties, ensure that those aren't heeded when
copying stuff over (bug#13434).
* mm-view.el (mm-inline-text-html): Don't bug out on multipart messages
(bug#13762).
Glenn Morris [Sat, 6 Jul 2013 19:17:22 +0000 (12:17 -0700)]
* etc/NEWS: Tweak +++/--- description
Glenn Morris [Sat, 6 Jul 2013 18:28:54 +0000 (11:28 -0700)]
* admin.el (make-manuals): Add the option to only make certain output types.
(manual-misc-html): Special-case ccmode and efaq.
(manual-html-mono, manual-html-node, manual-pdf, manual-ps):
Move creation of output directory here from make-manuals.
(manual-html-fix-index-2): Avoid dynamic reference to `f'.
Jan Djärv [Sat, 6 Jul 2013 17:58:41 +0000 (19:58 +0200)]
* lisp/files.el (write-file): Do not display confirm dialog for NS,
it does its own dialog, which can't be cancelled.
* src/nsfns.m: Remove panelOK.
(ns_fd_data): New.
(ns_run_file_dialog): New function.
(Fns_read_file_name): Fill in ns_fd_data, post an event and start the
event loop, so file dialog is popped up by ns_run_file_dialog, called
by sendEvent (Bug#14578).
(EmacsSavePanel, EmacsOpenPanel): Remove ok and cancel methods.
* src/nsterm.h (NSSavePanel): Update comment.
(NSAPP_DATA2_RUNFILEDIALOG): Define.
(ns_run_file_dialog): Declare.
* src/nsterm.m (sendEvent:): Handle NSAPP_DATA2_RUNFILEDIALOG.
Eli Zaretskii [Sat, 6 Jul 2013 17:38:24 +0000 (20:38 +0300)]
Fix vertical cursor motion with non-default fonts.
lisp/simple.el (line-move-partial): Adjust the row returned by
posn-at-point for the current window-vscroll. (Bug#14567)
Michael Albinus [Sat, 6 Jul 2013 16:17:16 +0000 (18:17 +0200)]
* net/tramp-sh.el (tramp-sh-file-gvfs-monitor-dir-process-filter):
(tramp-sh-file-inotifywait-process-filter): Handle file names with spaces.
Michael Albinus [Sat, 6 Jul 2013 16:12:04 +0000 (18:12 +0200)]
Add TODO entry.
Martin Rudalics [Sat, 6 Jul 2013 14:24:54 +0000 (16:24 +0200)]
lisp/window.el (window-state-put): Remove window if buffer was not restored.
(window-state-put-stale-windows): New variable.
(window--state-put-2): Save list of windows without matching buffer.
(window-state-put): Remove "bufferless" windows if possible.
Juanma Barranquero [Sat, 6 Jul 2013 13:31:59 +0000 (15:31 +0200)]
lisp/simple.el (alternatives-define): Remove leftover :group keyword.
Tweak docstring.
David Kastrup [Sat, 6 Jul 2013 12:49:38 +0000 (12:49 +0000)]
lisp/gnus/auth-source.el (auth-source-netrc-parse-one): Allow empty strings in authinfo file again (important for blank passwords). This had been broken with 2013-06-15 change
Leo Liu [Sat, 6 Jul 2013 12:37:12 +0000 (20:37 +0800)]
* ido.el (ido-use-virtual-buffers): Allow new value 'auto.
(ido-enable-virtual-buffers): New variable.
(ido-buffer-internal, ido-toggle-virtual-buffers)
(ido-make-buffer-list): Use it.
(ido-exhibit): Support turning on and off virtual buffers
automatically.
Eli Zaretskii [Sat, 6 Jul 2013 10:41:38 +0000 (13:41 +0300)]
Fix bug #14771 with scroll-step = 1 and non-nil line-spacing.
src/xdisp.c (default_line_pixel_height): New function.
(pos_visible_p, move_it_vertically_backward, try_scrolling)
(try_cursor_movement, redisplay_window, try_window)
(try_window_id): Use it instead of FRAME_LINE_HEIGHT. (Bug#14771)
src/window.c (window_scroll_pixel_based): use
default_line_pixel_height.
src/dispextern.h (default_line_pixel_height): Add prototype.
src/frame.c (x_set_line_spacing): Accept a float value for
line-spacing parameter, per the documentation.
Juanma Barranquero [Sat, 6 Jul 2013 09:37:29 +0000 (11:37 +0200)]
etc/NEWS: Fix typos.
Juanma Barranquero [Sat, 6 Jul 2013 09:35:37 +0000 (11:35 +0200)]
lisp/simple.el (alternatives-define): New macro.
etc/NEWS: Document new "generic commands" support.
Eli Zaretskii [Sat, 6 Jul 2013 08:05:21 +0000 (11:05 +0300)]
Clarify documentation of multibyte-string-p.
src/data.c (Fmultibyte_string_p): Doc fix.
doc/lispref/nonascii.texi (Text Representations): Document that
multibyte-string-p returns nil for non-string objects.
Paul Eggert [Sat, 6 Jul 2013 02:40:50 +0000 (19:40 -0700)]
Use emacs_open more consistently when opening files.
This handles EINTR more consistently now, and makes it easier
to introduce other uniform changes to file descriptor handling.
* src/systdio.h: New file.
* src/buffer.c (mmap_init):
* cygw32.c (chdir_to_default_directory):
* dispnew.c (Fopen_termscript):
* emacs.c (Fdaemon_initialized):
* fileio.c (Fdo_auto_save):
* image.c (slurp_file, png_load_body, jpeg_load_body):
* keyboard.c (Fopen_dribble_file):
* lread.c (Fload):
* print.c (Fredirect_debugging_output):
* sysdep.c (get_up_time, procfs_ttyname, procfs_get_total_memory):
* termcap.c (tgetent):
* unexaix.c, unexcoff.c (unexec, adjust_lnnoptrs):
* unexcw.c, unexelf.c, unexhp9k800.c, unexmacosx.c (unexec):
* w32term.c (w32_initialize) [CYGWIN]:
* xfaces.c (Fx_load_color_file):
Use emacs_open instead of plain open, and emacs_fopen instead of
plain fopen.
* dispnew.c, fileio.c, image.c, keyboard.c, lread.c, print.c, sysdep.c:
* xfaces.c: Include sysstdio.h rather than stdio.h, for emacs_fopen.
* callproc.c (default_output_mode): New constant.
(Fcall_process): Use it to call emacs_open instead of plain creat.
* dispnew.c (Fopen_termscript): Fix minor race in opening termscript.
* sysdep.c (emacs_open): Add commentary and don't call file name "path".
(emacs_fopen): New function.
* unexaix.c, unexcoff.c, unexelf.c, unexhp9k800.c, unexmacosx.c:
Include <lisp.h>, for emacs_open.
* unexelf.c (fatal): Remove decl; not needed with <lisp.h> included.
Glenn Morris [Sat, 6 Jul 2013 02:32:13 +0000 (19:32 -0700)]
* admin/admin.el (make-manuals): Avoid hard-coding list of misc manuals.
(manual-misc-manuals): New function.
Glenn Morris [Sat, 6 Jul 2013 01:39:21 +0000 (18:39 -0700)]
Merge from emacs-24; up to 2012-12-30T19:34:25Z!jan.h.d@swipnet.se
Glenn Morris [Sat, 6 Jul 2013 01:19:46 +0000 (18:19 -0700)]
* mh-e.texi (Using This Manual): Printed elisp manuals no longer available.
Glenn Morris [Sat, 6 Jul 2013 01:17:50 +0000 (18:17 -0700)]
* doc/misc/mh-e.texi (Using This Manual): Refer to shop.fsf.org.
Glenn Morris [Sat, 6 Jul 2013 01:05:20 +0000 (18:05 -0700)]
* doc/misc/mh-e.texi: Fix external links.
Stefan Monnier [Sat, 6 Jul 2013 00:10:54 +0000 (20:10 -0400)]
* lisp/subr.el (read-quoted-char): Use read-key.
(sit-for): Let read-event decode tty input.
Fixes: debbugs:14782
Paul Eggert [Fri, 5 Jul 2013 16:58:01 +0000 (09:58 -0700)]
Remove duplicate #include directives.
* alloc.c [GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES]:
* xfaces.c:
Don't include stdio.h twice.
* buffer.c [USE_MMAP_FOR_BUFFERS]:
Don't include sys/types.h or stdio.h twice.
* fileio.c [WINDOWSNT | MSDOS]: Don't include fcntl.h twice.
* lread.c: Don't include coding.h twice.
* nsfont.m: Don't include frame.h twice.
* process.c [HAVE_RES_INIT]: Don't include <netinet/in.h> twice.
* ralloc.c: Don't include <unistd.h> twice.
* xdisp.c: Don't include font.h twice.
* xterm.c: Don't include fontset.h twice.
* xterm.h [USE_X_TOOLKIT]: Don't include X11/StringDefs.h twice.
Glenn Morris [Fri, 5 Jul 2013 16:10:47 +0000 (09:10 -0700)]
* admin/admin.el (make-manuals): Use a pdf/ subdirectory for pdf versions.
Michael Albinus [Fri, 5 Jul 2013 15:17:16 +0000 (17:17 +0200)]
Fix previous patch.
Michael Albinus [Fri, 5 Jul 2013 14:06:14 +0000 (16:06 +0200)]
* automated/file-notify-tests.el
(file-notify-test-remote-temporary-file-directory): Use
`null-device' on w32.
(file-notify--test-tmpfile, file-notify--test-tmpfile1)
(file-notify--test-results, file-notify--test-event)
(file-notify--deftest-remote, file-notify--event-test)
(file-notify--test-event-handler)
(file-notify--test-make-temp-name): Renamed, in order to mark them
internal.
(tramp-message-show-message, tramp-read-passwd): Tweak them for
better fitting in noninteractive tests.
(file-notify-test00-availability): Renamed from `file-notify-test0'.
(file-notify-test01-add-watch): Renamed from `file-notify-test1'.
Use `temporary-file-directory '.
(file-notify-test01-add-watch-remote): New test.
(file-notify-test02-events): Renamed from `file-notify-test2'.
(file-notify-test02-events-remote): Renamed from `file-notify-test3'.
(file-notify-test03-autorevert): Renamed from
`file-notify-test4'. Use timeouts.
(file-notify-test03-autorevert-remote): Renamed from
`file-notify-test5'.
Stephen Berman [Fri, 5 Jul 2013 14:03:35 +0000 (16:03 +0200)]
* calendar/todo-mode.el: Add handling of file deletion, both by
mode command and externally. Fix various related bugs. Clarify
Commentary and improve some documentation strings and code.
(todo-delete-file): New command.
(todo-check-file): New function.
(todo-show): Handle external deletion of the file we're trying to
show. Replace called-interactively-p by an optional
prefix argument to avoid problematic interaction with catch form
when byte compiled (bug#14702).
(todo-quit): Handle external deletion of the archive's todo file.
Make sure the buffer that was visiting the archive file is still
live before trying to bury it.
(todo-category-completions): Handle external deletion of any
category completion files.
(todo-jump-to-category, todo-basic-insert-item): Recalculate list
of todo files, in case of external deletion.
(todo-add-file): Replace unnecessary setq by let-binding.
(todo-find-archive): Check whether there are any archives.
Replace unnecessary setq by let-binding.
(todo-archive-done-item): Use find-file-noselect to get the
archive buffer whether or not the archive already exists. Remove
superfluous code. Use file size instead of buffer-file-name to
check if the archive is new; if it is, update list of archives.
(todo-default-todo-file): Allow nil to be a valid value for when
there are no todo files.
(todo-reevaluate-default-file-defcustom): Use corrected definition
of todo-default-todo-file.
(todo-key-bindings-t+a+f): Add key binding for todo-delete-file.
(todo-delete-category, todo-show-categories-table)
(todo-category-number): Clarify comment.
(todo-filter-items): Clarify documentation string.
(todo-show-current-file, todo-display-as-todo-file)
(todo-reset-and-enable-done-separator): Tweak documentation string.
(todo-done-separator): Make separator length window-width, since
bug#2749 is now fixed.
Fixes: debbugs:14688
Michael Albinus [Fri, 5 Jul 2013 13:34:01 +0000 (15:34 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Support
both "gvfs-monitor-dir" and "inotifywait".
(tramp-sh-file-inotifywait-process-filter): Renamed from
`tramp-sh-file-notify-process-filter'.
(tramp-sh-file-gvfs-monitor-dir-process-filter)
(tramp-get-remote-gvfs-monitor-dir): New defuns.
Leo Liu [Fri, 5 Jul 2013 02:37:39 +0000 (10:37 +0800)]
* autoinsert.el (auto-insert-alist): Default to lexical-binding.
Glenn Morris [Fri, 5 Jul 2013 01:35:56 +0000 (18:35 -0700)]
* admin/admin.el (make-manuals): Use a standard location for lispintro.
Glenn Morris [Fri, 5 Jul 2013 01:32:13 +0000 (18:32 -0700)]
Tweak html header for manuals
* doc/lispintro/emacs-lisp-intro.texi (Top):
Move WWW_GNU_ORG section outside @copying, update URL.
* doc/lispref/elisp.texi (Top): Move WWW_GNU_ORG section outside @copying.
@copying appears as a comment on every page, there is no need for the
WWW_GNU_ORG stuff to be in there.
Paul Eggert [Thu, 4 Jul 2013 15:25:54 +0000 (08:25 -0700)]
Scale ImageMagick images more carefully.
* image.c (scale_image_size) [HAVE_IMAGEMAGICK]: New function.
(compute_image_size): Use it. Define only if HAVE_IMAGEMAGICK.
Be more careful about avoiding undefined behavior after
integer overflow and division by zero.
YAMAMOTO Mitsuharu [Thu, 4 Jul 2013 10:25:54 +0000 (19:25 +0900)]
Add multi-monitor support on W32.
Michael Albinus [Thu, 4 Jul 2013 09:43:17 +0000 (11:43 +0200)]
* automated/file-notify-tests.el: New package.
Michael Albinus [Thu, 4 Jul 2013 09:40:56 +0000 (11:40 +0200)]
Add file-notify.el and related changes in Tramp.
Michael Albinus [Thu, 4 Jul 2013 09:39:36 +0000 (11:39 +0200)]
* filenotify.el: New package.
* autorevert.el (top): Require filenotify.el.
(auto-revert-notify-enabled): Remove. Use `file-notify-support'
instead.
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-handler): Use `file-notify-*' functions.
* subr.el (file-notify-handle-event): Move function to filenotify.el.
* net/tramp.el (tramp-file-name-for-operation): Handle
`file-notify-add-watch' and `file-notify-rm-watch'.
* net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler
for `file-notify-add-watch' and `file-notify-rm-watch'.
(tramp-process-sentinel): Improve trace.
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-file-notify-process-filter)
(tramp-sh-handle-file-notify-rm-watch)
(tramp-get-remote-inotifywait): New defuns.
Michael Albinus [Thu, 4 Jul 2013 09:29:28 +0000 (11:29 +0200)]
* fileio.c (Qfile_notify_error): New error symbol.
* gfilenotify.c (Fgfile_add_watch, Fgfile_rm_watch):
* inotify.c (inotify_callback, symbol_to_inotifymask)
(Finotify_add_watch, Finotify_rm_watch): Use it.
(inotifyevent_to_event): Exchange order of cookie and file name.
(Finotify_add_watch): Adapt docstring.
* lisp.h (Qfile_notify_error): Declare.
Paul Eggert [Thu, 4 Jul 2013 06:20:55 +0000 (23:20 -0700)]
Try again to fix FreeBSD bug re multithreaded memory alloc.
* emacs.c (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
Do not clear _malloc_thread_enabled_p, undoing the previous change,
which did not work (see <http://bugs.gnu.org/14569#307>).
(main): Do not invoke malloc_enable_thread if (! CANNOT_DUMP
&& (!noninteractive || initialized)). This attempts to thread
the needle between the Scylla of FreeBSD and the Charybdis of Cygwin.
Glenn Morris [Thu, 4 Jul 2013 02:30:36 +0000 (19:30 -0700)]
* admin/FOR-RELEASE: Add note about linc.py.
Juanma Barranquero [Thu, 4 Jul 2013 02:08:56 +0000 (04:08 +0200)]
src/image: Remove unused variables.
(x_to_xcolors) [HAVE_NTGUI]: Remove unused var `hdc'.
(x_build_heuristic_mask) [HAVE_NTGUI]: Remove unused var `frame_dc'.
Glenn Morris [Thu, 4 Jul 2013 01:55:25 +0000 (18:55 -0700)]
* doc/misc/newsticker.texi (Overview): Update URL.
Glenn Morris [Thu, 4 Jul 2013 01:53:56 +0000 (18:53 -0700)]
* doc/misc/nxml-mode.texi (Introduction): Update @url.
Glenn Morris [Thu, 4 Jul 2013 01:52:54 +0000 (18:52 -0700)]
* doc/misc/org.texi (JavaScript support): Fix @url.
Glenn Morris [Thu, 4 Jul 2013 01:52:12 +0000 (18:52 -0700)]
* doc/misc/wisent.texi (Wisent Overview): Remove incorrect, unnecessary uref.
We can use an htaccess redirect to make the previous xref work.
Paul Eggert [Thu, 4 Jul 2013 00:53:13 +0000 (17:53 -0700)]
Try to fix FreeBSD bug re multithreaded memory allocation.
* src/emacs.c (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
Clear _malloc_thread_enabled_p at startup. Reported by Ashish SHUKLA in
<http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00088.html>.
Fixes: debbugs:14569
Juri Linkov [Wed, 3 Jul 2013 23:11:58 +0000 (02:11 +0300)]
* lisp/buff-menu.el (Buffer-menu-multi-occur): Add args and move the
call of `occur-read-primary-args' to interactive spec.
* lisp/ibuffer.el (ibuffer-mode-map): Bind "M-s a C-o" to
`ibuffer-do-occur' like in buff-menu.el.
Fixes: debbugs:14673
Matthias Meulien [Wed, 3 Jul 2013 23:04:55 +0000 (02:04 +0300)]
* lisp/buff-menu.el (Buffer-menu-mode-map): Bind "M-s a C-o" to
`Buffer-menu-multi-occur'. Add it to the menu.
(Buffer-menu-mode): Document it in docstring.
(Buffer-menu-multi-occur): New command.
Fixes: debbugs:14673
Paul Eggert [Wed, 3 Jul 2013 21:07:48 +0000 (14:07 -0700)]
* texinfo.tex: Merge from gnulib.
Dmitry Gutov [Wed, 3 Jul 2013 15:46:45 +0000 (19:46 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
keywords and built-ins.
Glenn Morris [Wed, 3 Jul 2013 11:17:35 +0000 (07:17 -0400)]
Auto-commit of generated files.
Glenn Morris [Wed, 3 Jul 2013 10:17:43 +0000 (06:17 -0400)]
Auto-commit of generated files.
Glenn Morris [Wed, 3 Jul 2013 07:51:34 +0000 (00:51 -0700)]
* doc/misc/dbus.texi: Comment fix.
Glenn Morris [Wed, 3 Jul 2013 07:45:25 +0000 (00:45 -0700)]
Fix/update some gnus manual links to external resources
* doc/misc/gnus-faq.texi (FAQ 5-8, FAQ 6-3): Remove defunct URLs.
(FAQ 7-1): Update URL.
* doc/misc/gnus.texi (Top): Restrict "Other related manuals" to info output.
(Foreign Groups): Use @indicateurl for examples.
(Direct Functions): Remove defunct URL.
(RSS): Update URL.
Glenn Morris [Wed, 3 Jul 2013 07:15:23 +0000 (00:15 -0700)]
* doc/misc/eudc.texi (CCSO PH/QI): Remove defunct URL.
Glenn Morris [Wed, 3 Jul 2013 07:07:26 +0000 (00:07 -0700)]
* doc/misc/dbus.texi (Introspection): Update URL to a less defunct one.
Glenn Morris [Wed, 3 Jul 2013 06:42:43 +0000 (23:42 -0700)]
* doc/misc/pgg.texi (Top, Overview): Add note about obsolescence.
Katsumi Yamaoka [Wed, 3 Jul 2013 04:15:38 +0000 (04:15 +0000)]
gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): Revert 2013-01-14 change
Glenn Morris [Wed, 3 Jul 2013 03:20:04 +0000 (20:20 -0700)]
Merge from emacs-24; up to 2012-12-29T12:57:49Z!fgallina@gnu.org
Glenn Morris [Wed, 3 Jul 2013 03:13:07 +0000 (20:13 -0700)]
* lisp/subr.el (y-or-n-p): Handle empty prompts.
Fixes: debbugs:14770
Glenn Morris [Wed, 3 Jul 2013 03:09:38 +0000 (20:09 -0700)]
Make info-xref checks case-sensitive by default
* lisp/info.el (Info-find-node, Info-find-in-tag-table)
(Info-find-node-in-buffer, Info-find-node-2, Info-goto-node):
Add option for exact case matching of nodes.
* lisp/info-xref.el (info-xref): New custom group.
(info-xref-case-fold): New option.
(info-xref-goto-node-p): Pass info-xref-case-fold to Info-goto-node.
Glenn Morris [Wed, 3 Jul 2013 03:03:47 +0000 (20:03 -0700)]
Fix some doc/ cross-references
* doc/lispintro/emacs-lisp-intro.texi (edebug):
* doc/lispref/debugging.texi (Debugging):
* doc/lispref/files.texi (File Attributes, Changing Files):
* doc/misc/bovine.texi (top):
* doc/misc/cc-mode.texi (AWK Mode Font Locking):
* doc/misc/mh-e.texi (Preface):
* doc/misc/url.texi (URI Parsing):
Fix cross-references to other manuals.
* doc/lispref/package.texi (Package Archives): Fix @url call.
Leo Liu [Wed, 3 Jul 2013 03:01:34 +0000 (11:01 +0800)]
* ido.el (ido-delete-file-at-head): Respect delete-by-moving-to-trash.
Dmitry Gutov [Wed, 3 Jul 2013 01:02:18 +0000 (05:02 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): When we're at a
middle of block statement initially, lower the depth. Remove
FIXME comment, not longer valid. Remove middle of block statement
detection, no need to do that anymore since we've been using
`ruby-parse-region' here.
Paul Eggert [Tue, 2 Jul 2013 22:14:42 +0000 (15:14 -0700)]
* src/sysdep.c (sys_siglist): Fix typo in previous commit.
Jan Djärv [Tue, 2 Jul 2013 18:16:09 +0000 (20:16 +0200)]
* term/ns-win.el (display-format-alist): Use .*.
Fixes: debbugs:14765
Paul Eggert [Tue, 2 Jul 2013 16:56:29 +0000 (09:56 -0700)]
Remove some unused macros from 'configure'.
* configure.ac (HAVE_SOUNDCARD_H, HAVE_LINUX_VERSION_H, HAVE_SPEED_T)
(HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY)
(HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION, HAVE_UTIMES)
(HAVE_LIBHESIOD, HAVE_LIBRESOLV, HAVE_LIBCOM_ERR, HAVE_LIBCRYPTO)
(HAVE_LIBK5CRYPTO, HAVE_LIBKRB5, HAVE_LIBDES425, HAVE_LIBDES)
(HAVE_LIBKRB4, HAVE_LIBKRB, HAVE_DES_H, HAVE_KERBEROSIV_DES_H)
(HAVE_DEV_PTMX, DEVICE_SEP, USG5):
Remove these macros, as they are not used.
(sys_siglist): Remove macro; src/sysdep.c now does this.
* src/sysdep.c (sys_siglist) [HAVE_DECL___SYS_SIGLIST]:
Define to __sys_siglist.
Eli Zaretskii [Tue, 2 Jul 2013 16:45:28 +0000 (19:45 +0300)]
Improve commentary for glyph.charpos and glyph.object.
Eli Zaretskii [Tue, 2 Jul 2013 16:32:03 +0000 (19:32 +0300)]
Update commentary in w32notify.c.
Christoph Egger [Tue, 2 Jul 2013 16:11:15 +0000 (09:11 -0700)]
* configure.ac (emacs_broken_SIGIO): Set on gnu-kfreebsd (tiny change)
http://bugs.debian.org/712974
Eli Zaretskii [Tue, 2 Jul 2013 15:52:07 +0000 (18:52 +0300)]
Fix bug #2749 with overflow-newline-into-fringe in visual-line-mode.
src/xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Don't disallow
word-wrap, so that overflow-newline-into-fringe would work in
visual-line-mode.
(move_it_in_display_line_to): When the last scanned display
element fits exactly on the display line, and
overflow-newline-into-fringe is non-nil, but wrap_it is valid,
don't return MOVE_NEWLINE_OR_CR, but instead back up to the last
wrap point and return MOVE_LINE_CONTINUED. Fixes problems with
finding buffer position that corresponds to pixel coordinates,
e.g. in buffer_posn_from_coords.
Jan Djärv [Tue, 2 Jul 2013 12:46:43 +0000 (14:46 +0200)]
* process.c (handle_child_signal): Call catch_child_signal if NS_IMPL_GNUSTEP.
Katsumi Yamaoka [Tue, 2 Jul 2013 10:38:58 +0000 (10:38 +0000)]
Merge changes made in Gnus trunk
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Client-Side IMAP Splitting):
Note that `nnimap-inbox' now can be a list.
2013-06-05 David Engster <deng@randomsample.de>
* gnus-sum.el (gnus-update-marks): Do not remove empty 'unexist'
ranges, since `nnimap-retrieve-group-data-early' also uses it as a flag
to see whether the group was synced before.
2012-09-05 Martin Stjernholm <mast@lysator.liu.se>
* nnimap.el (nnimap-request-move-article): Decode the group name when
doing internal moves to avoid charset issues.
2012-09-05 Julien Danjou <julien@danjou.info>
* nnimap.el (nnimap-request-list):
Revert change that made listing synchronous.
(nnimap-get-responses): Restore.
2012-08-31 Dave Abrahams <dave@boostpro.com>
* nnimap.el (nnimap-change-group): Document result value.
* nnimap.el (nnimap-find-article-by-message-id):
Account for the fact that nnimap-change-group can return t.
2012-08-06 Julien Danjou <julien@danjou.info>
* nnimap.el (nnimap-request-head):
Resture to-buffer parameter, used by `nnimap-request-move-article'.
* nnimap.el (nnimap-request-head): Remove to-buffer argument.
* gnus-int.el (gnus-request-head): Remove to-buffer argument, only
supported by nnimap actually. Reverts previous change.
* gnus-int.el (gnus-request-head): Add an optional to-buffer parameter
to mimic `gnus-request-article' and enjoy backends the nn*-request-head
to-buffer argument that is already supported.
2012-07-24 Julien Danjou <julien@danjou.info>
* nnimap.el (nnimap-get-responses): Remove, unused.
2012-06-25 Julien Danjou <julien@danjou.info>
* nnimap.el (nnimap-request-articles-find-limit): Rename from
`nnimap-request-move-articles-find-limit' since we do not use it
only for move operations.
(nnimap-request-accept-article):
Use `nnimap-request-articles-find-limit' to limit search by message-id.
2012-06-19 Julien Danjou <julien@danjou.info>
* nnir.el (nnir-run-imap): Fix, use `nnimap-change-group'.
* nnimap.el (nnimap-log-buffer):
Check that `window-point-insertion-type' is boundp, since it's not
available in XEmacs.
2012-06-19 Michael Welsh Duggan <md5i@md5i.com>
* nnimap.el (nnimap-log-buffer):
Add this, setting `window-point-insertion-type' in the buffer to t.
(nnimap-log-command): Use nnimap-log-buffer.
2012-06-19 Julien Danjou <julien@danjou.info>
* nnimap.el (nnimap-find-article-by-message-id):
Add an optional limit argument to be able to limit the search.
(nnimap-request-move-article):
Use `nnimap-request-move-articles-find-limit'.
(nnimap-request-move-articles-find-limit):
Add this to limit the search by Message-Id after a message move.
(nnimap): Add defgroup.
2012-06-15 Julien Danjou <julien@danjou.info>
* nnimap.el (nnimap-find-article-by-message-id):
Use `nnimap-possibly-change-group' rather than its own EXAMINE call.
(nnimap-possibly-change-group): Add read-only argument.
(nnimap-request-list): Use nnimap-possibly-change-group rather than
issuing EXAMINE manually.
(nnimap-find-article-by-message-id):
Use `nnimap-possibly-change-group' with read-only argument.
(nnimap-change-group): Rename from `nnimap-possibly-change-group'.
We cannot possibly change because we need to be sure that it's either
read-write or read-only.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-summary-insert-old-articles):
Don't include unexistent messages.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-start.el (gnus-clean-old-newsrc):
Remove totally bogus `unexists' entries.
(gnus-clean-old-newsrc): Fix last checkin.
* nnimap.el (nnimap-update-info):
None of the articles below the active low-water mark exist.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* nnimap.el (gnus-refer-thread-use-nnir): Silence the byte compiler.
2012-03-22 Sergio Martinez <samf0xb58@gmail.com> (tiny change)
* nnimap.el (nnimap-request-scan):
Allow `nnimap-inbox' to be a list of inboxes.
2012-03-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-group-expire-articles-1):
Don't try to expire messages that don't exist.
* gnus-sum.el (gnus-summary-expire-articles): Ditto.
2012-02-20 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-start.el (gnus-clean-old-newsrc): Allow a FORCE parameter.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-start.el (gnus-clean-old-newsrc):
Delete `unexist' from pre-Ma Gnus 0.3.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-summary-local-variables):
Make `gnus-newsgroup-unexist' into a local variable.
2012-02-11 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-adjust-marked-articles):
Add to `gnus-newsgroup-unexist'.
* gnus.el (gnus-article-mark-lists):
Add `unexist' to the list of marks.
(gnus-article-special-mark-lists):
Put the `unexist' in the special marks list instead.
* gnus-sum.el (gnus-articles-to-read): Don't include unexisting
articles in the list of articles to be selected.
* nnimap.el (nnimap-retrieve-group-data-early):
Query for unexisting articles.
(nnimap-update-info): Keep track of unexisting articles.
(nnimap-update-qresync-info): Ditto.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-start.el (gnus-clean-old-newsrc): New function.
(gnus-read-newsrc-file): Use it.
Glenn Morris [Tue, 2 Jul 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.
Glenn Morris [Tue, 2 Jul 2013 07:42:34 +0000 (00:42 -0700)]
Fix two doc/emacs cross-references
* doc/emacs/maintaining.texi (EDE): Fix cross-reference.
* doc/emacs/programs.texi (Program Modes): Fix emacs-xtra reference.
Paul Eggert [Tue, 2 Jul 2013 03:41:16 +0000 (20:41 -0700)]
Don't convert function pointers to void * and back.
It isn't portable C, and it's easy enough to avoid.
* alloc.c: Verify SAVE_FUNCPOINTER bits, too.
(make_save_value): Add support for SAVE_FUNCPOINTER.
* keymap.c (map_keymap_char_table_item, map_keymap_internal):
* print.c (print_object):
Distinguish function from object pointers.
* lisp.h (SAVE_FUNCPOINTER): New constant.
(SAVE_SLOT_BITS): Adjust to it.
(SAVE_TYPE_FUNCPTR_PTR_OBJ): New constant, replacing
SAVE_TYPE_PTR_PTR_OBJ. Change the only use.
(voidfuncptr): New typedef.
(struct Lisp_Save_Value): New member data[0].funcpointer.
(XSAVE_FUNCPOINTER): New function.
Daiki Ueno [Tue, 2 Jul 2013 02:34:12 +0000 (02:34 +0000)]
lisp/gnus/mml2015.el: make key image extraction robuster
Paul Eggert [Tue, 2 Jul 2013 02:17:12 +0000 (19:17 -0700)]
* configure.ac (GTK_COMPILES): Check API a bit more carefully.
Also check that it links. Say whether it compiled and linked.
Paul Eggert [Tue, 2 Jul 2013 00:57:46 +0000 (17:57 -0700)]
Simplify buildobj processing.
* Makefile.in (buildobj.h): Make it a sequence of strings each
followed by comma, rather than a single string. Put it into a
.tmp file in case there's an error while generating it.
(gl-stamp): Use .tmp for temp files.
(mostlyclean): Clean .tmp files.
* doc.c (buildobj): Move to just the routine that needs it.
It's now an array of strings, so processing is simpler.
Paul Eggert [Tue, 2 Jul 2013 00:35:28 +0000 (17:35 -0700)]
Fix ChangeLog dates.