1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00
Commit Graph

4196 Commits

Author SHA1 Message Date
Chong Yidong
1abbe4e531 * progmodes/sh-script.el (sh-maybe-here-document): Avoid inserting
another heredoc if the user adds another < (Bug#3226).
2009-08-16 14:04:25 +00:00
Miles Bader
4989aff370 Add arch tagline 2009-08-15 01:13:18 +00:00
Chong Yidong
2e330adc6c * 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.
2009-08-15 01:04:14 +00:00
Chong Yidong
17b5d0f707 * progmodes/js2-mode.el: File removed.
* Makefile.in (ELCFILES): Add js.el, and remove js2-mode.el.

* speedbar.el (speedbar-supported-extension-expressions): Add .js.

* progmodes/hideshow.el (hs-special-modes-alist): Add js-mode
entry.

* progmodes/js.el: New file.
2009-08-14 23:02:38 +00:00
Nick Roberts
79a1c8a970 (gdb-inferior-io-mode): Use start-process to
create buffer with a pty but no process so that GDB can make the
inferior the controlling process.
2009-08-13 13:22:11 +00:00
Richard M. Stallman
1fc01b083c * progmodes/compile.el (compilation-goto-locus): Use next-error-move-function. 2009-08-13 00:58:54 +00:00
Juri Linkov
770f36f8bd (lgrep): Ensure that `default-directory' is always non-nil. (Bug#4052) 2009-08-12 20:54:46 +00:00
Dmitry Dzhus
cf6e27cf47 (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.
2009-08-11 23:26:04 +00:00
Dmitry Dzhus
27a9fd5a22 (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.
2009-08-11 13:53:10 +00:00
Dmitry Dzhus
c8a44c4e5c *** empty log message *** 2009-08-11 10:48:56 +00:00
Miles Bader
83326559df Remove "-face" suffix from face names in j2-mode.el
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1620
2009-08-10 02:52:57 +00:00
Chong Yidong
6807d8ca51 Update comment (from Kevin Ryde). 2009-08-10 02:44:58 +00:00
Chong Yidong
1c292fc7de * 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).
2009-08-09 02:43:50 +00:00
Dmitry Dzhus
2db0ae07bc (gdb-gud-context-call): Does not need to be a macro.
(gdb-registers-handler-custom): Do not fail when register names
are unavailable.
2009-08-09 00:17:01 +00:00
Dmitry Dzhus
fe4740a674 (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.
2009-08-08 22:30:26 +00:00
Dmitry Dzhus
9cbac26bbb (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.
2009-08-08 18:24:32 +00:00
Dmitry Dzhus
7c4654ad3b (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).
2009-08-08 13:42:03 +00:00
Dmitry Dzhus
7b217360fb (gdb-var-create-regexp): Removed.
(gdb-var-create-handler): Rewritten using JSON parser.
(gdb-propertize-header): Moved earlier.
(gdb-set-header): Removed to avoid duplication.
(gdb-thread-list-handler-custom, gdb-invalidate-disassembly):
Refresh disassembly buffers only after threads list have been
update.
(gdb-threads-header, gdb-registers-header): Per-buffer header line
variables.
2009-08-06 18:05:32 +00:00
Dmitry Dzhus
ad07fb8d75 * progmodes/gdb-mi.el (gdb-frame-number): Initialize with nil.
(gdb-overlay-arrow-position): Renamed to
`gdb-disassembly-position'.
(gdb-overlay-arrow-position, gdb-thread-position)
(gdb-disassembly-position): Declare variables.
(gdb-wait-for-pending): Function now.
(gdb-add-subscriber, gdb-delete-subscriber, gdb-get-subscribers)
(gdb-emit-signal, gdb-buf-publisher): Declare before first use so
compilation goes smoothly.
(gdb, gdb-non-stop, gdb-buffers): New customization groups.
(gdb-non-stop-setting): New customization setting which replaces
`gdb-non-stop' so changing it doesn't break active GDB session.
(gdb-stack-buffer-locations, gdb-stack-buffer-addresses)
(gdb-thread-buffer-verbose-names, gdb-thread-buffer-arguments)
(gdb-thread-buffer-locations, gdb-thread-buffer-addresses)
(gdb-show-threads-by-default): New customization options.
(gdb-buffer-type, gdb-buffer-shows-main-thread-p): New helper
routines.
(gdb-get-buffer-create): Send buffers update signal when they are
created.
(gdb-invalidate-locals, gdb-invalidate-registers)
(gdb-invalidate-breakpoints)
(gdb-invalidate-threads, gdb-invalidate-disassembly)
(gdb-invalidate-memory): Accept update signal.
(gdb-current-context-command): Use --frame option.
(gdb-update-gud-running, gdb-running, gdb-setq-thread-number):
Implement `gdb-frame-number' selection logic.
(gdb-show-run-p, gdb-show-stop-p): Helper functions which decide
whether to show GUD toolbar buttons.
(gdb-thread-exited): Unselect current thread when it exits.
(gdb-stopped): Typo fixed (now really runs `gdb-stopped-hooks').
(gdb-mark-line): Routine which sets overlay arrow or inverses
video on fringeless displays.
(gdb-table, gdb-table-add-row, gdb-table-string): Structure used
to build aligned columns of data in GDB buffers and set text
properties line-by-line.
(gdb-invalidate-breakpoints)
(gdb-breakpoints-list-handler-custom)
(gdb-thread-list-handler-custom, gdb-disassembly-handler-custom)
(gdb-stack-list-frames-custom, gdb-locals-handler-custom)
(gdb-registers-handler-custom): Align data columns.
(gdb-locals-handler-custom): Now prints data like in variable
declarations.
(gdb-jump-to, gdb-file-button, gdb-insert-file-location-button):
Removed confusing buttons.
(gdb-invalidate-threads): Append --frame.
(gdb-threads-mode-map, gdb-breakpoints-mode-map): TAB to switch
between breakpoints/threads buffers.
(gdb-set-window-buffer): Now can ignore dedicated windows.
(gdb-propertize-header): Use `gdb-set-window-buffer'.
(def-gdb-thread-buffer-simple-command): Numerous typos fixed.
(def-gdb-thread-buffer-gud-command): Replaces
`def-gdb-thread-buffer-gdb-command' and uses standard GUD commands
for fine thread control.
(gdb-preempt-existing-or-display-buffer): New function used to
display bound buffers without breaking window layout.
(gdb-frame-location): Replaces `gdb-insert-frame-location'.
(gdb-select-frame): New version of `gdb-frames-select' which now
sets `gdb-frame-number' so commands may use --frame option instead
of inner debugger state.
(gdb-frame-handler): Do not set `gdb-frame-number'.
(gdb-threads-mode-map): Select threads with mouse.

(I forgot to include sources in previous commit)
2009-08-04 17:16:58 +00:00
Dmitry Dzhus
566f3909bd * progmodes/gdb-mi.el (gdb-get-buffer, gdb-get-buffer-create):
Argument `key' renamed to `buffer-type'.
(gdb-current-context-buffer-name): Do not add thread info to
buffer name when no thread is selected.
(gdbmi-record-list, gdb-shell): Try to handle GDB `shell'
command (bug 3794).
(gdb-thread-selected): Handle `=thread-selected' notification.
(gdb-wait-for-pending): New macro to deal with congestion problems.
(gdb-breakpoints-list-handler-custom): Don't fail on pending
breakpoints.
(gdb-invalidate-disassembly): Use 'fullname instead of 'file. This
fixes problem similar to one described in bug 3947.
(gud-menu-map): More menu items.
(gdb-init-1): Reset `gdb-thread-number' to nil.
2009-08-04 15:51:58 +00:00
Dmitry Dzhus
4a31122c33 * progmodes/gud.el (gud-stop-subjob, gud-menu-map): Respect GDB
non-stop settings.

* progmodes/gdb-mi.el (gdb-thread-number): Initialize with nil.
(gdb-current-context-command): Do not append --thread if
`gdb-thread-number' is nil.
(gdb-running-threads-count, gdb-stopped-threads-count): New
variables.
(gdb-non-stop, gdb-gud-control-all-threads, gdb-switch-reasons)
(gdb-stopped-hooks, gdb-switch-when-another-stopped): New
customization options.
(gdb-gud-context-command, gdb-gud-context-call): New wrappers for
GUD commands.
(gdb): `gud-def' definitions changed to use `gdb-gud-context-call'
(gdb-init-1): Activate non-stop mode if `gdb-non-stop' is enabled.
(gdb-setq-thread-number, gdb-update-gud-running): New functions to
set `gdb-thread-number' and update `gud-running' properly.
(gdb-running): Update threads list when new threads appear.
(gdb-stopped): Support non-stop operation and new thread switching
logic.
(gdb-jsonify-buffer, gdb-json-read-buffer, gdb-json-string)
(gdb-json-partial-output): New set of JSON routines.
(def-gdb-auto-update-trigger): New `signal-list' optional
argument.
(gdb-thread-list-handler-custom): Update `gud-running',
`gdb-stopped-threads-count' and `gdb-running-threads-count'.
(def-gdb-thread-buffer-gdb-command, gdb-interrupt-thread)
(gdb-continue-thread, gdb-step-thread): New commands for fine
thread execution control.
(gud-menu-map): New menu items to switch non-stop options.
(gdb-reset): Cleanup `gdb-thread-position' overlay arrow marker.
2009-08-04 15:07:23 +00:00
Dmitry Dzhus
4a6bcbc602 (gdb-rules-name-maker, gdb-rules-buffer-mode)
(gdb-rules-update-trigger): Accessors for gdb-buffer-rules.
(def-gdb-auto-update-handler): New nopreserve optional argument.
(gdb-stack-list-frames-custom): Print stack from top to bottom.
2009-08-04 14:40:33 +00:00
Dmitry Dzhus
9e919ceebc (gdb-pc-address): Removed unused variable.
(gdb-threads-list, gdb-breakpoints-list): New assoc lists.
(gdb-parent-mode): New mode to derive other GDB modes from.
(gdb-display-disassembly-for-thread)
(gdb-frame-disassembly-for-thread): New commands for threads
buffer.
2009-08-04 14:19:08 +00:00
Dmitry Dzhus
e70866834e (gdb-add-pending, gdb-pending-p, gdb-delete-pending): Macros to
handle pending triggers.
(gdb-threads-mode-map, def-gdb-thread-buffer-command)
(def-gdb-thread-buffer-simple-command)
(gdb-display-stack-for-thread, gdb-display-locals-for-thread)
(gdb-display-registers-for-thread, gdb-frame-stack-for-thread)
(gdb-frame-locals-for-thread, gdb-frame-registers-for-thread): New
commands which show buffers bound to thread.
(gdb-stack-list-locals-regexp): Removed unused regexp.
2009-08-04 13:27:21 +00:00
Dmitry Dzhus
a5c9f54014 (gdb-get-buffer, gdb-get-buffer-create, gdb-init-1)
(gdb-bind-function-to-buffer, gdb-add-subscriber)
(gdb-get-subscribers, gdb-emit-signal, gdb-buf-publisher)
(gdb-update): We now store all GDB buffers in a list so that they
can be updated by traversing a list instead of calling invalidate
triggers explicitly
(def-gdb-trigger-and-handler): New macro to define trigger-handler
pair for GDB buffer.
(gdb-stack-buffer-name): Add thread information.
2009-08-04 13:19:02 +00:00
Dmitry Dzhus
20f12ed882 * progmodes/gdb-mi.el (gdb-breakpoints-buffer-name)
(gdb-locals-buffer-name, gdb-registers-buffer-name)
(gdb-memory-buffer-name, gdb-stack-buffer-name): Do not switch
to (gud-comint-buffer) in *-buffer-name functions
because (gdb-get-target-string) already does that.
(gdb-locals-handler-custom, gdb-registers-handler-custom)
(gdb-changed-registers-handler): Rewritten without regexps.
2009-08-04 13:11:06 +00:00
Dmitry Dzhus
98bf849413 (gdb-thread-number): New variable.
(gdb-current-context-command): New macro which adds --thread
option to command.
(gdb-threads-mode-map): Select thread with SPC
(gdb-thread-list-handler-custom): Mark current thread with overlay
arrow. Synchronize GDB thread and Emacs thread.
(gdb-select-thread): New command which selects current thread.
(gdb-invalidate-frames, gdb-invalidate-locals)
(gdb-invalidate-registers): Use --thread option.
2009-08-04 12:46:26 +00:00
Nick Roberts
5c0309109e (jdb): Set gud-jdb-classpath-string to current
directory if CLASSPATH is not set.
2009-08-03 22:07:50 +00:00
Miles Bader
59d616309d Add arch tagline 2009-08-01 02:11:36 +00:00
Dmitry Dzhus
35edc6c64f (gdb-place-breakpoints): Use full path when setting breakpoints. 2009-07-30 08:04:13 +00:00
Chong Yidong
c779896dab * progmodes/cc-defs.el (c-version): Bump to 5.31.7. 2009-07-29 13:34:19 +00:00
Dmitry Dzhus
592ccae036 (gdb-goto-breakpoint): Use full path when setting breakpoints. 2009-07-29 09:14:13 +00:00
Steve Yegge
af0770126d added js2-mode.el 2009-07-28 05:57:35 +00:00
Nick Roberts
92491c14be (jdb): Add gud-pstar to dump object information.
(gud-menu-map): Adjust tooltip accordingly.
2009-07-28 01:47:44 +00:00
Glenn Morris
855b42a23d Kevin Ryde <user42 at zip.com.au>
Hyperlink urls in docstrings with URL `...'.
2009-07-22 03:07:18 +00:00
Sam Steingold
6bb90094fb (compile-auto-highlight): Remove the variable (removed from compile.el
on 2004-03-11).
2009-07-20 16:40:24 +00:00
Glenn Morris
d9e8a01896 (verilog-error-regexp-add-xemacs): Silence compiler by only defining on XEmacs. 2009-07-19 00:47:47 +00:00
Alan Mackenzie
c82f92a0fd (c-before-hack-hook, c-postprocess-file-styles): Give invocation of
`c-set-style' DONT-OVERRIDE parameter of t.  Already set style variables will
thus not be overridden by style settings given by `c-file-syle'.
2009-07-18 20:42:55 +00:00
Nick Roberts
c055a7dc57 (speedbar-frame): Declare to avoid compiler
warning.
(gdb-breakpoints-header): Move forward to avoid compiler warning.
(gdb-make-header-line-mouse-map): Remove duplicate definition.
2009-07-18 10:37:39 +00:00
Dmitry Dzhus
bfc99364d9 (json-partial-output): Fix broken GDB/MI output in -break-info command
(Emacs bug #3794).
2009-07-14 08:40:58 +00:00
Sam Steingold
2b1d2412c5 (compilation-mode-font-lock-keywords): Omake sometimes indents the
errors it prints, so allow all regexps to start with spaces.
2009-07-10 18:23:49 +00:00
Sam Steingold
49405d0e1b (rgrep): Allow grep-find-ignored-directories
to be a cons cell (test . ignored-directory) to selectively ignore
some directories depending on the location of the search.
2009-07-08 14:23:57 +00:00
Nick Roberts
ab3c1ccf3d (gdb): Remove description of
gdb-use-separate-io-buffer.
(menu): Don't allow toggling of or enable
gdb-use-separate-io-buffer from menubar.
2009-07-08 04:51:57 +00:00
Nick Roberts
ca8eb1bd47 (gdb-init-1): Move sending
-data-list-register-names to ...
(gdb-starting): ... here because GDB 7.0 requires execution to
have started when using this MI command.
(gdb-set-header): New function to distinguish select and
unselected tabs in gdb buffers.
(gdb-propertize-header): New macro that uses gdb-set-header.
(gdb-breakpoints-header, gdb-locals-header): Use it.
2009-07-08 00:41:00 +00:00
Dmitry Dzhus
69a197a214 * progmodes/gdb-mi.el (gdb-input): Add trailing newline to command. 2009-07-07 20:10:05 +00:00
Dmitry Dzhus
e7006f272c * progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom): y/n
instead of on/off; do not highlight breakpoints without line
information.
2009-07-07 19:54:08 +00:00
Dmitry Dzhus
17c1380b1f * progmodes/gdb-mi.el (gdb-stack-list-frames-handler): Rewritten
without regexps.
2009-07-07 17:40:32 +00:00
Dmitry Dzhus
dc6b4519c8 * progmodes/gdb-mi.el (gdb-init-1): Disassembly buffer mode name
may contain frame information, so `string-match' should be used.
(gdb-update): Disassembly is invalidated through
`gdb-get-selected-frame'.
(gdb-pad-string): New function to pad string with spaces.
(gdb-invalidate-disassembly): Invalidate only if the buffer
exists.
(gdb-disassembly-handler-custom): Column alignment.
(gdb-disassembly-place-breakpoints): Clear old breakpoints before
placing new ones.
(gdb-toggle-breakpoint, gdb-delete-breakpoint): Now work from the
end of line, too.
(gdb-frame-handler): Match convention to for disassembly buffer
mode name.
2009-07-07 17:36:42 +00:00
Dmitry Dzhus
14340b25f4 * progmodes/gdb-mi.el (gdb-init-1): Set correct mode name for
disassembly buffer.
(gdb-breakpoints-list-handler-custom): Replacement for
gdb-break-list-handler. Using real parser instead of regexps now.
(gdb-place-breakpoints): Replacement for gdb-break-list-custom.
Use gdb-breakpoints-list instead of parsing breakpoints buffer to
place breakpoints.
(def-gdb-memory-unit): A new macro to define gdb-memory-unit-..
functions.
(gdb-disassembly-handler-custom): Show overlay arrow.
(gdb-disassembly-place-breakpoints): Show breakpoints in
disassembly buffer.
(gdb-toggle-breakpoint, gdb-delete-breakpoint)
(gdb-goto-breakpoint): Using gdb-breakpoint text properties
instead of parsing breakpoints buffer.
Fixed old menu references in gud-menu-map.
2009-07-07 17:22:26 +00:00
Dmitry Dzhus
28d67a53c5 gdb-mi.el: Now using bindat-get-field instead of fadr functions. 2009-07-07 17:04:51 +00:00