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

101682 Commits

Author SHA1 Message Date
Paul Eggert
6db30f8344 Add gnulib support for pthread_sigmask.
* Makefile.in (GNULIB_MODULES): Add pthread_sigmask.
(GNULIB_TOOL_FLAGS): Avoid sigprocmask.  Emacs does its own
implementation of 'sigprocmask' on Windows, and it assumes
'sigprocmask' on non-Windows hosts, so it doesn't need the
sigprocmask module.
* lib/signal.in.h, m4/pthread_sigmask.m4, m4/signal_h.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Automatically-imported update
due to the above changes.
* .bzrignore: Add lib/signal.h.
2011-07-06 10:58:37 -07:00
Lars Magne Ingebrigtsen
fe20470228 * dabbrev.el (dabbrev-abbrev-char-regexp): Note that nil defaults
to "\\sw\\|\\s_" (bug#358).
2011-07-06 19:45:01 +02:00
Lars Magne Ingebrigtsen
a48868a7d8 * dired.el (dired-mode): Clarify "unmark or unflag".
(dired-unmark-backward): Ditto.
(dired-flag-backup-files): Ditto.

* dired-x.el (dired-mark-sexp): Ditto.

Fixes: debbugs:8770
2011-07-06 19:10:36 +02:00
Lars Magne Ingebrigtsen
84e04a29b9 * NEWS: Clarify that `smtpmail-starttls-credentials' doesn't exist. 2011-07-06 18:50:34 +02:00
Richard M. Stallman
a9a936b988 Fix rmail mime search bug when entity is a string. 2011-07-06 12:48:37 -04:00
Lars Magne Ingebrigtsen
f4f7319875 * emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
of faces when `M-C-x'-ing their definitions.  Also
clean up the code slightly.

Fixes: debbugs:8378
2011-07-06 18:46:27 +02:00
Richard M. Stallman
aa8a705c16 rmailmm.el: record truncated mime entities. 2011-07-06 12:44:33 -04:00
Paul Eggert
596a09585f * m4/alloca.m4: Merge whitespace changes from gnulib. 2011-07-06 09:19:38 -07:00
Lars Magne Ingebrigtsen
12b167347f * progmodes/grep.el (rgrep): Don't bind `process-connection-type', because that makes the colours go away. 2011-07-06 17:49:19 +02:00
Lars Magne Ingebrigtsen
9e87df06a3 (sendmail-query-once): Add an autoload cookie. 2011-07-06 17:45:00 +02:00
Lars Magne Ingebrigtsen
f0691d22b1 * mail/sendmail.el (send-mail-function): Change the default to `sendmail-query-once'. 2011-07-06 17:39:32 +02:00
Lars Magne Ingebrigtsen
1f2b92cb87 * net/network-stream.el (network-stream-open-starttls): Try using
a plain connection even if the server offered STARTTLS, and we
kinda wanted to use it, if Emacs doesn't have any STARTTLS
capability.  This should make smtpmail.el work in slightly more
configurations.
2011-07-06 17:09:11 +02:00
Michael Albinus
1cdd2a1b36 * net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window): New defun.
* net/tramp-cmds.el (tramp-append-tramp-buffers): Use it.
2011-07-06 11:48:20 +02:00
Julien Danjou
53d2167130 * url-cache.el (url-cache-extract): Set buffer multibyte flag to
nil (bug#8827).
2011-07-06 09:47:15 +02:00
Michael Mauger
fbcc67e2aa * progmodes/sql.el: Version 3.0
(sql-product-alist): Added product :completion-object,
	:completion-column, and :statement attributes.
	(sql-mode-menu, sql-interactive-mode-map): Fixed List entries.
	(sql-mode-syntax-table): Mark all punctuation.
	(sql-font-lock-keywords-builder): Temporarily removed fallback on
	ansi keywords.
	(sql-regexp-abbrev, sql-regexp-abbrev-list): New functions.
	(sql-mode-oracle-font-lock-keywords): Improved.
	(sql-oracle-show-reserved-words): New function for development.
	(sql-product-font-lock): Simplify for source code buffers.
	(sql-product-syntax-table, sql-product-font-lock-syntax-alist):
	New functions.
	(sql-highlight-product): Set product specific syntax table.
	(sql-mode-map): Added statement movement functions.
	(sql-ansi-statement-starters, sql-oracle-statement-starters): New
	variable.
	(sql-statement-regexp, sql-beginning-of-statement)
	(sql-end-of-statement, sql-signum): New functions.
	(sql-buffer-live-p, sql=find-sqli-buffer): Added CONNECTION
	parameter.
	(sql-show-sqli-buffer): Bug fix.
	(sql-interactive-mode): Store connection data as buffer local.
	(sql-connect): Added NEW-NAME parameter.  Redesigned interaction
	with sql-interactive-mode.
	(sql-save-connection): Save buffer local settings.
	(sql-connection-menu-filter): Changed menu entry name.
	(sql-product-interactive): Bug fix.
	(sql-preoutput-hold): New variable.
	(sql-interactive-remove-continuation-prompt): Bug fixes.
	(sql-debug-redirect): New variable.
	(sql-str-literal): New function.
	(sql-redirect, sql-redirect-one, sql-redirect-value, sql-execute):
	Redesigned.
	(sql-oracle-save-settings, sql-oracle-restore-settings)
	(sql-oracle-list-all, sql-oracle-list-table): New functions.
	(sql-completion-object, sql-completion-column)
	(sql-completion-sqlbuf): New variables.
	(sql-build-completions-1, sql-build-completions)
	(sql-try-completion): New functions.
	(sql-read-table-name): Use them.
	(sql-contains-names): New buffer local variable.
	(sql-list-all, sql-list-table): Use it.
	(sql-oracle-completion-types): New variable.
	(sql-oracle-completion-object, sql-sqlite-completion-object)
	(sql-postgres-completion-object): New functions.
2011-07-05 23:51:48 -04:00
Glenn Morris
d4eaeab175 * lisp/window.el (pop-to-buffer): Doc fix. 2011-07-05 19:46:22 -07:00
Glenn Morris
929ca92503 * gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Silence compiler. 2011-07-05 19:45:24 -07:00
Glenn Morris
322b7dab59 Merge from emacs-23; up to 2010-06-16T23:27:20Z!jay.p.belanger@gmail.com. 2011-07-05 19:42:10 -07:00
Glenn Morris
38fe4016d4 ChangeLog fix. 2011-07-05 19:34:08 -07:00
Lars Magne Ingebrigtsen
509542f35f gnus.el (gnus-summary-line-format): Link to "Marking Articles" instead of "Read Articles". 2011-07-05 23:06:11 +00:00
Lars Magne Ingebrigtsen
0c502747c4 gnus.texi (Filtering New Groups): Clarify how simple the "options -n" format is.
(Agent Expiry): Remove mention of `gnus-request-expire-articles', which is internal.
2011-07-05 22:49:25 +00:00
Gnus developers
d30dd079c9 Merge changes made in Gnus trunk.
gnus.texi (Expiring Mail): Document gnus-auto-expirable-marks.
nnir.el (nnir-notmuch-program, nnir-notmuch-additional-switches, nnir-notmuch-remove-prefix, nnir-engines, nnir-run-notmuch): New nnir `notmuch' backend.
mm-decode.el (mm-text-html-renderer): Doc fix.
gnus-msg.el (gnus-bug): Fix the MML tag.
pop3.el (pop3-open-server): -ERR is a valid response to CAPA.
gnus-start.el (gnus-get-unread-articles): Don't connect to the secondary methods if started with `gnus-no-server'.
gnus-group.el (gnus-read-ephemeral-bug-group): Allow fetching several bug reports at once.
2011-07-05 22:27:16 +00:00
Lars Magne Ingebrigtsen
0e4260bf5d * gnus.el (gnus-refer-article-method): Remove mention of nnspool, which
no longer is much used.
2011-07-05 23:03:54 +02:00
Chong Yidong
605dd5bf4d * lisp/button.el (button): Inherit from link face.
Suggested by Dan Nicolaescu.
2011-07-05 16:44:55 -04:00
Stefan Monnier
3db614b0e4 * lisp/progmodes/gdb-mi.el: Fit in 80 columns.
(gdb-setup-windows, gdb-restore-windows): Avoid other-window and
switch-to-buffer.
2011-07-05 14:58:33 -04:00
Stefan Monnier
7dbfa7197c * lisp/progmodes/which-func.el (which-func-ff-hook): Don't output a message
if imenu is simply not configured.

Fixes: debbugs:8941
2011-07-05 14:56:31 -04:00
Ken Manheimer
919d884a6d * allout.el (allout-post-undo-hook): New allout outline-change event hook
to signal undo activity.
(allout-post-command-business): Run allout-post-undo-hook if an undo just
occurred.
(allout-after-copy-or-kill-hook), (allout-mode): Minor docstring changes.

* allout-widgets.el (allout-widgets-after-undo-function): Ensure the
integrity of the current item's decoration after it has been in the
vicinity of an undo.
(allout-widgets-mode): Include allout-widgets-after-undo-function on the
new allout-post-undo-hook.
2011-07-05 14:54:08 -04:00
Stefan Monnier
450a0f0927 * lisp/emacs-lisp/lisp-mode.el (lisp-interaction-mode-abbrev-table):
Let define-derived-mode define it.
* lisp/emacs-lisp/derived.el (define-derived-mode): Try to avoid creating
cycles of abbrev-table inheritance.

Fixes: debbugs:8998
2011-07-05 14:26:33 -04:00
Roland Winkler
2de69e00f3 lisp/textmodes/bibtex.el: add support for biblatex 2011-07-05 12:44:15 -05:00
Stefan Monnier
2dcdbdd97d Fix some uses of switch-to-buffer.
* lisp/progmodes/compile.el (compilation-goto-locus):
* lisp/net/tramp-cmds.el (tramp-append-tramp-buffers):
* lisp/bs.el (bs-cycle-next, bs-cycle-previous):
* lisp/bookmark.el (bookmark-bmenu-list, bookmark-bmenu-2-window):
* lisp/bindings.el (mode-line-other-buffer):
* lisp/autoinsert.el (auto-insert):
* lisp/arc-mode.el (archive-extract):
* lisp/abbrev.el (edit-abbrevs): Fix some uses of switch-to-buffer.
2011-07-05 11:31:22 -04:00
Chong Yidong
73fed7aeda Revert last change (2011-07-05T14:25:21Z!larsi@gnus.org). 2011-07-05 11:23:15 -04:00
Juanma Barranquero
b27640fef2 * emacs-lock.el (emacs-lock-mode): Fix typo in variable name.
Fix check of `emacs-lock-unlockable-modes'.
  Coerce true values of `emacs-lock--try-unlocking' to t.
2011-07-05 17:09:19 +02:00
Lars Magne Ingebrigtsen
bad327838e * font-lock.el (font-lock-builtin-face): Change from Orchid to
MediumBlue on light-coloured backgrounds to avoid confusion with
the doc string.

Fixes: debbugs:6693
2011-07-05 16:25:21 +02:00
Juanma Barranquero
a1479eac56 lisp/emacs-lock.el: Add back code accidentally replaced with garbage. 2011-07-05 14:05:06 +02:00
Juanma Barranquero
53bbe3ad4c lisp/emacs-lock.el: New file. Old one moved to lisp/obsolete/. 2011-07-05 13:38:44 +02:00
Glenn Morris
0d939f4027 Auto-commit of loaddefs files. 2011-07-05 06:24:56 -04:00
Glenn Morris
17410582df Auto-commit of generated files. 2011-07-05 06:19:43 -04:00
Julien Danjou
1d3cdbc7be * textmodes/rst.el (rst-define-level-faces): Use `facep' rather
than `boundp' to check if face is set.
2011-07-05 12:02:48 +02:00
Juanma Barranquero
9173deecd8 Fix typos. 2011-07-05 11:51:56 +02:00
Jan Djärv
869795d6b5 Use GConf and GSettings both, check GConf/GSettings toolbar style and font name.
* configure.in (HAVE_GCONF): Allow both HAVE_GCONF and HAVE_GSETTINGS.

* lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event): 
Update doc string.

