Commit graph

54308 commits

Author SHA1 Message Date
Martin Rudalics
f818cd2a39 Restore Emacs 23 display-buffer functions and options.
* window.el (display-buffer-window): Rewrite doc-string.
(display-buffer-record-window): New function.
(display-buffer-macro-specifiers)
(display-buffer-even-window-sizes, display-buffer-set-height)
(display-buffer-set-width, display-buffer-in-window)
(display-buffer-reuse-window, display-buffer-split-specifiers)
(display-buffer-side-specifiers, display-buffer-split-window-1)
(display-buffer-split-window, display-buffer-split-atom-window)
(display-buffer-pop-up-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-side-window, display-buffer-in-side-window)
(display-buffer-other-window-means-other-frame)
(display-buffer-normalize-special)
(display-buffer-normalize-default)
(display-buffer-normalize-argument)
(display-buffer-normalize-alist-1, display-buffer-normalize-alist)
(display-buffer-normalize-specifiers, display-buffer-frame)
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-other-window)
(display-buffer-same-frame-other-window)
(display-buffer-other-frame, pop-to-buffer-same-window)
(pop-to-buffer-same-frame, pop-to-buffer-other-window)
(pop-to-buffer-same-frame-other-window, pop-to-buffer-other-frame)
(switch-to-buffer-same-frame)
(switch-to-buffer-other-window-same-frame)
(display-buffer-alist-of-strings-p, display-buffer-alist-add)
(display-buffer-alist-set-1, display-buffer-alist-set-2)
(display-buffer-alist-set): Remove.
(display-buffer-function, special-display-buffer-names)
(special-display-regexps, special-display-function): In
doc-string refer to display-buffer-window and quit-restore
parameter.
(pop-up-frame-alist, pop-up-frame-function, special-display-p)
(special-display-frame-alist, special-display-popup-frame)
(same-window-buffer-names, same-window-regexps, same-window-p)
(pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, window-splittable-p)
(split-window-sensibly, window--try-to-split-window)
(window--frame-usable-p, even-window-heights)
(window--even-window-heights, window--display-buffer-1)
(window--display-buffer-2, display-buffer-other-frame): Restore
old Emacs 23 code, order and doc-strings where applicable.
(display-buffer-default, display-buffer-assq-regexp): New functions.
(display-buffer-alist): Rewrite doc-string.
(display-buffer-default-action)
(display-buffer-overriding-action): New variables.
(display-buffer, switch-to-buffer): Rewrite.
(pop-to-buffer): Restore Emacs 23 behavior but use
window-normalize-buffer-to-display.
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Restore Emacs 23 behavior but use
window-normalize-buffer-to-switch-to.
(pop-to-buffer-same-window): Rewrite.
(pop-to-buffer-other-window, pop-to-buffer-other-frame): Rewrite
using Emacs 23 options.

