]> code.delx.au - gnu-emacs/log
gnu-emacs
11 years agoMerge from emacs-24; up to 2012-12-20T16:09:05Z!dmantipov@yandex.ru
Glenn Morris [Tue, 19 Feb 2013 03:29:28 +0000 (19:29 -0800)]
Merge from emacs-24; up to 2012-12-20T16:09:05Z!dmantipov@yandex.ru

11 years ago* progmodes/python.el (python-indent-context): Fix
Fabián Ezequiel Gallina [Tue, 19 Feb 2013 03:18:32 +0000 (00:18 -0300)]
* progmodes/python.el (python-indent-context): Fix
python-info-line-ends-backslash-p call.
(python-info-line-ends-backslash-p)
(python-info-beginning-of-backslash): Respect line-number
argument.
(python-info-current-line-comment-p): Fix behavior when not at
beginning-of-line.
(python-util-position): Remove function.
(python-util-goto-line): New function.

11 years agoRemove some defunct/no longer relevant MORE.STUFF links.
Glenn Morris [Tue, 19 Feb 2013 03:10:46 +0000 (19:10 -0800)]
Remove some defunct/no longer relevant MORE.STUFF links.
Move info-look stuff to info-look.el commentary.

11 years agoCleanup some of EIEIO's namespace.
Stefan Monnier [Tue, 19 Feb 2013 02:57:04 +0000 (21:57 -0500)]
Cleanup some of EIEIO's namespace.
* lisp/emacs-lisp/eieio.el (eieio--define-field-accessors): New macro.
Use it to define all the class-* and object-* field accessors (renamed
to eieio--class-* and eieio--object-*).  Update all uses.
(eieio--class-num-slots, eieio--object-num-slots): Rename from
class-num-slots and object-num-slots.
(eieio--check-type): New macro.
(eieio-defclass, eieio-oref, eieio-oref-default, same-class-p)
(object-of-class-p, child-of-class-p, object-slots, class-slot-initarg)
(eieio-oset, eieio-oset-default, object-assoc, object-assoc-list)
(object-assoc-list-safe): Use it.
(eieio-defclass): Tighten regexp.
(eieio--defmethod): Use `memq'.  Signal an error for unknown method kind.
Remove unreachable code.
(object-class-fast): Declare obsolete.
(eieio-class-name, eieio-object-name, eieio-object-set-name-string)
(eieio-object-class, eieio-object-class-name, eieio-class-parents)
(eieio-class-children, eieio-class-precedence-list, eieio-class-parent):
Rename from class-name, object-name, object-set-name-string,
object-class, object-class-name, class-parents, class-children,
class-precedence-list, class-parent; with obsolete alias.
(class-of, class-direct-superclasses, class-direct-subclasses):
Declare obsolete.
(eieio-defmethod): Use `memq'; remove unreachable code.
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
* lisp/emacs-lisp/eieio-opt.el (eieio-class-button, eieio-describe-generic)
(eieio-browse-tree, eieio-browse): Use eieio--check-type.

11 years ago* doc/lispref/text.texi (Change Hooks): Fix typo.
Glenn Morris [Tue, 19 Feb 2013 01:20:50 +0000 (17:20 -0800)]
* doc/lispref/text.texi (Change Hooks): Fix typo.

11 years ago* eshell/em-unix.el (eshell/su): Require tramp.
Michael Albinus [Mon, 18 Feb 2013 19:13:21 +0000 (20:13 +0100)]
* eshell/em-unix.el (eshell/su): Require tramp.
(eshell/sudo): Require tramp.  Remove now unnecessary check.

* net/tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind
`tramp-current-connection' in order to avoid an error when several
commands are invoked in a short time in eshell and friends.

11 years agoDocumented Eshell's insert output-redirection operator
Aidan Gauland [Mon, 18 Feb 2013 18:27:51 +0000 (07:27 +1300)]
Documented Eshell's insert output-redirection operator

11 years agoAvoid leaking handles on MS-Windows.
Eli Zaretskii [Mon, 18 Feb 2013 16:38:50 +0000 (18:38 +0200)]
Avoid leaking handles on MS-Windows.

 src/w32proc.c (new_child): Avoid leaking handles if the subprocess
 resources were not orderly released.

11 years agoFix a typo in a comment.
Eli Zaretskii [Mon, 18 Feb 2013 16:34:09 +0000 (18:34 +0200)]
Fix a typo in a comment.

11 years ago* lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument):
Michael Heerdegen [Mon, 18 Feb 2013 01:30:27 +0000 (20:30 -0500)]
* lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument):
Use font-lock-keyword-face for macros and special forms.

Fixes: debbugs:8345
11 years agoMerge from emacs-24; up to 2012-12-20T05:05:41Z!dmantipov@yandex.ru
Glenn Morris [Sun, 17 Feb 2013 19:01:46 +0000 (11:01 -0800)]
Merge from emacs-24; up to 2012-12-20T05:05:41Z!dmantipov@yandex.ru

11 years agoFix bug #13735 with network streams on MS-Windows.
Eli Zaretskii [Sun, 17 Feb 2013 18:17:34 +0000 (20:17 +0200)]
Fix bug #13735 with network streams on MS-Windows.
Revert changes to w32proc.c done since 2012-11-30T09:23:15Z!eliz@gnu.org.

Do NOT merge to trunk!

 src/w32proc.c (new_child): Remove the loop that attempted to salvage
 slots of dead processes.
 (new_child, delete_child, find_child_pid): Don't insist on
 procinfo.hProcess be NULL for a process slot to be considered
 inactive, or be non-NULL to be considered active.
 (reader_thread): Don't set the FILE_AT_EOF flag of a file
 descriptor if the corresponding child was deleted and its
 char_avail handle is NULL.
 (reap_subprocess): Don't reset the FILE_AT_EOF flag.
 (sys_select): Don't pass a NULL process handle to
 WaitForMultipleObjects.

Fixes: debbugs:13735 debbugs:13546
11 years agoDon't use font-lock-syntax-table in lisp modes.
Stefan Monnier [Sun, 17 Feb 2013 16:58:12 +0000 (11:58 -0500)]
Don't use font-lock-syntax-table in lisp modes.
* lisp/font-lock.el (lisp-font-lock-keywords-1, lisp-font-lock-keywords-2):
Don't assume all identifier chars have syntax word.
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
Remove bar-not-symbol.  Adjust callers.
(lisp-mode-variables): Don't set a font-lock-syntax-table.

11 years agoPrefer `message1' over `message'.
Stefan Monnier [Sun, 17 Feb 2013 16:49:27 +0000 (11:49 -0500)]
Prefer `message1' over `message'.
* src/xml.c (init_libxml2_functions):
* src/sound.c (sound_warning):
* src/sheap.c (report_sheap_usage):
* src/process.c (wait_reading_process_output):
* src/msdos.c (XMenuActivate):
* src/macros.c (Fstart_kbd_macro, Fend_kbd_macro):
* src/keyboard.c (top_level_1):
* src/editfns.c (Fmessage, Fmessage_box):
* src/callint.c (Fcall_interactively):
* src/fns.c (Fyes_or_no_p): Prefer `message1' over `message'.

