1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

4936 commits

Author SHA1 Message Date
Stefan Monnier
dfbd787fe6 * lisp/progmodes/ruby-mode.el: Simplify last change, and cleanup code.
(ruby-syntax-propertize-regexp): Remove.
(ruby-syntax-propertize-function): Split regexp into chunks.
Match following code directly.
* test/indent/ruby.rb: New file, to test new syntax-propertize code.
2012-04-24 13:06:12 -04:00
Dmitry Gutov
51a8ea2acf * lisp/progmodes/ruby-mode.el: Handle Cucumber defs (bug#6286).
(ruby-syntax-propertize-regexp): New function.
(ruby-syntax-propertize-function): Use it to handle regexp not preceded
by a special keyword.
2012-04-24 12:00:08 -04:00
Dmitry Gutov
85222d4485 * lisp/progmodes/ruby-mode.el: Handle general delimited literals.
(ruby-syntax-general-delimiters-goto-beg)
(ruby-syntax-propertize-general-delimiters): New functions.
(ruby-syntax-propertize-function): Use them to handle GDL.
(ruby-font-lock-keywords): Move old handling of GDL...
(ruby-font-lock-syntactic-keywords): .. to here.
(ruby-calculate-indent): Adjust indentation for GDL.

Fixes: debbugs:6286
2012-04-24 11:51:14 -04:00
Leo Liu
257440aa1c * lisp/progmodes/python.el: Move hideshow setup to the end. 2012-04-24 22:58:29 +08:00
Chong Yidong
cf20dee024 Tweaks to Customize interface. Set custom-reset-button-menu to t.
* cus-edit.el (custom-commands, custom-reset-menu)
(Custom-reset-standard): Tweak labels.
(custom-reset-button-menu): Change default to t.
(custom-buffer-create-internal): For the custom-reset-button-menu
case, put the revert button first.
(custom-group-subtitle): New face.
(custom-group-value-create): Align docstring to a specific column.

* wid-edit.el (widget-documentation-link-add): Don't handle
indentation in this function.
(widget-documentation-string-indent-to): New function.
(widget-documentation-string-value-create): Use it.

* autorevert.el (auto-revert):
* epg-config.el (epg):
* ibuffer.el (ibuffer):
* mpc.el (mpc):
* ses.el (ses):
* eshell/eshell.el (eshell):
* net/ange-ftp.el (ange-ftp):
* progmodes/ebnf2ps.el (postscript):
* progmodes/flymake.el (flymake):
* progmodes/prolog.el (prolog):
* progmodes/verilog-mode.el (verilog-mode):
* progmodes/which-func.el (which-func):
* textmodes/picture.el (picture):
* textmodes/tildify.el (tildify):
* vc/ediff.el (ediff): Tweak defgroups to improve presentation in
customization buffers.
2012-04-22 21:58:00 +08:00
Alan Mackenzie
583e23bd57 CC Mode. Adding a ) can hide the resulting (..) from searches. Fix it. 2012-04-22 11:13:09 +00:00
Juanma Barranquero
7dd51bf1c2 Don't add modes to which-func-modes if already set to t.
* lisp/progmodes/verilog-mode.el (verilog-mode): Check whether
  which-func-modes is t before adding verilog-mode.
  Reported by Andy Moreton <andrewjmoreton@gmail.com>.

* lisp/mh-e/mh-folder.el (top): Check whether which-func-modes
  is t before adding mh-folder-mode.
2012-04-21 18:57:49 +02:00
Chong Yidong
c07a4c0b59 Merge from emacs-24 branch 2012-04-20 16:48:50 +08:00
Chong Yidong
8912063b46 Fix last change.
* lisp/progmodes/gdb-mi.el (gdb-inferior-io-sentinel): Don't do
anything if gdb process is killed.
2012-04-20 15:13:25 +08:00
Chong Yidong
f30d612a7a Fixes for pty handling in gdb-mi.el and process.c.
* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.

* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.

* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.
2012-04-20 14:39:29 +08:00
Juanma Barranquero
376cbaccd9 Remove some `toggle-read-only' warnings.
* lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.

* lisp/descr-text.el (describe-char):
  lisp/progmodes/python.el (python-describe-symbol):
  Don't call `toggle-read-only', set `buffer-read-only'.
