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

103581 Commits

Author SHA1 Message Date
Stefan Monnier
c935221f0b * lisp/isearch.el (isearch-yank-x-selection): Deactivate mark.
Fixes: debbugs:10022
2011-11-29 13:39:16 -05:00
Jan Djärv
2b56b87e02 * xterm.c (handle_one_xevent): Only set async_visible and friends
if net_wm_state_hidden_seen is non-zero
(get_current_wm_state):  Set net_wm_state_hidden_seen to 1 if
_NET_WM_STATE_HIDDEN is in NET_WM_STATE.

* xterm.h (struct x_output): net_wm_state_hidden_seen is new.

Fixes: debbugs:10002
2011-11-29 19:08:53 +01:00
Chong Yidong
e70b5064d7 Update doc for behavior of TAB in Text based modes.
* lisp/indent.el (indent-for-tab-command, indent-according-to-mode): Doc fix.
(indent-region): Doc fix.  Switch nested ifs to equivalent cond.
2011-11-29 23:55:54 +08:00
Michael Albinus
f3af92b794 * vc/diff-mode.el (diff-find-file-name): Make `read-file-name'
aware of remote file names.  (Bug#10124)
2011-11-29 15:59:24 +01:00
Chong Yidong
ed472be992 * frame.el (auto-raise-mode, auto-lower-mode): Doc fix. 2011-11-29 14:07:51 +08:00
Stefan Monnier
24510c22a3 * lisp/files.el (find-file): Don't use force-same-window.
* lisp/window.el (switch-to-buffer): Better match Emacs-23 behavior and only
use pop-to-buffer if the selected window can't be used.
(pop-to-buffer-same-window): Use display-buffer--same-window-action.

Fixes: debbugs:10144
2011-11-28 14:43:52 -05:00
Eli Zaretskii
c60c3703ac Prevent Diff Mode from stealing M-z binding.
lisp/vc/diff-mode.el (diff-mode-map): Don't inherit 'z' => 'M-z' from
 special-mode-map.
2011-11-28 20:03:11 +02:00
Chong Yidong
b22b191862 Updates to Text chapter of manual.
* doc/emacs/text.texi (Words): Add xref to Position Info.
(Paragraphs): Add xref to Regexps.
2011-11-28 23:28:04 +08:00
Glenn Morris
e15c184e28 Auto-commit of generated files. 2011-11-28 06:18:31 -05:00
Chong Yidong
6d26297754 Update Indentation chapter of Emacs manual.
* indent.texi (Indentation): Rewrite introduction.  Move table to
Indentation Commands node.
(Indentation Commands): Add index entries to table.  Copyedits.
(Tab Stops, Just Spaces): Copyedits.
(Indent Convenience): New node.  Document electric-indent-mode.

* programs.texi (Basic Indent):
* windows.texi (Pop Up Window): Fix kindex entry.
2011-11-28 19:12:00 +08:00
Julien Danjou
3c2727e807 erc-dcc: allow SEND commands containing quoted filenames with spaces in them
* erc-dcc.el (erc-dcc-ctcp-query-send-regexp): Updated regexp to
match quoted filenames with spaces inside.
(erc-dcc-handle-ctcp-send): Updated regexp match group numbers,
added processing of escaped quotes and backslashes if filename
itself was in quotes.
2011-11-28 10:24:08 +01:00
Paul Eggert
dbf312256d Remove GCPRO-related macros that exist only to avoid shadowing locals.
* lisp.h (GCPRO1_VAR, GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR)
(GCPRO6_VAR, UNGCPRO_VAR): Remove.  See
<http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
All uses changed to use GCPRO1 etc.
(GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6, UNGCPRO):
Revert to old implementation (i.e., before 2011-03-11).
2011-11-28 00:20:58 -08:00
Chong Yidong
e95def75e4 * emacs-lisp/easy-mmode.el (define-minor-mode): Fix default doc. 2011-11-28 14:26:39 +08:00
Chong Yidong
dc95a8b0de More updates to Modes chapter of Emacs manual.
* doc/emacs/modes.texi (Major Modes): Move major-mode variable doc here from
Choosing Modes.  Document describe-mode.  Document prog-mode-hook
and text-mode-hook.  Add example of using hooks.
(Minor Modes): Document behavior of mode command calls from Lisp.
Note that setting the mode variable using Customize will DTRT.
(Choosing Modes): Add example of setting a minor mode using a
local variable.
2011-11-28 14:24:48 +08:00
YAMAMOTO Mitsuharu
1305621bc2 Truncate scroll runs that copy to where we copied to.
* dispnew.c (scrolling_window): Truncate overlaps in copy destination
of scroll runs so as to avoid assigning disabled bogus rows and
unnecessary graphics copy operations.
2011-11-28 10:07:01 +09:00
Eli Zaretskii
8c9afb4694 Fix MS-Windows build with MSVC compiler.
Parts of the changes by Fabrice Popineau  <fabrice.popineau@supelec.fr>.

 lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).
 lib-src/emacsclient.c (main) <environ>: Remove declaration, already
 pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows.
 nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs.
 (UINT64_MAX) [_WIN64]: Fix definition.
 (uintmax_t, intmax_t): Fix definitions.
 nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide
 correct definitions.
 nt/config.nt (HAVE_DECL_STRTOLL): Define.
 (va_copy) [_WIN64]: Provide a better definition.
 src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define.
 (snprintf) [_MSC_VER]: Redirect to _snprintf.
 (strtoll) [_MSC_VER]: Redirect to _strtoi64.
 (malloc, free, realloc, calloc): Redirect to e_* only when
 compiling Emacs.
 src/lisp.h (GCTYPEBITS): Move before first use.
 (ALIGN_GCTYPEBITS) [_MSC_VER]: Define.
 (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in
 this macro definition.
 (tzname): Redirect to _tzname for all values of _MSC_VER.

Fixes: debbugs:9960
2011-11-27 20:52:53 +02:00
Jan Djärv
54e9e3bf84 Work around an Ubuntu 11.10 bug where Emacs loops forever when started.
* configure.in: Check for gtk_window_set_has_resize_grip.

* src/gtkutil.c (xg_create_frame_widgets): Call
gtk_window_set_has_resize_grip (FALSE) if that function is
present with Gtk+ 2.0.
2011-11-27 19:33:17 +01:00
Paul Eggert
e9a452d9cd Spelling fixes (mostly "inactive" vs "deactivate"). 2011-11-27 10:17:40 -08:00
Nick Roberts
c3f1c606c9 progmodes/gdb-mi.el (gdb-init-1): Condition execution of gdb-get-source-file-list on gdb-create-source-file-list. 2011-11-27 21:33:25 +13:00
Chong Yidong
b63a8e8ed5 More updates for the Frames chapter in Emacs manual.
* doc/emacs/frames.texi (Creating Frames): Move frame parameter example to
Frame Parameters node.
(Frame Commands): C-x 5 o does not warp the mouse by default.
(Fonts): Add more GTK-style properties; also, they should be
capitalized.
(Special Buffer Frames): Node deleted; special-display is on the
way out.
(Frame Parameters): Example moved here from Creating Frames.
Clarify that default-frame-alist affects the initial frame too.
Delete auto-raise-mode and auto-lower-mode.
(Wheeled Mice): Node deleted.  Content moved to Mouse Commands.
(Dialog Boxes): Delete x-gtk-use-old-file-dialog.

* doc/emacs/windows.texi (Window Choice): Add xref to Lisp manual for
special-display-*.
2011-11-27 16:22:37 +08:00
Paul Eggert
e47695319f Spelling fixes. 2011-11-26 20:43:11 -08:00
Paul Eggert
83aca1cb69 * fileio.c (Finsert_file_contents): Undo previous change.
See <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
2011-11-26 13:40:41 -08:00
Eli Zaretskii
579ebf8ff0 Clarify documentation of wrap-prefix and line-prefix.
doc/lispref/display.texi (Truncation):
 doc/lispref/text.texi (Special Properties): Describe what a stretch-glyph is
 instead of using that term without explanation.  Make the
 cross-references more accurate.
2011-11-26 16:07:22 +02:00
Eli Zaretskii
a3dcc84e76 Update and enhance documentation of display of control characters.
doc/emacs/display.texi (Text Display): Update the description,
 cross-references, and indexing related to display of control
 characters and raw bytes.
 doc/lispref/display.texi (Usual Display): Update the description,
 cross-references, and indexing related to display of control
 characters and raw bytes.
2011-11-26 15:51:58 +02:00
Eli Zaretskii
394305db34 src/dispnew.c (update_window): Fix outdated commentary. 2011-11-26 15:11:03 +02:00
Andreas Schwab
303d001fea * grammars/bovine-grammar.el (bovine--grammar-newstyle-unquote):
Avoid warning about old-style backquote.
2011-11-26 10:10:36 +01:00
Andreas Schwab
509c74bd24 * grammars/bovine-grammar.el (auto-mode-alist): Change $' to \''
in regexp.
(bovine-make-parsers): Likewise.  Quote `.'.

