Stefan Monnier [Sun, 16 Aug 2009 15:48:15 +0000 (15:48 +0000)]
(sql-product-alist): Add :name tag to entries.
(sql-product): Use it.
(sql-mode-menu): Auto-generate the menu based on sql-product-alist.
(sql-set-product): Add completion.
(sql-highlight-oracle-keywords, sql-highlight-postgres-keywords)
(sql-highlight-linter-keywords, sql-highlight-ms-keywords)
(sql-highlight-ansi-keywords, sql-highlight-sybase-keywords)
(sql-highlight-informix-keywords, sql-highlight-interbase-keywords)
(sql-highlight-ingres-keywords, sql-highlight-solid-keywords)
(sql-highlight-mysql-keywords, sql-highlight-sqlite-keywords)
(sql-highlight-db2-keywords): Remove.
(sql-find-sqli-buffer, sql-set-sqli-buffer-generally)
(sql-highlight-product): Use derived-mode-p.
(sql-set-sqli-buffer): Use with-current-buffer.
(sql-connect-informix, sql-connect-ingres, sql-connect-oracle): Simplify.
Michael Albinus [Sun, 16 Aug 2009 12:23:23 +0000 (12:23 +0000)]
* dbusbind.c (xd_initialize): Add connection file descriptor to
input_wait_mask, in order to let select() detect, whether a new
message has been arrived.
Chong Yidong [Sun, 16 Aug 2009 00:31:28 +0000 (00:31 +0000)]
* files.el (get-free-disk-space): Change fallback default
directory to /. Expand DIR argument before switching to fallback.
Suggested by Kevin Ryde (Bug#2631, Bug#3911).
Michael Kifer [Sat, 15 Aug 2009 05:57:08 +0000 (05:57 +0000)]
2009-08-15 Michael Kifer <kifer@cs.stonybrook.edu>
* viper-cmd.el (viper-insert-isearch-string): new function.
(viper-if-string): redefine C-s in the minibuffer to insert the last
incremental search string.
* ediff-init.el (ediff-coding-system): use escape-quoted in case of
XEmacs.
* ediff-merg.el (ediff-merge-region-is-non-clash-to-skip,
ediff-merge-region-is-non-clash,
ediff-skip-merge-region-if-changed-from-default-p): use defun.
Also check if the job is really a merge job.
Chong Yidong [Sat, 15 Aug 2009 01:04:14 +0000 (01:04 +0000)]
* progmodes/js.el: Edit docstrings throughout to follow Emacs
conventions.
(js-insert-and-indent): Function deleted.
(js-mode-map): Don't bind keys to js-insert-and-indent.
(js-beginning-of-defun): Rename from js--beginning-of-defun.
(js-end-of-defun): Rename from js--end-of-defun.
(js-auto-indent-flag): Variable deleted.
Chong Yidong [Thu, 13 Aug 2009 15:59:34 +0000 (15:59 +0000)]
* faces.el (help-argument-name): Define it here instead of
help-fns.el, because in daemon mode help-fns.el may be loaded when
faces are still uninitialized (Bug#1078).
* help-fns.el (help-argument-name): Move defface to faces.el.
Nick Roberts [Thu, 13 Aug 2009 13:22:55 +0000 (13:22 +0000)]
(create_pty): New function.
(Fstart_process): Use it to allow Emacs to just associate a pty
with the buffer. See associated change in gdb-mi.el.
(list_processes_1): Deal with no program name.
(start_process_unwind): Use pid == -2 to mean no process.
* mail/rmail.el (rmail-set-message-counters):
Call rmail-set-message-counters-counter just once.
It returns # msgs after point.
(rmail-set-message-counters-counter):
Arg is now SPOT-TO-FIND. Return # messages after that one.
* mail/rmail.el (rmail-forget-messages):
Ignore nil elt in rmail-message-vector. Use dotimes.
Juri Linkov [Wed, 12 Aug 2009 20:56:25 +0000 (20:56 +0000)]
(read-regexp): Return empty string when `default-value' is nil.
(keep-lines-read-args): Don't use empty string as the
default value for `read-regexp'. (Bug#2495)
Stefan Monnier [Wed, 12 Aug 2009 05:07:48 +0000 (05:07 +0000)]
* cmds.c (nonundocount): New global variable.
(keys_of_cmds): Initialize it.
(Fself_insert_command): Use it to combine upto 20 sequential chars
into a single undo entry, just like the Qself_insert_command code in
keyboard.c does.
Call frame_make_pointer_invisible, also like the Qself_insert_command
code in keyboard.c does.
* keyboard.c (command_loop_1): Use the new global nonundocount rather
than its own local replacement for it.
Dmitry Dzhus [Tue, 11 Aug 2009 23:26:04 +0000 (23:26 +0000)]
(gdb): Send -target-detach when buffer is killed (#3794).
(gdb-starting): Moved -data-list-register-names...
(gdb-stopped): ...here so it's sent when first thread stops.
(gdb-registers-handler-custom): Do nothing if register names are
unknown yet.
Dmitry Dzhus [Tue, 11 Aug 2009 13:53:10 +0000 (13:53 +0000)]
(gdb-line-posns): New helper which helps not to use `goto-line'.
(gdb-place-breakpoints, gdb-get-location): Rewritten without
`goto-line'.
(gdb-invalidate-disassembly): Do not refresh upon receiving
'update signal. Instead, update all disassembly buffers only after
threads list.
Stefan Monnier [Mon, 10 Aug 2009 21:42:33 +0000 (21:42 +0000)]
(mule-keymap, mule-menu-keymap)
(describe-language-environment-map, setup-language-environment-map)
(set-coding-system-map): Move initialization into declaration.
(set-language-info-alist): Last arg to define-key-after can be skipped.
Chong Yidong [Sun, 9 Aug 2009 02:43:50 +0000 (02:43 +0000)]
* progmodes/hideshow.el (hs-special-modes-alist): Don't use
hs-c-like-adjust-block-beginning.
(hs-hide-block-at-point): Stop hiding at the beginning of
hs-block-end-regexp (Bug#700).
Dmitry Dzhus [Sat, 8 Aug 2009 22:30:26 +0000 (22:30 +0000)]
(gdb-control-all-threads)
(gdb-control-current-thread): Interactive setters for
`gdb-gud-control-all-threads' to use in menu.
(gdb-show-run-p): Show «Go» when process is not active.
(gud-tool-bar-map): Add non-stop/A,T indicator. Uses
gud/thread.xpm and gud/all.xpm.
Chong Yidong [Sat, 8 Aug 2009 18:26:36 +0000 (18:26 +0000)]
* net/net-utils.el (net-utils-font-lock-keywords): New var.
(nslookup-font-lock-keywords): Make it a variable.
(net-utils-mode): New mode for viewing diagnostic network output.
(net-utils-remove-ctrl-m-filter): Set inhibit-read-only.
(net-utils-run-simple): New function.
(ifconfig, iwconfig, netstat, arp, route): Use it.
Dmitry Dzhus [Sat, 8 Aug 2009 18:24:32 +0000 (18:24 +0000)]
(gdb-breakpoints-mode-map): Don't assume threads buffer is present.
(gdb-threads-mode-map): Don't assume breakpoints buffer is present.
(gdb-disassembly-handler-custom, gdb-stack-list-frames-custom)
(gdb-locals-handler-custom, gdb-registers-handler-custom): Thread
info in mode name.
(gdb-registers-mode-map): TAB to switch to locals.
Dmitry Dzhus [Sat, 8 Aug 2009 13:42:03 +0000 (13:42 +0000)]
(gdb-read-memory-custom)
(gdb-memory-set-address, def-gdb-set-positive-number)
(def-gdb-memory-format, def-gdb-memory-unit): Update memory buffer
after changing settings.
(gdb-invalidate-disassembly): Update when first shown.
(gdb-edit-locals-value): Fixed.
(gdb-registers-handler-custom): Print registers in right order and
allow changing register values (only for current thread yet).