* org-compat.el (org-pop-to-buffer-same-window): Remove LABEL
argument from pop-to-buffer-same-window call.
2011-08-31 11:27:49 +02:00
Michael Albinus
5bc3b51d1e * net/tramp.el (tramp-root-regexp): Remove.
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate)
(tramp-completion-file-name-regexp-url): Don't use leading volume
letter on win32 systems.  (Bug#5303, Bug#9311)
(tramp-drop-volume-letter): Simplify definition.  Suggested by
Stefan Monnier <monnier@iro.umontreal.ca>.
2011-08-31 10:18:20 +02:00
Katsumi Yamaoka
b0de839f5d auth-source.el: Autoload help-mode. 2011-08-30 23:01:50 +00:00
Lars Magne Ingebrigtsen
3eacc9cdef gnus-group.el (gnus-group-name-charset): Don't bug out on server names. 2011-08-30 22:07:52 +00:00
Stefan Monnier
b1a4f8e1d8 * lisp/subr.el (event-modifiers): Fix "missing modifier" part of docstring.
Fixes: debbugs:9356
2011-08-30 10:50:02 -04:00
Reuben Thomas
5664fa7b04 * lisp/vc/pcvs-defs.el (cvs-find-file-and-jump): Typo in docstring.
Fixes: debbugs:9369
2011-08-30 10:40:51 -04:00
Juri Linkov
9a45d6c331 * lisp/isearch.el (isearch-done): Don't display message "Mark saved"
when arg `edit' is non-nil to prevent its flicker in the echo area.
2011-08-29 23:22:44 +03:00
Daiki Ueno
0f3de88f02 Merge changes made in Gnus trunk.
mml-smime.el (mml-smime-epg-verify): Don't use the 4th arg of mm-replace-in-string for compatibility issues.
mml2015.el (mml2015-epg-verify): Ditto.
2011-08-28 22:04:32 +00:00
Chong Yidong
fb87e0fb94 Fix package menu bug in marking obsolete packages for deletion.
* lisp/emacs-lisp/package.el (package-menu-mark-delete): Allow marking
obsolete packages for deletion.
2011-08-28 17:32:50 -04:00
Chong Yidong
b9696605a3 Make custom-theme-choose-mode inherit from special-mode.
* lisp/cus-theme.el (custom-theme-choose-mode): Inherit from special-mode.
(custom-theme-choose-mode-map): Add special-mode to parent.

Fixes: debbugs:9124
2011-08-28 15:05:26 -04:00
Christoph Scholtes
09ac1c2ac0 Make Help mode inherit from special-mode.
* help-mode.el (help-mode-map): Add special-mode-map to parent.
(help-mode): Derive help-mode from special-mode. Don't invoke
view-mode from help-mode.
(help-xref-override-view-map): Remove.
(help-make-xrefs): Remove minor-mode-overriding-map-alist since
view-mode is not used anymore.
2011-08-28 14:58:16 -04:00
Chong Yidong
7a1ff57fac * lisp/server.el (server-port): Doc fix. 2011-08-28 14:46:38 -04:00
Alan Mackenzie
ef8cdf8c2a Fix - typing on a C++ inher-intro or inher-cont line should preserve the
fontification of the inherited class names.  Analogously for namespace
names and Java import, extends, etc.

(cc-fonts.el): (c-make-font-lock-BO-decl-search-function): New function.
(c-basic-matchers-after - "Fontify the clauses after various keywords"):
Extract the three keyword lists for the 3 erroneous constructs from the
list of four, and use the new function above in place of an old one.
2011-08-28 11:42:33 +00:00
Bastien Guerry
d6b9407c0c A few cosmetic fixes in lisp/org/ChangeLog. 2011-08-28 10:31:04 +02:00
Deniz Dogan
27de4e2048 * lisp/net/rcirc.el (rcirc-insert-prev-input)
(rcirc-insert-next-input): Remove unused argument.
2011-08-28 08:07:14 +02:00
Stefan Monnier
356a368181 * lisp/shell.el (shell-parse-pcomplete-arguments): Unquote args.
Fixes: debbugs:9160
2011-08-28 01:15:17 -04:00
Alan Mackenzie
9980ebf354 textmodes/paragraphs.el. Undo previous accidental patch. 2011-08-27 11:14:50 +00:00
Alan Mackenzie
3fc9b21845 progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Make it handle
function pointer parameters properly.
2011-08-27 08:41:23 +00:00
Martin Rudalics
538a061c72 Fix bug in display-buffer-reuse-window (Bug#9381).
* window.el (display-buffer-reuse-window): Fix case where
selected window was reused with non-nil OTHER-WINDOW argument.
(Bug#9381)
2011-08-27 10:38:33 +02:00
Deniz Dogan
35b1c40c36 * net/rcirc.el (rcirc-check-auth-status): Adding support for oftc's NickServ messages. 2011-08-27 10:28:46 +02:00
Glenn Morris
2f6a3e7912 * lisp/saveplace.el (save-place-limit): Make it finite. (Bug#9352) 2011-08-26 20:52:47 -04:00
Chong Yidong
7254299e4d * package.el (package-install): Call package-initialize if called interactively. 2011-08-26 11:53:50 -04:00
Eli Zaretskii
c11821d4e1 Fix bug #9324 with unwarranted repositioning of point.
src/xdisp.c (redisplay_window): Don't force window start if point
 will be invisible in the resulting window.
2011-08-26 13:07:06 +03:00
Leo Liu
f8ccf16762 Fix format bug in defstruct
http://debbugs.gnu.org/9357
2011-08-26 17:52:07 +08:00
Katsumi Yamaoka
2a9878fd77 mailcap.el (mailcap-mime-data): Regexp-quote MIME subtype. 2011-08-26 09:01:56 +00:00
Katsumi Yamaoka
16e07ee0c3 gnus-msg.el (gnus-setup-message): Remove extra apostrophe. 2011-08-26 04:25:55 +00:00
Juri Linkov
3e8cd5ce95 * lisp/isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
`search-whitespace-regexp'.

Fixes: debbugs:9364
2011-08-25 23:48:45 +03:00
Juri Linkov
93eb711326 * lisp/isearch.el (isearch-edit-string): Let-bind `search-ring' and
`regexp-search-ring' to their global values to protect from
updating by `read-from-minibuffer'.

Fixes: debbugs:9185
2011-08-25 23:32:54 +03:00
Juri Linkov
f65d1611ff * lisp/textmodes/ispell.el (ispell-command-loop): Add newline
at the end of the "Use option `i'..." line.
2011-08-25 22:54:07 +03:00
Juri Linkov
f1cf7a31ca * lisp/battery.el (display-battery-mode): If `battery-status-function'
or `battery-mode-line-format' is nil, display the message and set
`display-battery-mode' to nil.

Fixes: debbugs:9363
2011-08-25 22:49:57 +03:00
Bastien Guerry
84f211108b Cosmetic fixes. 2011-08-25 13:00:13 +02:00
Eli Zaretskii
0c95fcf739 Handle `(space ...)' display spec as paragraph separator.
src/xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when
 the display spec is of the form `(space ...)'.
 (handle_display_spec): Return the value returned by
 handle_single_display_spec, not just 1 or zero.
 (handle_single_display_spec): If the display spec is of the form
 `(space ...)', and specifies display in the text area, return 2
 rather than 1.
 src/dispextern.h (struct bidi_it): Rename the disp_prop_p member
 into disp_prop; all users changed.
 src/bidi.c (bidi_fetch_char): If compute_display_string_pos returns
 DISP_PROP = 2, substitute the u+2029 PARAGRAPH SEPARATOR character
 for the text covered by the display property.
 lisp/buff-menu.el (Buffer-menu-buffer+size): Remove calls to
 bidi-string-mark-left-to-right; they are unnecessary now.
 doc/lispref/display.texi (Specified Space): Mention that `space' specs
 influence bidi reordering.
 (Bidirectional Display): Explain how to use `(space . PROPS)' for
 separating fields with bidirectional content.
2011-08-25 13:45:33 +03:00
Deniz Dogan
a2ebe600c9 * lisp/net/quickurl.el: Documentation typo fixes. 2011-08-25 07:43:57 +02:00
Glenn Morris
b2948976fc * lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix. 2011-08-24 22:37:55 -07:00
Chong Yidong
e4ed06f12b Delete record-buffer, and rename unrecord-buffer to bury-buffer-internal.
* lisp/window.el (bury-buffer, quit-window): Use bury-buffer-internal.

* src/buffer.c (Fbury_buffer_internal): Rename from Funrecord_buffer.
Change return value to nil.
(Frecord_buffer): Delete unused function.
2011-08-24 20:45:23 -04:00
Glenn Morris
e5f1c99e95 Minor smtpmail.el fixes.
* lisp/mail/smtpmail.el (smtpmail-smtp-user): Add version: tag.
(smtpmail-via-smtp): Handle nil response from smtp.
2011-08-24 20:41:03 -04:00
Juri Linkov
f22f4808a0 More uses of error' and warning' faces.
* lisp/battery.el (battery-update): Use the face `error' instead of
`font-lock-warning-face'.

* lisp/ibuffer.el (ibuffer-marked-face): Change default face from
`font-lock-warning-face' to `warning'.
(ibuffer-deletion-face): Change default face from
`font-lock-type-face' to `error'.

* lisp/proced.el (proced-marked): Inherit from `error' instead of
`font-lock-warning-face'.

Fixes: debbugs:6117
2011-08-24 21:09:18 +03:00
Juri Linkov
6a93965ee8 * lisp/faces.el (success): Change face color from "Green3" to
"ForestGreen" on light background.

Fixes: debbugs:9353
2011-08-24 21:01:40 +03:00
Chong Yidong
1ed43b0999 Rename quit-restore-window into quit-window.
* lisp/window.el (quit-window): Renamed from quit-restore-window.  Use
same arglist as old quit-window.
(frame-auto-delete): Doc fix.

* lisp/view.el (view-mode-exit): Use quit-window.
2011-08-24 13:38:46 -04:00
Juri Linkov
11dcdbb283 "C-s M-p" brings the tip of the search ring.
* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.

Fixes: debbugs:9185
2011-08-24 12:40:58 +03:00
Kenichi Handa
de62b4dfd0 international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil. 2011-08-24 16:33:55 +09:00
Stefan Monnier
963b492b63 * lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
from process filters aren't reliably transmitted to the surrounding
accept-process-output.
(mpc-proc-check): New function.
(mpc-proc-sync): Use it

Fixes: debbugs:8293
2011-08-23 21:55:10 -04:00
Stefan Monnier
93b6b5e15d * lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Add compatibility functions.

Fixes: debbugs:9313
2011-08-23 14:53:51 -04:00
Eli Zaretskii
904215d227 cus-start.el: Add :version tag to bidi-paragraph-direction. 2011-08-23 18:53:46 +03:00
Eli Zaretskii
b177498a8a cus-start.el: Add entry for bidi-paragraph-direction. 2011-08-23 18:21:19 +03:00
Eli Zaretskii
bca633fb29 Followup for character properties in 2011-08-23T11:48:07Z!handa@m17n.org.
src/bidi.c (bidi_get_type): Abort if we get zero as the bidi type of
 a character.
 admin/unidata/unidata-gen.el (unidata-prop-alist): Update the default
 values of bidi-class according to DerivedBidiClass.txt from the
 latest UCD.
 lisp/international/uni-bidi.el: Regenerated.
 doc/lispref/nonascii.texi (Character Properties): Document the values for
 unassigned codepoints.
2011-08-23 17:45:14 +03:00
Kenichi Handa
821ff7208c merge trunk 2011-08-23 20:49:03 +09:00
Kenichi Handa
0902a04edd Fix default values of character properties. 2011-08-23 20:48:07 +09:00
Martin Rudalics
3bbf23bc31 Fix message in help-window-setup (Bug#9341).
* help.el (help-window-setup): Fix message displayed when other
window is reused.  (Bug#9341)
2011-08-23 11:31:54 +02:00
Stefan Monnier
1802e44433 * lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko.

Fixes: debbugs:9161
2011-08-23 01:25:17 -04:00