* grammars/wisent-grammar.el (auto-mode-alist): Change `$' to `\''
in regexp.
(wisent-make-parsers): Likewise.  Quote `.'.
2011-11-26 10:10:36 +01:00
Eli Zaretskii
00db469c65 Tweak whitespace-newline color for 16-color displays.
lisp/whitespace.el (whitespace-newline): Use a different foreground
 color for 16-color light-background displays.
2011-11-26 10:50:48 +02:00
Paul Eggert
b0b199744d Spelling fixes. 2011-11-26 00:26:37 -08:00
Paul Eggert
5b76caa476 Rename locals to avoid shadowing.
* fileio.c (Finsert_file_contents):
Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing.
* process.c (wait_reading_process_output):
Rename inner 'proc' to 'p' to avoid shadowing.
Indent for consistency with usual Emacs style.
2011-11-25 23:42:44 -08:00
Chong Yidong
78adbf9c3f Add grammar files for grammar-wy.el and wrt-wy.el.
Regenerate the relevant CEDET parsers.

* admin/grammars/bovine-grammar.el:
* admin/grammars/wisent-grammar.el: Add scripts for generating the parsers.
2011-11-26 14:28:10 +08:00
Eli Zaretskii
91b4a71898 Fix bug #10119 with C-e and whitespace-mode.
src/xdisp.c (start_display): Don't move to the next line if the display
 should start at a newline that is part of a display vector or an overlay
 string.
2011-11-25 21:52:46 +02:00
Chong Yidong
4ad3bc2a22 Fixes and updates for Frames chapter in Emacs manual.
* doc/emacs/files.texi (Visiting): `C-x 5 f' works on ttys too.

