1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00
Commit graph

42602 commits

Author SHA1 Message Date
Chong Yidong
2bcda1d5ac Merge from Dave Love's 2008-01-20 version.
Require sym-comp.  Add Python buffer to same-window-buffer-names.
Fixup whitespaces.
(python-font-lock-keywords): Add highlighting for Python builtins.
(python-font-lock-syntactic-keywords): Rewrite.
(python-quote-syntax): Use syntax-ppss-context instead of parsing
ppss directly.
(python-mode-map): Add binding for python-find-function.
(python-calculate-indentation): Clean up the logic.
(python-beginning-of-defun): Explicitly set return value.
(python-beginning-of-statement): Stop looping if we get stuck
going backwards.
(python-next-statement): Stop looping if we somehow end up inside
a string while advancing.
(python-preoutput-continuation, python-version-checked): New vars.
(python-check-version): New function.
(run-python): Set default command to python-command instead of
python-python-command.
(run-python): Use python-check-version.  Give PYTHONPATH
precedence over data-directory in the process environment.  Load
function definitions in python process after.
(python-check-comint-prompt): New function.
(python-send-command, python-send-receive): Use it.
(python-complete-symbol, python-try-complete): Functions deleted.
Use symbol-complete instead of python-complete-symbol throughout.
(python-fill-paragraph): Further refine the fenced-string regexp.
(def-python-skeleton): Expand to the original abbrev instead if in
a comment or string.  Tweak skeletons for `if', `while', `for',
`try/except', `try/finally', `name'.
(python-pea-hook, python-abbrev-pc-hook): New functions.
(python-abbrev-syntax-table): New var.
(python-mode): Add python-pea-hook to pre-abbrev-expand-hook.  Use
symbol-completion-try-complete for hippie expansion.  Turn on font
lock unconditionally.
(python-mode-hook): Defcustom it.  No need to use make-local
variable on indent-tabs-mode in "Turn off Indent Tabs mode"
option, since it's buffer-local.
2008-02-21 17:03:47 +00:00
Chong Yidong
e21766aa63 New file. 2008-02-21 17:03:30 +00:00
Chong Yidong
ff493c639b * progmodes/sym-comp.el: New file.
* progmodes/python.el: Merge from Dave Love's 2008-01-20 version.
Require sym-comp.  Add Python buffer to same-window-buffer-names.
Fixup whitespaces.
(python-font-lock-keywords): Add highlighting for Python builtins.
(python-font-lock-syntactic-keywords): Rewrite.
(python-quote-syntax): Use syntax-ppss-context instead of parsing
ppss directly.
(python-mode-map): Add binding for python-find-function.
(python-calculate-indentation): Clean up the logic.
(python-beginning-of-defun): Explicitly set return value.
(python-beginning-of-statement): Stop looping if we get stuck
going backwards.
(python-next-statement): Stop looping if we somehow end up inside
a string while advancing.
(python-preoutput-continuation, python-version-checked): New vars.
(python-check-version): New function.
(run-python): Set default command to python-command instead of
python-python-command.
(run-python): Use python-check-version.  Give PYTHONPATH
precedence over data-directory in the process environment.  Load
function definitions in python process after.
(python-check-comint-prompt): New function.
(python-send-command, python-send-receive): Use it.
(python-complete-symbol, python-try-complete): Functions deleted.
Use symbol-complete instead of python-complete-symbol throughout.
(python-fill-paragraph): Further refine the fenced-string regexp.
(def-python-skeleton): Expand to the original abbrev instead if in
a comment or string.  Tweak skeletons for `if', `while', `for',
`try/except', `try/finally', `name'.
(python-pea-hook, python-abbrev-pc-hook): New functions.
(python-abbrev-syntax-table): New var.
(python-mode): Add python-pea-hook to pre-abbrev-expand-hook.  Use
symbol-completion-try-complete for hippie expansion.  Turn on font
lock unconditionally.
(python-mode-hook): Defcustom it.  No need to use make-local
variable on indent-tabs-mode in "Turn off Indent Tabs mode"
option, since it's buffer-local.
2008-02-21 17:03:10 +00:00
Juanma Barranquero
10a806d3b1 (hanoi-internal): Set `show-trailing-whitespace' to nil. 2008-02-21 15:27:15 +00:00
Dan Nicolaescu
3ba75732c0 *** empty log message *** 2008-02-21 10:24:59 +00:00
Dan Nicolaescu
07fa8f8635 *** empty log message *** 2008-02-21 09:29:24 +00:00
Dan Nicolaescu
fb1a03c9f5 * mouse.el (minor-mode-menu-from-indicator): Create a menu with a
"Turn off" and a "Help" entry when the minor mode has no menu.
2008-02-21 09:15:32 +00:00
Glenn Morris
a8a4617aa3 (spell-buffer, spell-word, spell-region)
(spell-string): Make obsolete, in favor of ispell.
2008-02-21 09:01:37 +00:00
Glenn Morris
c44647a35f Regenerate for new autoload md5sum. 2008-02-21 08:39:34 +00:00
Glenn Morris
0f764efe28 Add missing FSF copyright years. 2008-02-21 08:26:10 +00:00
Dan Nicolaescu
8bb38e8764 (vc-status-mark, vc-status-unmark): New functions.
(vc-status-mode-map, vc-status-mode-menu): Mark them instead for
vc-status-mark-file and vc-status-unmark-file.
(vc-status-mark-unmark): New function.
(vc-status-previous-line, vc-status-mark-all-files): No longer
interactive.
2008-02-21 08:26:00 +00:00
Glenn Morris
000b06df11 (sit-for): Fix obsolete form for nil second argument. 2008-02-21 08:13:45 +00:00
Glenn Morris
ad1b4641e2 (encode-composition-rule): Fix typo in error message.
(composition-function-table, auto-composition-mode): Doc fixes.
2008-02-21 07:53:55 +00:00
Glenn Morris
eeee3ae105 Fix comment typo. 2008-02-21 07:52:22 +00:00
Glenn Morris
f706b27832 Fix typo. 2008-02-21 07:51:42 +00:00
Kenichi Handa
3e45ea11c0 *** empty log message *** 2008-02-21 07:38:40 +00:00
Kenichi Handa
b94affd7b0 Don't setup composition-function-table here.
("Devanagari"): Change charset, coding-system, coding-priority to
Unicode-based ones.  Don't require the feature devan-util.
2008-02-21 07:28:35 +00:00
Kenichi Handa
a73b562753 (decode_mode_spec): New arg string.
(display_mode_element): Adjusted for the above change.
2008-02-21 07:06:33 +00:00
Glenn Morris
7684f65046 Fix. 2008-02-21 06:16:54 +00:00
Stefan Monnier
60134fd4b7 (image-set-window-hscroll): Typo. 2008-02-21 05:38:30 +00:00
Stefan Monnier
de17146541 Allow different windows to show different pages.
(doc-view-current-page, doc-view-current-slice, doc-view-current-info)
(doc-view-current-image, doc-view-current-overlay): Remove variables,
add them back as macros instead, using image-mode-winprops instead.
Update all users of those variables.
(doc-view-new-window-function): New function to create a new overlay
for each new window.
(doc-view-mode): Use it and image-mode-setup-winprops.
(doc-view-clone-buffer-hook): Rewrite accordingly.
2008-02-21 03:45:04 +00:00
Kenichi Handa
67125135e0 (compose-chars-after): Fix arguments for a function
in composition-function-table.
(auto-compose-region): Likewise.
2008-02-21 03:35:31 +00:00
Stefan Monnier
44e3c7c602 Extend [hv]scroll support to per-window properties.
(image-mode-current-vscroll, image-mode-current-hscroll): Remove.
(image-mode-winprops-alist): New var to replace them.
(image-mode-new-window-functions): New hook.
(image-mode-winprops, image-mode-window-get, image-mode-window-put): New funs.
(image-set-window-vscroll, image-set-window-hscroll): Use them.
Remove the `window' argument, update callers.
(image-mode-reapply-winprops): Rename image-reset-current-vhscroll.
Use the new functions.
(image-mode-reapply-winprops): New fun.
(image-mode): Use it.
2008-02-21 03:27:15 +00:00
Jay Belanger
b0d9db865c (math-sin-raw): Add optional argument to keep track of
original argument.
(math-cos-raw): Use optional argument when calling math-sin-raw.
(math-sin-raw-2, math-cos-raw-2): Check for a zero argument with close
to original precision.
2008-02-21 02:35:14 +00:00
Kenichi Handa
5bc44aa4bd (ps-mule-font-info-database-bdf): Use
ethio16f-uni.bdf for Ethiopic.
(ps-mule-plot-string): Ignore glyph-string based compositions.
2008-02-21 01:57:10 +00:00
Juanma Barranquero
5549f37a37 *** empty log message *** 2008-02-20 23:42:25 +00:00
Thien-Thi Nguyen
f4263e475d Explain vc-BACKEND-root in Commentary; nfc. 2008-02-20 18:11:15 +00:00
Roland Winkler
48c4d6a236 (bibtex-convert-alien): Do not use optional args in calls of sit-for. 2008-02-20 17:45:52 +00:00
Thien-Thi Nguyen
62754d298a Kill eol whitespace; nfc. 2008-02-20 15:21:55 +00:00
Juanma Barranquero
4ced8551f6 (vc-svn-program): Fix typo in docstring.
(vc-svn-checkin): Fix typo in error message.
2008-02-20 12:42:35 +00:00
Kenichi Handa
91382ad9ec (ps-mule-encode-region): Return a single string.
(ps-mule-plot-string): Adjusted for the above change.
(ps-mule-encode-header-string): Likewise.
2008-02-20 12:18:29 +00:00
Juanma Barranquero
6f3003230d Require easymenu when compiling. 2008-02-20 11:27:28 +00:00
Thien-Thi Nguyen
58db72a4d3 Kill eol whitespace; nfc. 2008-02-20 10:40:46 +00:00
Juanma Barranquero
a14bddee6f *** empty log message *** 2008-02-20 09:52:39 +00:00
Dan Nicolaescu
58245a5832 (help-mode-menu): New menu. 2008-02-20 06:37:53 +00:00
Glenn Morris
6052846bdd (rmail-autodetect): Add .exe extension to movemail on Windows. 2008-02-20 06:00:13 +00:00
Kenichi Handa
3e7447da33 (latin1-display): Don't use
ucs-mule-8859-to-mule-unicode.  Fix the way of resettting
standard-display-table.
(latin1-display-identities): Adjusted for the change of what is
returned by (get-language-info charset 'charset).
2008-02-20 04:45:35 +00:00
Kenichi Handa
ed98afe1e0 (char-displayable-p): Fix for Latin-1
characters and terminal case.
2008-02-20 04:41:25 +00:00
Nick Roberts
d550787cc9 Also require comint when loading.
(python-mode-map): Bind python-pdbtrack-toggle-stack-tracking,
Replace python-shell with run-python on menu bar,
(python-shell-map): New map.
(python-default-interpreter, python-python-command-args)
(python-jython-command-args, python-pdbtrack-do-tracking-p):
New options.
(python-which-shell, python-which-args, python-which-bufname):
New buffer local variables.
(python-file-queue, python-pdbtrack-is-tracking-p):
* progmodes/python.el (python-pdbtrack-stack-entry-regexp)
(python-pdbtrack-input-prompt, python-pdbtrack-track-range):
New constants.

Pdbtrack features:

(python-point, python-end-of-def-or-class)
(python-beginning-of-def-or-class, python-goto-initial-line)
(python-comint-output-filter-function)
(python-pdbtrack-overlay-arrow)
(python-pdbtrack-track-stack-file, python-toggle-shells)
(python-shell, python-pdbtrack-toggle-stack-tracking)
(turn-on-pdbtrack, turn-off-pdbtrack, python-sentinel):
New functions.
2008-02-20 00:18:23 +00:00
Nick Roberts
67fd73d2f3 *** empty log message *** 2008-02-20 00:13:09 +00:00
Michael Albinus
c200c78dc5 * net/ange-ftp.el (ange-ftp-quote-string): Return the null string
when the argument is nil.
2008-02-19 19:23:19 +00:00
Dan Nicolaescu
00ca5ce2ea (dir-status): Add a brief description. 2008-02-19 15:44:45 +00:00
Thien-Thi Nguyen
6d587cb5d9 (vc-sccs-root): New func. 2008-02-19 12:26:40 +00:00
Thien-Thi Nguyen
b038f9fb95 Make sure all backends support vc-BACKEND-root.
* vc-hooks.el (vc-find-root): Take optional arg INVERT.
If non-nil, reverse the sense of the check.
* vc-rcs.el (vc-rcs-root): New func.
* vc-cvs.el (vc-cvs-root): New func.
* vc-svn.el (vc-svn-root): New func.
2008-02-19 11:45:54 +00:00
Thien-Thi Nguyen
72c70417d3 Kill eol whitespace; nfc. 2008-02-19 11:25:30 +00:00
Thien-Thi Nguyen
6dbb5c761e Kill eol whitespace; nfc. 2008-02-19 11:18:56 +00:00
Dan Nicolaescu
7fcfd0e545 Fix typo. 2008-02-19 09:40:16 +00:00
Kenichi Handa
4125bd36c0 *** empty log message *** 2008-02-19 07:42:51 +00:00
Dan Nicolaescu
6656ecaa46 * vc.el (vc-status-menu, vc-status-menu-map-filter): New functions.
(vc-status-mode-menu): Add a :filter.
(vc-status-printer): Add faces.

* vc-hg.el (vc-hg-extra-status-menu): New function.
(vc-hg-dir-status): Clean up the buffer before using it.
2008-02-19 07:10:33 +00:00
Stefan Monnier
57e828aed9 (gdb-output-sink): Define with an invalid value.
(gdb): Initialize it here instead.
2008-02-19 04:30:50 +00:00