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

20013 Commits

Author SHA1 Message Date
Juanma Barranquero
5f4b1dfefa lisp/misc.el: Implement new command `list-dynamic-libraries'.
* misc.el (list-dynamic-libraries--loaded-only-p): New variable.
  (list-dynamic-libraries--refresh): New function.
  (list-dynamic-libraries): New command.
2011-05-09 17:52:57 +02:00
Chong Yidong
4c44026c14 Various fixes to compilation-error-regexp-alist-alist.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix
the ant regexp to handle end-line and end-column info from jikes.
Re-introduce maven regexp.  Give the ruby-Test::Unit regexp a
higher priority to avoid clobbering by gnu.
2011-05-08 21:24:00 -04:00
Chong Yidong
027f966de4 Handle calling defface on a face with existing theme settings (Bug#8454).
* lisp/cus-face.el (custom-declare-face): Call custom-theme-recalc-face if
the face has existing theme settings.
2011-05-08 16:07:38 -04:00
Ralph Schleicher
2a86a00c4f Expand file names during browse-url-of-dired-file (Bug#8259).
* lisp/net/browse-url.el (browse-url-of-dired-file): Allow browsing of
special file names `.' and `..'.
2011-05-08 14:34:51 -04:00
Chong Yidong
085f5d7dca Handle "my" and "our" keywords in Perl imenu (Bug#8261).
* progmodes/perl-mode.el (perl-imenu-generic-expression): Only match
variables declared via `my' or `our'.
2011-05-08 14:23:11 -04:00
Chong Yidong
d9c54a06a0 Perform grep-mode's buffer modifications in a process filter (Bug#7952)
* progmodes/grep.el (grep-mode-font-lock-keywords): Remove
buffer-changing entries.
(grep-filter): New function.
(grep-mode): Add it to compilation-filter-hook.

* progmodes/compile.el (compilation-filter-hook)
(compilation-filter-start): New defvars.
(compilation-filter): Call compilation-filter-hook prior to
updating the process mark.
2011-05-08 01:17:17 -04:00
Stefan Monnier
c46626351c * lisp/emacs-lisp/eieio.el (defmethod): Fix typo in last change. 2011-05-07 23:33:28 -03:00
Eli Zaretskii
605c937661 Fix bug #8595 with setting mailclient-send-it on MS-Windows.
lisp/mail/sendmail.el (send-mail-function): On MS-Windows, default to
 mailclient-send-it even if window-system is nil.
2011-05-07 20:58:40 +03:00
Glenn Morris
89c41d686f Remove (tiny change) marker from author now with general assignment, 2011-05-07 10:39:44 -07:00
Eli Zaretskii
b0512a1d79 Fix bug #8597 with setting frame background mode on w32 console.
src/w32console.c (Fset_screen_color): Doc fix.
 (Fget_screen_color): New function.
 (syms_of_ntterm): Defsubr it.
 lisp/term/w32console.el (terminal-init-w32console): Call
 get-screen-color and use its output to set the frame
 background-mode.
2011-05-07 18:44:19 +03:00
Stefan Monnier
d1dc2cc2ce Make bytecomp.el understand that defmethod defines functions.
* lisp/emacs-lisp/eieio.el (eieio--defalias, eieio--defgeneric-init-form):
New functions.
(defgeneric, eieio--defmethod): Use them.
(eieio-defgeneric): Remove.
(defmethod): Call defgeneric in a way visible to the byte-compiler.

Fixes: debbugs:8631
2011-05-07 01:03:49 -03:00
Glenn Morris
a3961c3e4d timeclock.el trivia.
* lisp/calendar/timeclock.el (timeclock-log-data): Remove unused local.
Use let rather than let*.
(timeclock-find-discrep): Remove unused local.
2011-05-06 18:24:04 -07:00
Glenn Morris
314347b9ab * lisp/calendar/diary-lib.el (diary-comment-start): Doc fix. 2011-05-06 18:20:47 -07:00
Glenn Morris
915d130021 * lisp/calendar/appt.el (appt-time-msg-list): Doc fix. 2011-05-06 18:19:27 -07:00
Noah Friedman
275b59b05d apropos.el (apropos-print-doc): Only use emacs-lisp-docstring-fill-column when it is bound to an integer, per that variable's documentation. 2011-05-06 12:59:17 -07:00
Stefan Monnier
6c19f744bb * lisp/lpr.el (print-region-1): Echo lpr-program's output, so error messages
and warnings are not silently discarded (e.g. use "-d" instead of "-P").
2011-05-06 13:38:02 -03:00
Glenn Morris
5006e6344a Allow per-appointment warning times.
* lisp/calendar/appt.el (appt-message-warning-time): Doc fix.
(appt-warning-time-regexp): New option.
(appt-make-list): Respect appt-message-warning-time.

* doc/emacs/calendar.texi (Appointments): Mention appt-warning-time-regexp.

* etc/NEWS: Mention this.
2011-05-06 00:14:30 -07:00
Glenn Morris
548d0a63d6 Add diary comments feature.
* lisp/calendar/diary-lib.el (diary-comment-start, diary-comment-end):
New options.
(diary-add-to-list): Strip comments from the displayed string.
(diary-mode): Set comment-start and comment-end.

* doc/emacs/cal-xtra.texi (Fancy Diary Display): Mention diary comments.

* etc/NEWS: Mention this.
2011-05-05 21:28:53 -07:00
Glenn Morris
60f884b214 Silence diff-mode.el compilation.
* lisp/vc/diff-mode.el (smerge-refine-subst): Declare.
(diff-refine-hunk): Don't require smerge-mode when compiling.
2011-05-05 21:07:47 -07:00
Juanma Barranquero
989681bbb6 lisp/simple.el (list-processes): Return nil as the docstring says. 2011-05-06 03:02:49 +02:00
Michael Albinus
a6bc05e123 * net/ange-ftp.el (ange-ftp-binary-file-name-regexp): Set default to "".
(ange-ftp-write-region, ange-ftp-insert-file-contents)
(ange-ftp-copy-file-internal): Use only `ange-ftp-binary-file' for
determining of binary transfer.  (Bug#7383)
2011-05-05 12:22:14 +02:00
Michael Albinus
23c22e9aa1 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix
port computation bug.  (Bug#8618)
2011-05-05 11:48:43 +02:00
Glenn Morris
b829690275 * allout-widgets.el (allout-widgets-mode-inhibit): Declare before use. 2011-05-04 23:53:29 -07:00
Glenn Morris
1f522ce806 Declarations in simple.el.
* lisp/simple.el (shell-dynamic-complete-functions)
(comint-dynamic-complete-functions): Declare.
2011-05-04 23:50:24 -07:00
Glenn Morris
cf5bee67f9 Declaration fixes.
* lisp/net/network-stream.el (gnutls-negotiate): Fix declaration.

* lisp/simple.el (tabulated-list-print): Fix declaration.

* lisp/progmodes/gud.el (syntax-symbol, syntax-point):
Remove unnecessary and incorrect declarations.
2011-05-04 23:35:41 -07:00
Glenn Morris
0bff894fc1 Small check-declare fix.
* lisp/emacs-lisp/check-declare.el (check-declare-scan):
Handle byte-compile-initial-macro-environment in bytecomp.el
2011-05-04 23:27:24 -07:00
Glenn Morris
40c67c6dee ChangeLog merge fix, grumble. 2011-05-04 23:25:24 -07:00
Glenn Morris
f7ff1b0f07 Merge from emacs-23; up to 2010-06-10T05:17:21Z!rgm@gnu.org. 2011-05-04 21:00:38 -07:00
Stefan Monnier
9869b3ae6b Fix earlier half-done eieio-defmethod change.
* lisp/emacs-lisp/eieio.el (eieio--defmethod): Rename from eieio-defmethod.
Streamline and change calling convention.
(defmethod): Adjust accordingly and simplify.
(eieio-defclass): Fix broken calls to eieio-defmethod and redirect to
new eieio--defmethod.
(slot-boundp): Minor CSE simplification.

Fixes: debbugs:8338
2011-05-05 00:42:09 -03:00
Milan Zamazal
9c1d5ac586 Small addition to glasses.el (bug#8524)
* lisp/progmodes/glasses.el (glasses-separate-capital-groups): New option.
(glasses-make-readable): Use glasses-separate-capital-groups.
2011-05-04 20:26:55 -07:00
Juanma Barranquero
455c834e68 lisp/emacs-lisp/warnings.el: Tiny fixes.
* emacs-lisp/warnings.el (warning-level-aliases): Reflow docstring.
  (warning-series): Doc fix.
  (display-warning): Don't try to create the buffer if we just found it.
2011-05-05 02:06:10 +02:00
Chong Yidong
9ed7c8cbce Make autoloading commands prompt for autoload file (Bug#7989)
* emacs-lisp/autoload.el (generated-autoload-file): Set to nil.
(autoload-find-generated-file): New function.
(generate-file-autoloads): Bind generated-autoload-file to
buffer-file-name.
(update-file-autoloads, update-directory-autoloads): Use
autoload-find-generated-file.  If called interactively, prompt for
output file.
(batch-update-autoloads): Doc fix.
2011-05-04 11:38:41 -04:00
Juanma Barranquero
0898ca10c0 Implement dynamic loading of GnuTLS on Windows.
* lisp/term/w32-win.el (dynamic-library-alist): Add `gnutls'.

* nt/INSTALL: Clarify GnuTLS support.

* src/callproc.c, src/emacs.c: Include lisp.h before src/w32.h, not after.

* src/gnutls.c (Qgnutls_dll): Define.
  (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros.
  (gnutls_*): Declare function pointers.
  (init_gnutls_functions): New function to initialize function pointers.
  (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit)
  (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers.
  (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
  Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno.
  (emacs_gnutls_write, emacs_gnutls_read)
  (emacs_gnutls_handle_error, Fgnutls_error_fatalp)
  (Fgnutls_available_p): New function.
  (Fgnutls_boot): Call Fgnutls_available_p.  Use function pointers.
  (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it.
  (syms_of_gnutls) <Sgnutls_available_p>: defsubr it.

* src/gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro.
  (emacs_gnutls_write, emacs_gnutls_read): Mark as extern.
  (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
  Declare.

* src/w32.c (QCloaded_from, Vlibrary_cache): Define.
  (w32_delayed_load): Move from image.c.  When loading a library, record
  its filename in the :loaded-from property of the library id.
  (globals_of_w32) <QCloaded_from, Vlibrary_cache>:
  Initialize and staticpro them.
  (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions.

* src/image.c: Include w32.h.
  (Vimage_type_cache): Delete.
  (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it.
  (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead.
  (w32_delayed_load): Move to w32.c.

* src/process.c: Include lisp.h before src/w32.h, not after.
  (wait_reading_process_output): Call emacs_gnutls_record_check_pending
  instead of gnutls_record_check_pending.

* src/w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.
2011-05-04 16:03:16 +02:00
Glenn Morris
f330b642bb Small diary-lib.el font-locking fix.
* lisp/calendar/diary-lib.el (diary-fancy-date-pattern):
Turn it into a function, so it follows changes in calendar-date-style.
(diary-fancy-date-matcher): New function.
(diary-fancy-font-lock-keywords): Use diary-fancy-date-matcher.
(diary-fancy-font-lock-fontify-region-function):
Use diary-fancy-date-pattern as a function.
2011-05-03 19:06:28 -07:00
Glenn Morris
31dfb76ced diary-lib.el fix for bug#8583.
* lisp/calendar/diary-lib.el (diary-fancy-date-pattern):
Do not use non-numbers for `year' etc pseudo-variables.
2011-05-03 19:03:30 -07:00
Ted Zlatanov
48e79d6a80 Use CL-style keyword arguments for `gnutls-negotiate' and allow :keylist and :crlfiles arguments.
* lisp/net/gnutls.el (gnutls-negotiate): Use CL-style keyword arguments
instead of positional arguments.  Allow :keylist and :crlfiles
arguments.
(open-gnutls-stream): Call it.

* lisp/net/network-stream.el (network-stream-open-starttls): Adjust to
call `gnutls-negotiate' with :process and :hostname arguments.
2011-05-03 20:44:58 -05:00
Stefan Monnier
ef80fc093a * lisp/minibuffer.el (completion--message): New function.
(completion--do-completion, minibuffer-complete)
(minibuffer-force-complete, minibuffer-complete-word): Use it.
(completion--do-completion): Don't ignore completion-auto-help when in
icomplete-mode.
2011-05-03 22:19:32 -03:00
Stefan Monnier
dd5a5ee08c * lisp/whitespace.el (whitespace-trailing-regexp): Don't rely on the
internal encoding (e.g. tibetan zero is not whitespace).
(global-whitespace-mode): Prefer save-current-buffer.
(whitespace-trailing-regexp): Remove useless save-match-data.
(whitespace-empty-at-bob-regexp): Minor simplification.
2011-05-03 22:02:09 -03:00
Chong Yidong
b7d22a83c2 * emacs-lisp/autoload.el (generated-autoload-file): Doc fix (Bug#7989). 2011-05-03 11:33:05 -04:00
Agustín Martín
cdc4a04778 Fix my last lisp/Changelog entry. 2011-05-03 17:08:20 +02:00
Agustín Martín
5192af462f ispell.el (ispell-add-per-file-word-list): Use `concat' to create string for insertion.
Fixes: debbugs:8579
2011-05-03 16:11:39 +02:00
Stefan Monnier
5767d190ca * lisp/textmodes/bibtex.el (bibtex-fill-field-bounds, bibtex-fill-entry):
Avoid open-line which runs post-self-insert-hook.
(bibtex-fill-entry): Remove unused `end' var.
2011-05-03 11:03:48 -03:00
Agustín Martín
bf242939d9 ispell.el (ispell-add-per-file-word-list): Protect against nil' value of comment-start' (Bug#8579). 2011-05-03 13:08:15 +02:00
Leo Liu
256661260d New command isearch-yank-pop and bind it to `M-y' in Isearch 2011-05-03 11:34:26 +08:00
Stefan Monnier
1bcace585f * lisp/simple.el (minibuffer-local-shell-command-map): Use completion-at-point.
(minibuffer-complete-shell-command): Remove.
(read-shell-command): Setup completion vars here instead.
(read-expression-map): Bind TAB to symbol completion.
2011-05-02 22:52:52 -03:00
Stefan Monnier
52d3c2d04d * lisp/textmodes/ispell.el (lookup-words): Use with-temp-buffer; signal
error directly rather via storing it into `results'.
2011-05-02 22:48:32 -03:00
Leo Liu
3581347187 Fix description of diff.el 2011-05-02 20:22:38 +08:00
Lars Magne Ingebrigtsen
e793a9404d Implement and document `server-eval-at'. 2011-05-02 04:06:53 +02:00
Lars Magne Ingebrigtsen
8de66e05c4 (open-network-stream): Take a :nowait parameter and pass it on to `make-network-process'. 2011-05-01 17:39:10 +02:00
Andreas Schwab
dcb79f208a * lisp/faces.el (face-spec-set-match-display): Don't match toolkit
options on terminal frames.
2011-04-30 19:57:07 +02:00