11 years ago* net/rcirc.el (rcirc-keepalive): Fix invalid timer error.
Leo Liu [Sun, 17 Feb 2013 16:26:38 +0000 (00:26 +0800)]
* net/rcirc.el (rcirc-keepalive): Fix invalid timer error.

11 years agoFix bug #13723 with redrawing vertical border in GUI sessions.
Eli Zaretskii [Sun, 17 Feb 2013 16:22:11 +0000 (18:22 +0200)]
Fix bug #13723 with redrawing vertical border in GUI sessions.

 src/xdisp.c (x_draw_vertical_border): For a window that is neither
 the leftmost nor the rightmost, redraw both the left and the right
 vertical borders.

11 years agolisp/gnus/mml2015.el (mml2015-epg-find-usable-key): handle revoked user-id
Daiki Ueno [Sun, 17 Feb 2013 12:46:28 +0000 (12:46 +0000)]
lisp/gnus/mml2015.el (mml2015-epg-find-usable-key): handle revoked user-id

11 years agoMove scroll-bar-adjust-thumb-portion.
Jan Djärv [Sun, 17 Feb 2013 10:41:33 +0000 (11:41 +0100)]
Move scroll-bar-adjust-thumb-portion.

* xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ...

* frame.c (syms_of_frame): ... to here.

11 years ago* lisp/menu-bar.el (menu-bar-tools-menu): Fix case of EDE entry.
Glenn Morris [Sun, 17 Feb 2013 03:40:38 +0000 (19:40 -0800)]
* lisp/menu-bar.el (menu-bar-tools-menu): Fix case of EDE entry.

11 years agoAdd a very basic bisecting guide
Glenn Morris [Sun, 17 Feb 2013 01:40:14 +0000 (17:40 -0800)]
Add a very basic bisecting guide

11 years ago* lisp/image-mode.el (image-mode-map): Add image-dired menu entry.
Glenn Morris [Sun, 17 Feb 2013 00:50:41 +0000 (16:50 -0800)]
* lisp/image-mode.el (image-mode-map): Add image-dired menu entry.

11 years ago* lisp/image-dired.el (tumme): Make this alias obsolete.
Glenn Morris [Sun, 17 Feb 2013 00:45:53 +0000 (16:45 -0800)]
* lisp/image-dired.el (tumme): Make this alias obsolete.

11 years ago* lisp/gnus/shr.el (shr-put-image): Use image-multi-frame-p if available.
Glenn Morris [Sun, 17 Feb 2013 00:38:03 +0000 (16:38 -0800)]
* lisp/gnus/shr.el (shr-put-image): Use image-multi-frame-p if available.

11 years agoA few small TODO and CONTRIBUTE updates
Glenn Morris [Sat, 16 Feb 2013 20:24:50 +0000 (12:24 -0800)]
A few small TODO and CONTRIBUTE updates

11 years agoGeneralize "animated" images to "multi-frame" images
Glenn Morris [Sat, 16 Feb 2013 19:56:50 +0000 (11:56 -0800)]
Generalize "animated" images to "multi-frame" images

* lisp/image.el (image-animated-types): Remove.
(image-multi-frame-p): Rename from image-animated-p, and generalize.
(image-animated-p): Make obsolete alias.
(image-animate, image-nth-frame, image-animate-timeout):
Use image-multi-frame-p.
(image-animate-timeout): If no delay, use image-default-frame-delay.

* lisp/image-mode.el (image-mode, image-toggle-animation):
Use image-multi-frame-p.
(image-mode): Adjust startup message for a multi-frame image.