* src/xsettings.c: Use both GConf and GSettings if both are available.
(store_config_changed_event): Add comment.
(dpyinfo_valid, store_font_name_changed, map_tool_bar_style)
(store_tool_bar_style_changed): New functions.
(store_monospaced_changed): Add comment. Call dpyinfo_valid.
(struct xsettings): Move font inside HAVE_XFT.
(GSETTINGS_TOOL_BAR_STYLE, GSETTINGS_FONT_NAME): New defines.
(GSETTINGS_MONO_FONT): Renamed from SYSTEM_MONO_FONT.
Move inside HAVE_XFT.
(something_changed_gsettingsCB): Renamed from something_changedCB.
Check for changes in GSETTINGS_TOOL_BAR_STYLE and GSETTINGS_FONT_NAME
also.
(GCONF_TOOL_BAR_STYLE, GCONF_FONT_NAME): New defines.
(GCONF_MONO_FONT): Renamed from SYSTEM_MONO_FONT. Move inside HAVE_XFT.
(something_changed_gconfCB): Renamed from something_changedCB.
Check for changes in GCONF_TOOL_BAR_STYLE and GCONF_FONT_NAME also.
(parse_settings): Move check for font inside HAVE_XFT.
(read_settings, apply_xft_settings): Add comment.
(read_and_apply_settings): Add comment.  Call map_tool_bar_style and
store_tool_bar_style_changed.  Move check for font inside HAVE_XFT and
call store_font_name_changed.
(xft_settings_event): Add comment.
(init_gsettings): Add comment.  Get values for GSETTINGS_TOOL_BAR_STYLE
and GSETTINGS_FONT_NAME.  Move check for fonts within HAVE_XFT.
(init_gconf): Add comment.  Get values for GCONF_TOOL_BAR_STYLE
and GCONF_FONT_NAME.  Move check for fonts within HAVE_XFT.
(xsettings_initialize): Call init_gsettings last.
(xsettings_get_system_font, xsettings_get_system_normal_font): Add
comment.
2011-07-05 10:21:38 +02:00
Manoj Srivastava
3ca5c03fb1 * themes/manoj-dark-theme.el (manoj-dark): New file. 2011-07-04 23:02:06 -04:00
Paul Eggert
d8ed26bd07 Random fixes. E.g., (random) never returned negative values.
* fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
subseconds part to the entropy, as that's a bit more random.
Prefer signed to unsigned, since the signedness doesn't matter and
in general we prefer signed.  When given a limit, use a
denominator equal to INTMASK + 1, not to VALMASK + 1, because the
latter isn't right if USE_2_TAGS_FOR_INTS.
* sysdep.c (get_random): Return a value in the range 0..INTMASK,
not 0..VALMASK.  Don't discard "excess" bits that random () returns.
2011-07-04 19:51:15 -07:00
Juanma Barranquero
b768cdcd31 lisp/server.el: Catch quit and close the connection (bug#8942). 2011-07-05 00:40:03 +02:00
Ken Manheimer
13aa217bac * allout.el (allout-encrypt-unencrypted-on-saves): Do not provide insecure
exception for current topic.  Also note that auto-saves are handled
differently.

(allout-auto-save-temporarily-disabled), (allout-just-did-undo): State
variables for tracking auto-save inhibition situation.

(allout-write-contents-hook-handler): Rename from
'allout-write-file-hook-handler', and describe how it depends on
write-contents-functions sensitivity to non-nil value to prevent file
write.

(allout-auto-save-hook-handler): Remove.  auto-save does not check this in
individual buffers, only in the starting buffer, so this is not the right
way for us to inhibit auto-save in a buffer according to its condition.

(allout-mode): Use new allout-write-contents-hook-handler, and only with
write-contents-functions.  Remove auto-save provisions - they're
implemented elsewhere.

(allout-before-change-handler): If undo is in progress, note that for
attention of allout-post-command-business.

(allout-post-command-business): If the command we're following was an undo,
check for change in the status of encrypted items and adjust auto-save
inhibitions accordingly.

(allout-toggle-subtree-encryption): Adjust auto-save inhibition according
to whether there are or aren't any plain-text topics pending encryption.

(allout-inhibit-auto-save-info-for-decryption): Adjust buffer-saved-size
and some allout state to inhibit auto-saves if there are plain-text topics
pending encryption.

(allout-maybe-resume-auto-save-info-after-encryption): Adjust
buffer-saved-size and some allout state to not inhibit auto-saves if there
are no longer any plain-text topics pending encryption.

(allout-next-topic-pending-encryption), (allout-encrypt-decrypted): No
longer provide for exemption of the current topic.
2011-07-04 18:16:10 -04:00
Juri Linkov
ac89b32c15 Add 7z operations to delete and save changed members.
* lisp/arc-mode.el (archive-7z-expunge, archive-7z-update):
New defcustoms.
(archive-7z-write-file-member): New function.
(archive-7z-summarize): Fix the number of dashes in the
listing output.

Fixes: debbugs:8968
2011-07-05 01:11:40 +03:00
Chong Yidong
d66fef2b45 * bindings.el: Ignore next-buffer and previous-buffer in minibuffer-local-map. 2011-07-04 16:45:22 -04:00
Stefan Monnier
8fa396153b * lisp/pcmpl-linux.el (pcomplete-pare-list): Re-add, from pcomplete.el.
Fixes: debbugs:8958
2011-07-04 16:08:02 -04:00
Chong Yidong
2f11b3f1ce * font-lock.el (font-lock-builtin-face): Change light background color
to dark slate blue.

Fixes: debbugs:6693
2011-07-04 16:00:56 -04:00
Stefan Monnier
cabf1cac90 * textprop.c (text_property_stickiness): Obey Vtext_property_default_nonsticky.
(syms_of_textprop): Add `display' to Vtext_property_default_nonsticky.
* w32fns.c (syms_of_w32fns):
* xfns.c (syms_of_xfns): Don't Add `display' since it's there by default.
2011-07-04 14:31:29 -04:00
Wang Diancheng
f932a34784 * lisp/progmodes/gdb-mi.el (gdb): Use completion-at-point. 2011-07-04 13:50:55 -04:00