2012-04-19 18:50:07 +02:00
Chong Yidong
b668fa6eb0 Delete the gdb-inferior pty when the gdb process exits.
* lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
function to call delete-process on the gdb-inferior buffer's pty.
(gdb-reset): Use it, instead of relying on kill-buffer to kill the
pty process.
(gdb-update): New arg to suppress talking to the gdb process.
(gdb-done-or-error): Use it.
(gdb-stopped-functions): Rename from gdb-stopped-hooks.
(gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
sentinel not being called.

* lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.

Fixes: debbugs:11273
2012-04-19 16:09:30 +08:00
Sam Steingold
a77b0ac992 * lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
instead of 'string to accommodate values like [f11].
Always use `vconcat' instead of `concat' on it, like in `gud-def'.
* lisp/progmodes/gdb-mi.el: Likewise.
2012-04-18 16:26:57 -04:00
Chong Yidong
d02766abd7 * lisp/progmodes/grep.el (grep, rgrep): Doc fix.
Fixes: debbugs:11268
2012-04-18 14:04:51 +08:00
Peter Oliver
fc72b15c77 Add perl-indent-parens-as-block option (tiny change)
* lisp/progmodes/perl-mode.el (perl-indent-parens-as-block): New option.
(perl-calculate-indent): Respect it.

Fixes: debbugs:11118
2012-04-16 19:46:22 -07:00
Alan Mackenzie
f0f6bc351b CC Mode: Ensure searching for keywords is case sensitive. 2012-04-16 20:01:44 +00:00
Leo Liu
f45f90f331 * lisp/progmodes/python.el: Trivial cleanup. 2012-04-17 03:28:57 +08:00
Glenn Morris
20f0c46dcd * lisp/progmodes/perl-mode.el (c-macro-expand): Remove unnecessary autoload
(it is in loaddefs.el).
2012-04-16 15:01:30 -04:00
Glenn Morris
3c80ae807c Comment. 2012-04-14 10:53:52 -07:00
Stefan Monnier
ab036cd7bd * lisp/progmodes/which-func.el (which-func-modes): Change default. 2012-04-13 22:31:50 -04:00
Glenn Morris
35dc09a19c Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.org 2012-04-13 18:46:06 -07:00
Glenn Morris
327732d994 Changed defcustoms should get :version bumps 2012-04-13 18:33:08 -07:00
Leo Liu
adedaa1fa6 * lisp/progmodes/which-func.el (which-func-modes): Add objc-mode. 2012-04-13 23:19:58 +08:00
Alan Mackenzie
57f845ee63 Make imenu work again for Objective C Mode. 2012-04-11 18:09:10 +00:00
Alan Mackenzie
0de3da9f2f Correct two search limits in c-before-change-check_<>-operators. 2012-04-11 15:32:30 +00:00
Wolfgang Jenkner
49a2697c1e rgrep ignored file tweak
* lisp/progmodes/grep.el (rgrep): Tweak the find command line so
that directories matching `grep-find-ignored-files' won't be
pruned.

Fixes: debbugs:10351
2012-04-11 13:39:35 +02:00
Stefan Monnier
0221e32392 * lisp/progmodes/flymake.el (flymake-mode): Beware read-only dirs.
Fixes: debbugs:8954
2012-04-10 20:21:00 -04:00
Sébastien Gross
43956923c0 (hs-hide-all): Don't infloop on comments that start in the middle of the line.
Fixes: debbugs:10496
2012-04-11 01:34:25 +02:00
Nathan Weizenbaum
8f33b5f873 `python-fill-paragraph' filling fixup when font-lock is disabled
* progmodes/python.el (python-fill-paragraph): Make
python-fill-region in a multiline string work when font-lock is
disabled.

Fixes: debbugs:7018
2012-04-10 13:27:44 +02:00
Chong Yidong
fb7ada5f94 Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
Stefan Monnier
81fdff0036 * lisp/progmodes/perl-mode.el (perl-indent-line): Use `noindent' in strings.
(perl-calculate-indent): Return `noindent' in strings.
2012-03-29 23:13:04 -04:00
Paul Eggert
425df10c7b Spelling fixes. 2012-03-28 00:24:26 -07:00
Liang Wang
126f3d39bb * lisp/progmodes/etags.el (etags-list-tags): Only use tags which goto-func
understands.

Fixes: debbugs:9942
2012-03-22 10:46:05 -04:00
Dmitry Gutov
396750161e * lisp/progmodes/ruby-mode.el: Don't confuse "end:" for "end".
(ruby-block-end-re, ruby-delimiter, ruby-parse-partial)
(ruby-beginning-of-indent): Be more careful with the difference
between word-boundary and symbol boundary.
(ruby-mode-syntax-table): Make : a symbol constituent.

Fixes: debbugs:10786
2012-03-21 14:33:07 -04:00
Stefan Monnier
af67c9d7cd * progmodes/etags.el (tags-completion-at-point-function): Improve last fix. 2012-03-21 13:50:28 -04:00
Sam Steingold
e298b5da3d * lisp/progmodes/etags.el (tags-completion-at-point-function):
Avoid the error when point is inside the pattern.
2012-03-21 13:17:23 -04:00
John Yates
91d82a7029 * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.
Fixes: debbugs:10855
2012-03-22 01:02:09 +08:00
Alan Mackenzie
2e492df3cd Further optimise the handling of large macros. 2012-03-16 14:10:54 +00:00
Stefan Monnier
663b16775f * lisp/progmodes/perl-mode.el (perl-syntax-propertize-special-constructs):
Fix up parsing of multiline twoarg non-paired elements.

Fixes: debbugs:11014
2012-03-14 23:09:26 -04:00
Kaushik Srenevasan
4a07df36a5 GDB change for dynamically generated code (tiny change)
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00753.html

* lisp/progmodes/gdb-mi.el (gdb-invalidate-disassembly):
For dynamically generated code, follow $PC.
(gdb-disassembly-handler-custom): Handle no function name case.

Fixes: debbugs:10597
2012-03-13 00:07:10 -07:00
Paul Eggert
f003f29445 Spelling fixes. 2012-03-12 15:35:55 -07:00
Alan Mackenzie
9cec78342c Make c-mark-defun extend region when repeated, and leave a mark.
Fixes bugs #5525, #10906.
2012-03-08 11:32:57 +00:00
Kaushik Srenevasan
133b8e1120 Small gdb-breakpoints fix (tiny change)
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00753.html

* lisp/progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom):
Handle breakpoints with no "type".
2012-03-06 00:37:38 -08:00
Alan Mackenzie
56d093a9c8 Depessimize the handling of very large macros. 2012-03-02 22:16:21 +00:00
Michael Mauger
f6561e1f9a 2012-03-01 Michael R. Mauger <mmaug@yahoo.com>
* progmodes/sql.el: Bug fix
	(sql-get-login-ext): Save login values in globals.
	(sql-get-login): Use new version of `sql-get-login-ext'.
	(sql-interactive-mode): Set global `sql-connection' to nil.
	(sql-connect): Set global values for connection.
	(sql-product-interactive): Save global values as buffer local.
2012-03-01 00:01:22 -05:00
Glenn Morris
44e97401cd Standardize possessive apostrophe usage in manuals, docs, and comments
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00649.html
2012-02-28 00:17:21 -08:00
Jim Blandy
4fd9655790 Fix handling of commands containing double quotes in gdb-mi
* lisp/progmodes/gdb-mi.el (gdb-mi-quote): New function.
(gdb-send): Apply it to the operand of the '-interpreter-exec
console' command, so that we can pass arguments with (say) quotes
in them.  Store exact string sent in gdb-debug-log (Bug#10765).
2012-02-26 17:38:45 +08:00
Glenn Morris
b4d8d5e6eb Reword comment to avoid confusing authors.el 2012-02-22 21:01:58 -05:00
Alan Mackenzie
f41ce09dbd Revert Change #107149. 2012-02-22 19:34:32 +00:00
Glenn Morris
daf3dc7906 Small header fixes 2012-02-20 12:24:24 -08:00