* lisp/gnus/shr.el (shr-put-image): Only animate images that specify a delay.
This is consistent with the old image-animated-p behavior.

* etc/NEWS: Add placeholder for this.

Fixes: debbugs:10739
11 years ago* lisp/image-mode.el (image-mode-map): Give it a menu.
Glenn Morris [Sat, 16 Feb 2013 19:20:21 +0000 (11:20 -0800)]
* lisp/image-mode.el (image-mode-map): Give it a menu.

11 years ago* net/tramp-cache.el (tramp-connection-properties): New customer option.
Michael Albinus [Sat, 16 Feb 2013 17:44:00 +0000 (18:44 +0100)]
* net/tramp-cache.el (tramp-connection-properties): New customer option.
(tramp-get-connection-property): Use it.

* net/tramp-compat.el (top): Require 'trampver.

* net/tramp-sh.el (tramp-remote-process-environment): Set
tramp-autoload cookie.

11 years ago* tramp.texi (Top, Configuration): Insert section `Android shell
Michael Albinus [Sat, 16 Feb 2013 17:38:37 +0000 (18:38 +0100)]
* tramp.texi (Top, Configuration): Insert section `Android shell
setup' in menu.
(Android shell setup): New section.
(Connection types, Default Method)
(Frequently Asked Questions): Mention "scp" instead of "scpc".
(External methods): Remove "scpc" and "rsyncc" entries.
(Frequently Asked Questions): Remove entry about ControlPersist.

11 years ago* lisp/info-look.el (info-lookup-select-mode): If major-mode has no
Kevin Ryde [Sat, 16 Feb 2013 17:20:43 +0000 (12:20 -0500)]
* lisp/info-look.el (info-lookup-select-mode): If major-mode has no
info-lookup-alist entry then search up derived-mode-parent.

Fixes: debbugs:8660
11 years agoRemove functions and macros unused on MS-Windows.
Eli Zaretskii [Sat, 16 Feb 2013 14:16:07 +0000 (16:16 +0200)]
Remove functions and macros unused on MS-Windows.

 src/w32.c (sys_chown): Remove unused function.

 nt/inc/ms-w32.h (chown, logb): Remove, unused.

11 years agoDon't use __STDC__ on MS-Windows unless necessary (Bug #9066).
Eli Zaretskii [Sat, 16 Feb 2013 13:59:37 +0000 (15:59 +0200)]
Don't use __STDC__ on MS-Windows unless necessary (Bug #9066).

 nt/inc/ms-w32.h (__STDC__): Fiddle with value only for MSVC.

 src/w32term.c <input_signal_count>: Declare 'volatile' unconditionally.

11 years agoDon't set h_errno on MS-Windows except in gethostbyname.
Eli Zaretskii [Sat, 16 Feb 2013 11:08:49 +0000 (13:08 +0200)]
Don't set h_errno on MS-Windows except in gethostbyname.

See http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00293.html
and the following discussion for the details.

 src/w32.c (set_errno): Reset h_errno and don't set it to any other
 value.  Set errno instead.
 (check_errno): Reset h_errno.
 (sys_socket, socket_to_fd, sys_bind, sys_connect)
 (sys_gethostname, sys_getservbyname, sys_getpeername)
 (sys_shutdown, sys_setsockopt, sys_listen, sys_getsockname)
 (sys_accept, sys_recvfrom, sys_sendto, fcntl, sys_read): Don't set
 h_errno.
 (sys_gethostbyname): Set h_errno only errors detected.