* doc/emacs/frames.texi (Frames): Rewrite introduction.
(Mouse Commands): Default for mouse-drag-copy-region is now t.
The mouse-save-then-kill-command does not copy to kill ring by
default.  Behavior of DEL is not special to mouse commands now.
(Mouse References): Document mouse-1-click-follows-link more
thoroughly.
(Menu Mouse Clicks): Move footnote to the main text and add xref
to Init Rebinding node.
(Mode Line Mouse): Mouse-3 on the mode-line does not bury buffer.

* lisp/window.el (display-buffer--special-action): Minor doc fix.
2011-11-25 23:43:34 +08:00
Eli Zaretskii
5c730f48c5 Fix a thinko in 2011-11-25T11:32:14Z!eliz@gnu.org. 2011-11-25 17:22:30 +02:00
Martin Rudalics
94af99a4bf Fix description of window-combination-limit.
* windows.texi (Splitting Windows): Fix description of
window-combination-limit.  Suggested by Eli Zaretskii.
2011-11-25 15:24:05 +01:00
Juanma Barranquero
e9fce1acd8 Fix typos. 2011-11-25 14:26:30 +01:00
Eli Zaretskii
034ea24ddb nt/INSTALL: Elaborate on debugging fatal errors. 2011-11-25 14:17:33 +02:00
Eli Zaretskii
8c535114e2 Fix bug #10105 with Isearch triggered scrolling under scroll-conservatively.
src/xdisp.c (redisplay_window): If cursor row is not fully visible
 after recentering, and scroll-conservatively is set to a large
 number, scroll window by a few more lines to make the cursor fully
 visible and out of scroll-margin.
2011-11-25 13:32:14 +02:00
Paul Eggert
e4920bc99d Spelling fixes. 2011-11-24 23:14:48 -08:00
Juri Linkov
fa4fdb5ca5 * src/image.c (imagemagick_load_image): Move `MagickSetResolution' down
after the `MagickPingImage' call.

Fixes: debbugs:10112
2011-11-24 21:02:39 +02:00
Glenn Morris
82727ea451 Auto-commit of loaddefs files. 2011-11-24 06:24:59 -05:00
Glenn Morris
2b8e5146e5 Auto-commit of generated files. 2011-11-24 06:19:06 -05:00
Glenn Morris
3adbe22462 Give some autoloaded things doc-strings.
* lisp/lpr.el (lpr-windows-system, lpr-lp-system):
* lisp/mail/binhex.el (binhex-begin-line):
* lisp/progmodes/grep.el (grep-history, grep-find-history):
* lisp/textmodes/flyspell.el:
* lisp/vc/pcvs-defs.el (cvs-global-menu):
* lisp/vc/vc-bzr.el (vc-bzr-admin-checkout-format-file):
* lisp/vc/vc-mtn.el (vc-mtn-admin-dir, vc-mtn-admin-format):
* lisp/vc/vc-cvs.el (vc-cvs-registered): Give them basic doc-strings.
2011-11-24 00:21:03 -08:00
Glenn Morris
321decc890 Fix case of "GnuTLS" in docs.
* doc/misc/gnus.texi, doc/misc/smtpmail.texi:
* etc/NEWS:
* lisp/gnus/starttls.el, lisp/net/tls.el: Fix case of "GnuTLS".
2011-11-23 23:44:51 -08:00
Glenn Morris
420b63ad29 * lib-src/make-docfile.c (scan_lisp_file): Treat defcustom like defvar.
* lisp/paths.el (rmail-file-name): Format doc-string for make-docfile.
2011-11-23 23:32:40 -08:00
Glenn Morris
cb825e5d7b * lisp/version.el (emacs-build-system): Give it a doc-string.
Consolidate local variables at the end of the file.
2011-11-23 23:24:31 -08:00
Juri Linkov
a0649f084c * lisp/view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011-07-19.
Fixes: debbugs:8615
2011-11-24 09:09:56 +02:00
Glenn Morris
c0bc0fd4ff Make rmail-mime toggle headers of non-mime messages.
* lisp/mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil,
if called on a non-mime message just toggle the headers.

Fixes: debbugs:8006
2011-11-23 19:59:09 -08:00
Juanma Barranquero
f8107b7939 doc/lispintro/makefile.w32-in, doc/misc/makefile.w32-in: Update dependencies. 2011-11-24 03:22:09 +01:00
Juanma Barranquero
20db1522fe Fix typos. 2011-11-24 02:58:14 +01:00