11 years ago(read-regexp): Add regexp for symbol at point to the defaults (Bug#13687).
Jambunathan K [Sat, 16 Feb 2013 09:26:42 +0000 (14:56 +0530)]
(read-regexp): Add regexp for symbol at point to the defaults (Bug#13687).

* lisp/replace.el (read-regexp): Tighten the regexp that matches tag.
When tag is retrieved with `find-tag-default', use regexp that
matches tag at point.  Also update docstring.

11 years agoFix bug #13725 with file notifications on MS-Windows.
Eli Zaretskii [Sat, 16 Feb 2013 09:13:40 +0000 (11:13 +0200)]
Fix bug #13725 with file notifications on MS-Windows.

 lisp/autorevert.el (auto-revert-notify-add-watch): With 'w32notify',
 add watch for the file, not its parent directory, since w32notify
 sets up the watch for the directory internally.

11 years agoAdd variables for default/minimum animated image frame delay
Glenn Morris [Sat, 16 Feb 2013 03:39:12 +0000 (19:39 -0800)]
Add variables for default/minimum animated image frame delay

* lisp/image.el (image-default-frame-delay): New variable.
(image-animated-p): Use image-default-frame-delay.
(image-minimum-frame-delay): New constant.
(image-animate-timeout): Use image-minimum-frame-delay.

11 years agoAdd commands for navigating multi-frame images
Glenn Morris [Sat, 16 Feb 2013 03:29:39 +0000 (19:29 -0800)]
Add commands for navigating multi-frame images

* lisp/image.el (image-nth-frame): New, split from image-animate-timeout.
(image-animate-timeout): Use image-nth-frame.

* lisp/image-mode.el (image-goto-frame, image-next-frame)
(image-previous-frame): New commands.
(image-mode-map): Add new frame commands.

* etc/NEWS: Mention this.

11 years ago* emacs-lisp/tabulated-list.el (tabulated-list-print-col):
Jonas Bernoulli [Sat, 16 Feb 2013 02:50:44 +0000 (18:50 -0800)]
* emacs-lisp/tabulated-list.el (tabulated-list-print-col):
If col-desc already has help-echo, use it.

Fixes: debbugs:13563
11 years ago* lisp/net/network-stream.el (network-stream-open-starttls):
Didier Verna [Sat, 16 Feb 2013 02:45:24 +0000 (18:45 -0800)]
* lisp/net/network-stream.el (network-stream-open-starttls):
Check that response to the starttls-command is non-nil.

Fixes: debbugs:13706
11 years agourl-http-wait-for-headers-change-function fix for bug#13598
Glenn Morris [Sat, 16 Feb 2013 02:05:32 +0000 (21:05 -0500)]
url-http-wait-for-headers-change-function fix for bug#13598

* lisp/url/url-http.el (url-http-wait-for-headers-change-function):
Avoid prematurely finding the end of headers when they arrive line-by-line.

11 years agoDisplay a mode-line frame counter for animated images
Glenn Morris [Sat, 16 Feb 2013 01:58:20 +0000 (20:58 -0500)]
Display a mode-line frame counter for animated images

* lisp/image.el (image-current-frame): New variable.
(image-animate-timeout): Set image-current-frame.

* lisp/image-mode.el (image-mode): For animated images,
display a frame counter via mode-line-process.

11 years ago* lisp/font-lock.el (lisp-font-lock-keywords-1): Add defvar-local.
Glenn Morris [Sat, 16 Feb 2013 01:55:31 +0000 (20:55 -0500)]
* lisp/font-lock.el (lisp-font-lock-keywords-1): Add defvar-local.

11 years ago* lisp/simple.el (eval-expression): Let `exp' set the mark.
Stefan Monnier [Fri, 15 Feb 2013 23:47:50 +0000 (18:47 -0500)]
* lisp/simple.el (eval-expression): Let `exp' set the mark.

Fixes: debbugs:13724
11 years agoemacs-lisp/easy-mmode.el (define-globalized-minor-mode): When a global
Alan Mackenzie [Fri, 15 Feb 2013 20:01:51 +0000 (20:01 +0000)]
emacs-lisp/easy-mmode.el (define-globalized-minor-mode): When a global
minor mode has been enabled, call the minor mode function for a new
buffer once only, after the major mode hook, whilst allowing that hook
explicitly to disable the minor mode.
(MODE-disable-in-buffer): new (generated) function.
(disable-MODE): new (generated) buffer local variable.

11 years agoido, iswitchb, icomplete: Use `C-.' and `C-,' for cycling (Bug#13708)
Jambunathan K [Fri, 15 Feb 2013 19:39:50 +0000 (01:09 +0530)]
ido, iswitchb, icomplete: Use `C-.' and `C-,' for cycling (Bug#13708)

* lisp/icomplete.el (icomplete-minibuffer-map): Unbind `C-s' and `C-r'.
Bind `C-.' and `C-,' to `icomplete-forward-completions' and
`icomplete-backward-completions'.

* lisp/ido.el (ido-init-completion-maps): Bind `C-.' and `C-,' to
`ido-next-match' and `ido-prev-match' resply.

* lisp/iswitchb.el (iswitchb-read-buffer): Bind `C-.' and `C-,' to
`iswitchb-next-match' and `iswitchb-prev-match' resply.

11 years agoRemove unneeded bits of commit 2013-02-15T09:41:31Z!eliz@gnu.org merged from release...
Eli Zaretskii [Fri, 15 Feb 2013 19:37:29 +0000 (21:37 +0200)]
Remove unneeded bits of commit 2013-02-15T09:41:31Z!eliz@gnu.org merged from release branch.

11 years agoFix bug#13708
Jambunathan K [Fri, 15 Feb 2013 19:19:29 +0000 (00:49 +0530)]
Fix bug#13708

* lisp/icomplete.el (icomplete-minibuffer-map): Unbind `C-s' and `C-r'.
Bind `C-.' and `C-,' to `icomplete-forward-completions' and
`icomplete-backward-completions'.

* lisp/ido.el (ido-init-completion-maps): Bind `C-.' and `C-,' to
`ido-next-match' and `ido-prev-match' resply.

* lisp/iswitchb.el (iswitchb-read-buffer): Bind `C-.' and `C-,' to
`iswitchb-next-match' and `iswitchb-prev-match' resply.

11 years ago* process.c (h_errno) [!HAVE_H_ERRNO]: Remove unused decl.
Paul Eggert [Fri, 15 Feb 2013 19:08:11 +0000 (11:08 -0800)]
* process.c (h_errno) [!HAVE_H_ERRNO]: Remove unused decl.

11 years agoFix bug #13720 with auto-save-timeout less than 4 seconds.
Eli Zaretskii [Fri, 15 Feb 2013 18:52:16 +0000 (20:52 +0200)]
Fix bug #13720 with auto-save-timeout less than 4 seconds.

 src/keyboard.c (read_char): Fix calculation of auto-save time out
 when auto-save-timeout is less than 4.

11 years agoMerge from emacs-24; up to 2012-12-19T19:51:40Z!monnier@iro.umontreal.ca
Glenn Morris [Fri, 15 Feb 2013 17:31:12 +0000 (09:31 -0800)]
Merge from emacs-24; up to 2012-12-19T19:51:40Z!monnier@iro.umontreal.ca

11 years agoFix commit 2013-02-15T09:41:31Z!eliz@gnu.org for bug #13546.
Eli Zaretskii [Fri, 15 Feb 2013 13:14:26 +0000 (15:14 +0200)]
Fix commit 2013-02-15T09:41:31Z!eliz@gnu.org for bug #13546.

11 years ago* composite.c (fill_gstring_header): Remove useless prototype.
Dmitry Antipov [Fri, 15 Feb 2013 12:26:42 +0000 (16:26 +0400)]
* composite.c (fill_gstring_header): Remove useless prototype.
Break long line.
* lisp.h (message_dolog, compile_pattern): Adjust prototype.
* print.c (PRINTDECLARE, print_object):
* search.c (compile_pattern, fast_looking_at, search_buffer):
(simple_search, boyer_moore, Freplace_match):
* xdisp.c (c_string_pos, number_of_chars, message_dolog):
(get_overlay_arrow_glyph_row, display_mode_element):
(decode_mode_spec_coding, message3):
* xfaces.c (face_at_string_position): Use bool for booleans.
Adjust comments.

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 15 Feb 2013 12:17:45 +0000 (07:17 -0500)]
Auto-commit of generated files.

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 15 Feb 2013 11:17:38 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoAllow deleted processes to be reaped by SIGCHLD handler on MS-Windows.
Eli Zaretskii [Fri, 15 Feb 2013 09:41:31 +0000 (11:41 +0200)]
Allow deleted processes to be reaped by SIGCHLD handler on MS-Windows.

 src/w32proc.c (new_child): Free up to 2 slots of dead processes at a
 time.  Improve diagnostics in DebPrint.
 (reader_thread): If cp->char_avail is NULL, set the FILE_AT_EOF
 flag, so that sys_select could have a chance of noticing that this
 process is dead, and call a SIGCHLD handler for it.  Improve
 diagnostics in DebPrint.
 (reap_subprocess): Reset the FILE_AT_EOF flag set by
 reader_thread.
 (sys_select): Watch a process whose procinfo.hProcess is non-NULL
 even if its char_avail is NULL.  Allows to reap subprocesses that
 were forcibly deleted by delete-process.  (Bug#13546)

11 years agoImprove error reporting as part of solving bug #13546 on MS-Windows.
Eli Zaretskii [Fri, 15 Feb 2013 09:01:13 +0000 (11:01 +0200)]
Improve error reporting as part of solving bug #13546 on MS-Windows.

 src/w32.c (sys_socket, sys_bind, sys_connect, sys_gethostname)
 (sys_gethostbyname, sys_getservbyname, sys_getpeername)
 (sys_shutdown, sys_setsockopt, sys_listen, sys_getsockname)
 (sys_accept, sys_recvfrom, sys_sendto, fcntl): In case of failure,
 make sure errno is set to an appropriate value.  (Bug#13546)
 (socket_to_fd): Add assertion against indexing fd_info[] with a
 value that is out of bounds.
 (sys_accept): If fd is negative, do not set up the child_process
 structure for reading.

11 years agoMerge from emacs-24; up to 2012-12-19T13:01:16Z!michael.albinus@gmx.de
Paul Eggert [Fri, 15 Feb 2013 06:35:54 +0000 (22:35 -0800)]
Merge from emacs-24; up to 2012-12-19T13:01:16Z!michael.albinus@gmx.de

11 years ago* lisp/play/fortune.el (fortune-compile): Simplify and fix previous change.
Glenn Morris [Fri, 15 Feb 2013 01:30:11 +0000 (20:30 -0500)]
* lisp/play/fortune.el (fortune-compile): Simplify and fix previous change.

Since file-newer-than-p returns non-nil if FILE2 does not exist,
the actual fix for bug#5338 is just a one-liner. But there is no test
case or explanation of what the issue actually is in bug#5338, so one
has to wonder if the initial (file-exists-p fortune-dat) test was
there for a reason...

11 years agoBackport GCPRO fix from trunk.
Paul Eggert [Thu, 14 Feb 2013 22:08:38 +0000 (14:08 -0800)]
Backport GCPRO fix from trunk.

The bug was reported for AIX before today's changes.
I reproduced the problem on Fedora 17 x86-64 when setting
GC_MARK_STACK by hand, and I presume it occurs with default
configurations on HP-UX and Unixware.
Trunk fix on 2013-01-14 by Dmitry Antipov <dmantipov@yandex.ru>:
Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
* eval.c (eval_sub): Protect `form' from being GCed before its
car and cdr becomes protected with the backtrace entry.

Fixes: debbugs:13650
11 years agoFix AIX port.
Paul Eggert [Thu, 14 Feb 2013 20:05:10 +0000 (12:05 -0800)]
Fix AIX port.

* configure.ac (DATA_START, DATA_SEG_BITS): Set to 0x20000000 on AIX.
(GC_MARK_STACK): Do not set to GC_USE_GCPROS_AS_BEFORE, as that
runs afoul of some other bug in Emacs, and the default value
GC_MAKE_GCPROS_NOOPS has been tested and works.
* src/lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]:
Fix bug introduced in 2012-07-27 change.  DATA_SEG_BITS, if set,
was #undeffed earlier, so it cannot be used as a macro here.
Use the constant and not the macro.  Tested on AIX.
* src/unexaix.c: Revert 2013-02-11 and 2013-02-12 changes to this
file.  They're almost surely OK but we're just before a release so
we should avoid changes unless they're clearly needed.  Instead,
make the following minor change:
(ADDR_CORRECT): New macro.

Fixes: debbugs:13650
11 years ago* gtkutil.c (tb_size_cb): New function.
Jan Djärv [Thu, 14 Feb 2013 19:01:12 +0000 (20:01 +0100)]
* gtkutil.c (tb_size_cb): New function.
(xg_create_tool_bar): Connect size-allocate to tb_size_cb.

Fixes: debbugs:13512
11 years ago* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix re setf.
Glenn Morris [Thu, 14 Feb 2013 17:16:47 +0000 (09:16 -0800)]
* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix re setf.

11 years ago* lisp/net/goto-addr.el (goto-address-fontify): Add start and end args.
Stefan Monnier [Thu, 14 Feb 2013 15:53:46 +0000 (10:53 -0500)]
* lisp/net/goto-addr.el (goto-address-fontify): Add start and end args.
(goto-address-fontify-region): Use them instead of narrowing, so
syntax-ppss has access to the whole buffer.

11 years ago* src/keyboard.c (active_maps): Fcurrent_active_maps expects a position, not
Stefan Monnier [Thu, 14 Feb 2013 14:40:54 +0000 (09:40 -0500)]
* src/keyboard.c (active_maps): Fcurrent_active_maps expects a position, not
an event.

11 years ago* net/tramp.el (tramp-debug-message): Add
Michael Albinus [Thu, 14 Feb 2013 13:32:04 +0000 (14:32 +0100)]
* net/tramp.el (tramp-debug-message): Add
`tramp-condition-case-unless-debug'.
(tramp-debug-on-error): New defvar.
(tramp-condition-case-unless-debug): New defun.
(tramp-file-name-handler): Use it.

11 years ago* NEWS: Tramp methods "scpc" and "rsyncc" are discontinued.
Michael Albinus [Thu, 14 Feb 2013 12:36:44 +0000 (13:36 +0100)]
* NEWS: Tramp methods "scpc" and "rsyncc" are discontinued.

11 years ago* lisp/info.el (Info-isearch-filter): Treat non-nil values of
Juri Linkov [Thu, 14 Feb 2013 09:15:55 +0000 (11:15 +0200)]
* lisp/info.el (Info-isearch-filter): Treat non-nil values of
`search-invisible' including its default value `open'
like the value `t' to match hidden text.

Fixes: debbugs:13402
11 years ago* help-fns.el (find-lisp-object-file-name): Give special treatment
Glenn Morris [Thu, 14 Feb 2013 08:05:26 +0000 (00:05 -0800)]
* help-fns.el (find-lisp-object-file-name): Give special treatment
to all ~/.foo.elc files, not just ~/.emacs.

Fixes: debbugs:9007
11 years ago* net/quickurl.el (quickurl-save-urls): Ensure quickurl-urls is not truncated
David Biesack [Thu, 14 Feb 2013 07:50:57 +0000 (23:50 -0800)]
* net/quickurl.el (quickurl-save-urls): Ensure quickurl-urls is not truncated
on printing.

Fixes: debbugs:9276
11 years ago(ruby-add-log-current-method): Improve performance at the expense
Dmitry Gutov [Thu, 14 Feb 2013 05:45:33 +0000 (09:45 +0400)]
(ruby-add-log-current-method): Improve performance at the expense
of accuracy.  `ruby-block-contains-point' is relatively slow, so
only use it for method and singleton class blocks.

* test/automated/ruby-mode-tests.el
(ruby-add-log-current-method-after-inner-class): Lower
expectations: move point inside a method, initially.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-parse-partial): Don't increase
Dmitry Gutov [Thu, 14 Feb 2013 03:33:55 +0000 (07:33 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-parse-partial): Don't increase
depth for unfinished percent literal.  Not using it in the caller.
(ruby-move-to-block): Jump over multiline literals of all types,
ignoring code-looking contents inside them.

* test/automated/ruby-mode-tests.el
(ruby-move-to-block-skips-percent-literal): Add depth-affecting
bits inside the examples.
(ruby-move-to-block-skips-heredoc): New test.

11 years ago* lispref/modes.texi (Basic Major Modes): 'z' no longer bound in special-mode.
Glenn Morris [Thu, 14 Feb 2013 01:24:03 +0000 (20:24 -0500)]
* lispref/modes.texi (Basic Major Modes): 'z' no longer bound in special-mode.

11 years agognus-util.el (gnus-define-keys): Convert [?\S-\ ] to [(shift space)] for XEmacs
Katsumi Yamaoka [Thu, 14 Feb 2013 00:44:38 +0000 (00:44 +0000)]
gnus-util.el (gnus-define-keys): Convert [?\S-\ ] to [(shift space)] for XEmacs

11 years ago* progmodes/python.el: Explain how to restore "cc-mode"-like
Fabián Ezequiel Gallina [Thu, 14 Feb 2013 00:42:11 +0000 (21:42 -0300)]
* progmodes/python.el: Explain how to restore "cc-mode"-like
forward-sexp movement in header documentation.
(python-nav--forward-sexp): Behave like emacs-lisp-mode in
comments and strings (GH bug 114).

Fixes: debbugs:13642
11 years agoPush ChangeLog entry for previous commit.
Fabián Ezequiel Gallina [Wed, 13 Feb 2013 23:09:12 +0000 (20:09 -0300)]
Push ChangeLog entry for previous commit.

11 years ago* progmodes/python.el (python-info-current-defun): Fix current
Fabián Ezequiel Gallina [Wed, 13 Feb 2013 23:07:59 +0000 (20:07 -0300)]
* progmodes/python.el (python-info-current-defun): Fix current
defun detection.

Fixes: debbugs:13618
11 years ago* src/keyboard.c (syms_of_keyboard): Further tweaks of docstring.
Stefan Monnier [Wed, 13 Feb 2013 19:43:06 +0000 (14:43 -0500)]
* src/keyboard.c (syms_of_keyboard): Further tweaks of docstring.

11 years agoMore robust creation of a subprocess, attempt to solve bug #13546.
Eli Zaretskii [Wed, 13 Feb 2013 17:04:30 +0000 (19:04 +0200)]
More robust creation of a subprocess, attempt to solve bug #13546.

 src/w32proc.c (new_child): If no vacant slots are found in
 child_procs[], make another pass looking for slots whose process
 has exited or died.

11 years agoCleanup related to bug #13546 with subprocesses on MS-Windows.
Eli Zaretskii [Wed, 13 Feb 2013 17:00:26 +0000 (19:00 +0200)]
Cleanup related to bug #13546 with subprocesses on MS-Windows.

 src/w32.c (sys_pipe): When failing due to file descriptors above
 MAXDESC, set errno to EMFILE.
 (_sys_read_ahead): Update cp->status when failing to read serial
 communications input, so that the status doesn't stay at
 STATUS_READ_IN_PROGRESS.

11 years agoUse ControlMaster where applicable. (Bug#13677)
Michael Albinus [Wed, 13 Feb 2013 16:23:15 +0000 (17:23 +0100)]
Use ControlMaster where applicable.  (Bug#13677)

* net/tramp.el (tramp-ssh-controlmaster-template): New defvar,
replacing `tramp-detect-ssh-controlmaster'.
(tramp-default-method): Use it.

* net/tramp-sh.el (tramp-methods) [scp, scp1, scp2, scpx, sftp]:
[rsync, ssh, ssh1, ssh2, sshx]: Add ControlPath and ControlMaster
arguments.
[scpc, rsyncc]: Remove methods.
(top): Remove completion functions for "scpc", "rsyncc", "ssh1_old"
and "ssh2_old".
(tramp-do-copy-or-rename-file-out-of-band):  Change trace level.
(tramp-maybe-open-connection): Reuse tmpfile for ControlPath.

11 years ago* lisp/emacs-lisp/package.el (package--initialized): Move before first use.
Stefan Monnier [Wed, 13 Feb 2013 16:02:35 +0000 (11:02 -0500)]
* lisp/emacs-lisp/package.el (package--initialized): Move before first use.

11 years ago* lisp/icomplete.el (icomplete-hide-common-prefix): New user option.
Jambunathan K [Wed, 13 Feb 2013 15:13:22 +0000 (10:13 -0500)]
* lisp/icomplete.el (icomplete-hide-common-prefix):  New user option.
(icomplete-first-match): New face.
(icomplete-completions): Correct handling of "complete but not unique".

Fixes: debbugs:12638
11 years ago* lisp/descr-text.el (describe-char): Display the script.
YE Qianchuan [Wed, 13 Feb 2013 14:54:59 +0000 (09:54 -0500)]
* lisp/descr-text.el (describe-char): Display the script.

Fixes: debbugs:13698
11 years ago* lisp/tmm.el: Use lexical-binding and current-active-maps.
Stefan Monnier [Wed, 13 Feb 2013 13:40:00 +0000 (08:40 -0500)]
* lisp/tmm.el: Use lexical-binding and current-active-maps.
(tmm-menubar): Use map-keymap and pcase.
(tmm--completion-table): New function.
(tmm-prompt): Use it to fix the menu order.
(tmm-get-keybind): Use current-active-maps.

11 years agoAdd dired-hide-details-mode. (Bug#6799)
Christopher Schmidt [Wed, 13 Feb 2013 09:42:31 +0000 (10:42 +0100)]
Add dired-hide-details-mode.  (Bug#6799)

* locate.el (locate-mode): Set parent mode property to dired-mode.

* find-dired.el (find-dired): Call dired-insert-set-properties on
initial information line.  Set process mark on end of buffer.
(find-dired-sentinel):
Call dired-insert-set-properties on summary.

* dired.el (dired-hide-details-hide-symlink-targets)
(dired-hide-details-hide-information-lines): New options.
(dired-insert-directory):
Set properties after final treatment of output.
(dired-insert-set-properties):
Set dired-hide-details-* properties.
(dired-mode-map): Bind dired-hide-details-mode.
(dired-mode): Set buffer-invisibility-spec to a list.
(dired-next-line): Skip hidden lines.
(dired-previous-line): Use dired-next-line.
(dired-hide-details-mode): New minor mode.
(dired-hide-details-update-invisibility-spec): New function.

11 years agoMake yow.el obsolete
Glenn Morris [Wed, 13 Feb 2013 08:50:44 +0000 (00:50 -0800)]
Make yow.el obsolete

* lisp/play/yow.el: Move to obsolete/.

* doc/emacs/ack.texi (Acknowledgments): Don't mention yow any more.

* doc/misc/message.texi (News Headers): Don't mention yow any more.

* etc/NEWS: Mention this.

Fixes: debbugs:9384
11 years ago* vc/ediff-util.el (ediff-recenter): Use `select-frame-set-input-focus'
Juri Linkov [Wed, 13 Feb 2013 08:41:56 +0000 (10:41 +0200)]
* vc/ediff-util.el (ediff-recenter): Use `select-frame-set-input-focus'
to select `ediff-control-frame' and set input focus correctly on Xfce.

Fixes: debbugs:12218
11 years agoAdd more keymaps where S-SPC scrolls in the opposite direction to SPC.
Juri Linkov [Wed, 13 Feb 2013 08:28:47 +0000 (10:28 +0200)]
Add more keymaps where S-SPC scrolls in the opposite direction to SPC.

* lisp/image-mode.el (image-mode-map):
* lisp/doc-view.el (doc-view-mode-map):
* lisp/vc/ediff-util.el (ediff-setup-keymap):
Make S-SPC scroll in the opposite sense to SPC.

* lisp/gnus/gnus-art.el (gnus-article-mode-map):
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-article-map):
Make S-SPC scroll in the opposite sense to SPC.  (Bug#2145)

11 years ago* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
Dmitry Gutov [Wed, 13 Feb 2013 08:15:05 +0000 (12:15 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): Improve
performance.  Instead of recalculating indentation fully for each
line, sum up indentation depth based only on visited lines.
(ruby-parse-partial): Increase the depth after "do" even when END
is right after it.
(ruby-parse-partial): When END is in the middle of a percent
literal, increase the depth if the delimiter chars belong to the
paren syntax class.

* test/automated/ruby-mode-tests.el
(ruby-move-to-block-skips-percent-literal): New test.

11 years agofortune-compile tiny change
Kirill A. Korinskiy [Wed, 13 Feb 2013 08:10:41 +0000 (00:10 -0800)]
fortune-compile tiny change

* lisp/play/fortune.el (fortune-compile):
Also make the compiled file if it does not exist at all, not just if it is old.

Fixes: debbugs:5338
11 years ago* xml.el (xml-parse-string): Fix typo in handling of bad character references.
Chong Yidong [Wed, 13 Feb 2013 07:24:11 +0000 (15:24 +0800)]
* xml.el (xml-parse-string): Fix typo in handling of bad character references.

11 years ago* font.c (font_range): Add pos_byte argument. Adjust comment
Dmitry Antipov [Wed, 13 Feb 2013 07:14:38 +0000 (11:14 +0400)]
* font.c (font_range): Add pos_byte argument.  Adjust comment
and break long line.
* font.h (font_range): Adjust prototype.
* composite.c (autocmp_chars): Pass byte position to font_range.
Break long line.  Remove useless prototype and format comment.

11 years ago* emacs-lisp/package.el (package-menu-execute): Doc fix.
Glenn Morris [Wed, 13 Feb 2013 05:00:45 +0000 (21:00 -0800)]
* emacs-lisp/package.el (package-menu-execute): Doc fix.

11 years ago* package.el (package-menu-execute): Add optional noquery argument (tiny change)
Yves Baumes [Wed, 13 Feb 2013 04:59:06 +0000 (20:59 -0800)]
* package.el (package-menu-execute): Add optional noquery argument (tiny change)

Fixes: debbugs:13625
11 years agoMerge from emacs-24; up to 2012-12-17T11:17:34Z!rgm@gnu.org
Glenn Morris [Wed, 13 Feb 2013 04:31:09 +0000 (20:31 -0800)]
Merge from emacs-24; up to 2012-12-17T11:17:34Z!rgm@gnu.org

11 years ago* src/keyboard.c (input-decode-map, key-translation-map): Doc fixes.
Glenn Morris [Wed, 13 Feb 2013 04:26:43 +0000 (20:26 -0800)]
* src/keyboard.c (input-decode-map, key-translation-map): Doc fixes.

11 years ago* lisp/erc/erc-match.el (erc-match-message): Fix last commit.
Aidan Gauland [Wed, 13 Feb 2013 04:02:11 +0000 (23:02 -0500)]
* lisp/erc/erc-match.el (erc-match-message): Fix last commit.

11 years ago* doc/lispref/objects.texi (Char-Table Type): Add footnote about #^^.
Glenn Morris [Wed, 13 Feb 2013 02:25:02 +0000 (21:25 -0500)]
* doc/lispref/objects.texi (Char-Table Type): Add footnote about #^^.

11 years ago* doc/lispref/modes.texi (Minor Mode Conventions): Fix typo.
Glenn Morris [Wed, 13 Feb 2013 02:20:52 +0000 (21:20 -0500)]
* doc/lispref/modes.texi (Minor Mode Conventions): Fix typo.

11 years agoMinor getenv-related fixes.
Paul Eggert [Wed, 13 Feb 2013 02:10:36 +0000 (18:10 -0800)]
Minor getenv-related fixes.

* callproc.c (Fcall_process_region) [!DOS_NT]:
Avoid unnecessary duplicate call to getenv.
* callproc.c (init_callproc):
* dispnew.c (init_display):
* sysdep.c (sys_subshell):
Omit unnecessary cast of getenv or egetenv.

11 years agolisp/progmodes/js.el: Silence byte-compiler warning.
Juanma Barranquero [Wed, 13 Feb 2013 00:53:07 +0000 (01:53 +0100)]
lisp/progmodes/js.el: Silence byte-compiler warning.