1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 04:30:55 -08:00
Commit graph

59462 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
9ddf23f075 lisp/gnus/eww.el (eww-convert-widgets): Make widgets from non-tabular layouts work, too
(eww-tag-select): Implement <select>
2013-06-12 01:38:23 +00:00
Stefan Monnier
f56be016d5 First part of Daniel Hackney's patch to package.el.
* lisp/emacs-lisp/package.el: Use defstruct.
(package-desc): New, main struct.
(package--bi-desc, package--ac-desc): New structs, used to describe the
format in external files.
(package-desc-vers): Replace with package-desc-version accessor.
(package-desc-doc): Replace with package-desc-summary accessor.
(package-activate-1): Remove `package' arg since the pkg-vec now
includes the name.
(define-package): Use package-desc-from-define.
(package-unpack-single): Change file-name arg to be a symbol.
(package--add-to-archive-contents): Use package-desc-create and new
accessor functions to package--ac-desc.
(package-buffer-info, package-tar-file-info): Return a package-desc.
(package-install-from-buffer): Remove `type' argument.  Change pkg-info
arg to be a package-desc.
(package-install-file): Adjust accordingly.  Use \' to match EOS.
(package--from-builtin): New function.
(describe-package-1, package-menu--generate): Use it.
(package--make-autoloads-and-compile): Change name arg to be a symbol.
(package-generate-autoloads): Idem and return the name of the file.
* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal):
Change pkg-info arg to be a package-desc.
Use package-make-ac-desc.
(package-upload-file): Use \' to match EOS.
* lisp/finder.el (finder-compile-keywords): Use package-make-builtin.
2013-06-11 20:49:33 -04:00
Stefan Monnier
931a2762fd * lisp/vc/vc.el (vc-deduce-fileset): Change error message.
(vc-read-backend): New function.
(vc-next-action): Use it.
2013-06-11 18:14:30 -04:00
Stefan Monnier
5a3eb0c6e4 * lisp/subr.el (function-arity): Remove (mistakenly added).
Fixes: debbugs:14590
2013-06-11 17:53:40 -04:00
Stefan Monnier
e3eb1bb7d9 * lisp/progmodes/prolog.el (prolog-make-keywords-regexp): Remove.
(prolog-font-lock-keywords): Use regexp-opt instead.
Don't manually highlight strings.
(prolog-mode-variables): Simplify comment-start-skip.
(prolog-consult-compile): Use display-buffer.  Remove unused old-filter.
2013-06-11 17:38:35 -04:00
Stefan Monnier
31119d6305 * lisp/emacs-lisp/generic.el (generic--normalise-comments)
(generic-set-comment-syntax, generic-set-comment-vars): New functions.
(generic-mode-set-comments): Use them.
(generic-bracket-support): Use setq-local.
(generic-make-keywords-list): Declare obsolete.
2013-06-11 17:26:00 -04:00
Glenn Morris
7de135d06f lisp-mode font-lock fox for bug#14574
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
Prettify after setting font-lock-defaults.
2013-06-11 14:00:27 -04:00
Juanma Barranquero
fa6bc6fd50 Fix typos.
* lisp/replace.el (query-replace, occur-read-regexp-defaults-function)
  (replace-search):
* lisp/subr.el (declare-function, number-sequence, local-set-key)
  (substitute-key-definition, locate-user-emacs-file)
  (with-silent-modifications, split-string, eval-after-load):
  Fix typos, remove unneeded backslashes and reflow some docstrings.
2013-06-11 18:51:12 +02:00
Grégoire Jadi
5a99554993 * lisp/xwidget.el: Fix some warnings raised by the byte-compiler. 2013-06-11 15:14:47 +02:00
Grégoire Jadi
2958568987 * lisp/xwidget-test.el: Add missing provide. 2013-06-11 15:14:47 +02:00
Grégoire Jadi
7a00481ac3 * src/xwidget.c (Fmake_xwidget): Add a docstring and add BUFFER as an optional parameter.
The docstring now lists the types accepted.
The GCPROtection has also been removed because it wasn't necessary (no
call to Feval/eval_sub either directly or indirectly).

(syms_of_xwidget): Add a comment to remind us to update the docstring of
`Fmake_xwidget' if new types are added.
2013-06-11 15:14:43 +02:00
Grégoire Jadi
8847f1116c Small fixes
* lisp/xwidget.el: Do some cosmetic changes.

Align expressions, remove some whitespaces, remove duplicated provide,
replace (if foo foo bar) by (or foo bar)
* src/xwidget.c (Fmake_xwidget): Cosmetic changes and fix a comment.
* README.xwidget: Fix some typos.
2013-06-11 15:12:58 +02:00
Stefan Monnier
cf1f9b9a81 * lisp/international/mule-conf.el (file-coding-system-alist): Use utf-8 as
default for Elisp files.
2013-06-11 08:51:18 -04:00
Albert Krewinkel
8e16fb987d lisp/gnus/sievel-manage.el: fully support STARTTLS, fix bit rot
* Make sieve-manage-open work with STARTTLS: shorten stream managing
  functions by using open-protocol-stream to do most of the work.  Has
  the nice benefit of enabling STARTTLS.

* Remove unneeded functions and options: the following functions and
  options are neither in the API, nor called by any other function, so
  they are deleted:
  - sieve-manage-network-p
  - sieve-manage-network-open
  - sieve-manage-starttls-p
  - sieve-manage-starttls-open
  - sieve-manage-forward
  - sieve-manage-streams
  - sieve-manage-stream-alist

  The options could not be applied in a meaningful way anymore; they
  didn't happen to have much effect before.

* Cosmetic changes and code clean-up

* Enable Multibyte for SieveManage buffers: The parser won't properly
  handle umlauts and line endings unless multibyte is turned on in the
  process buffer.

* Wait for capabilities after STARTTLS: following RFC5804, the server
  sends new capabilities after successfully establishing a TLS
  connection with the client.  The client should update the cached list
  of capabilities, but we just ignore the answer for now.
2013-06-11 07:32:25 +00:00
Glenn Morris
56602a4bfc * vc/log-view.el (log-view-mode-map): Inherit from special-mode-map,
although define-derived-mode was doing this anyway.

Fixes: debbugs:14583
2013-06-10 23:36:06 -07:00
Lars Magne Ingebrigtsen
d583b36b05 lisp/gnus/eww.el (eww-tag-input): Support password fields
(eww-submit): Support POST
2013-06-11 03:09:59 +00:00
Paul Eggert
c6bc7508a9 Spelling fixes. 2013-06-10 16:02:33 -07:00
Lars Magne Ingebrigtsen
001b9fbe7c lisp/gnus/eww.el (eww-tag-form): Protect against degenerate forms 2013-06-10 22:28:35 +00:00
Lars Magne Ingebrigtsen
f22255bdbd lisp/gnus/eww.el (eww-tag-input): Implement submit buttons
(eww-click-radio): Implement radio and checkboxes
(eww-submit): Handle hidden elements
(eww-submit): Get submit button logic right
lisp/gnus/shr.el (shr-expand-url): Expand URLs that start with a slash correctly
2013-06-10 22:12:47 +00:00
Juanma Barranquero
e7b41c4c9a Fix ChangeLog typos and whitespace. 2013-06-10 16:58:52 +02:00
Juanma Barranquero
30ae0b2c89 lisp/allout.el: Fix make-variable-buffer-local call. 2013-06-10 16:37:02 +02:00
Lars Magne Ingebrigtsen
2644071e8e lisp/gnus/eww.el: Add form support; Make form submission work; Support POST 2013-06-10 14:11:01 +00:00
Albert Krewinkel
266c63b5c1 lisp/gnus/sieve.el: Fix handling of PORT parameter, quitting 2013-06-10 11:46:27 +00:00
Roy Hashimoto
d058863a12 lisp/gnus/mm-view.el (mm-pkcs7-signed-magic, mm-pkcs7-enveloped-magic): Correct PKCS7 regexps to match messages with 0x0a bytes 2013-06-10 05:17:51 +00:00
Aidan Gauland
fa4729064f Update Ehsell visual-commands documentation
* eshell.texi (Input/Output): Expand to cover new visual-command
options, eshell-visual-subcommands and eshell-visual-options.
Divide into separate Visual Commands and Redirection sections.
* eshell/em-term.el (eshell-visual-commands)
(eshell-visual-subcommands)
(eshell-visual-options): Add summary line to docstrings.  Add
cross-references.
2013-06-10 14:41:49 +12:00
Aidan Gauland
f71b3317bd Wrap long line from previous commit. 2013-06-10 14:35:58 +12:00
Glenn Morris
ff4871b986 * lisp/epa.el (epa-read-file-name): New function.
(epa-decrypt-file): Make plain-file optional.  Use epa-read-file-name.

* doc/misc/epa.texi (Cryptographic operations on files): Update epa-decrypt-file.

Fixes: debbugs:14510
2013-06-09 17:32:49 -07:00
Xue Fuqiao
8d0b26f65d Minor doc fix.
* lisp/vc/vc-cvs.el (vc-cvs-stay-local): Doc fix.
* lisp/vc/vc-hooks.el (vc-stay-local): Doc fix.
* doc/emacs/vc1-xtra.texi (CVS Options): Fix the default value of
  `vc-cvs-stay-local'.
2013-06-09 19:15:54 +08:00
Aidan Gauland
04fcf1b047 Fix Eshell bug
* eshell/em-term.el (eshell-visual-command-p): Fix bug that
  causedoutput redirection to be ignored with visual commands.
2013-06-09 18:44:47 +12:00
Aidan Gauland
88b00caa0a Tidy module initialisation functions
* eshell/em-term.el (eshell-visual-command-p): New function.
(eshell-term-initialize): Move long lambda to separate function eshell-visual-command-p.
* eshell/em-dirs.el (eshell-dirs-initialise): Add missing #' to lambda.
* eshell/em-script.el (eshell-script-initialize): Add missing #' to lambda.
2013-06-09 18:39:40 +12:00
Leo Liu
fda741250b * progmodes/octave.el (octave-add-log-current-defun): New function.
(octave-mode): Set add-log-current-defun-function.
(octave-goto-function-definition): Do not move point if not found.
(octave-find-definition): Enhance to try subfunctions first.
2013-06-08 21:35:55 +08:00
Glenn Morris
467f3b337c Improve previous bytecomp fix
* lisp/emacs-lisp/bytecomp.el (byte-compile-char-before)
(byte-compile-backward-char, byte-compile-backward-word):
Improve previous change, to handle non-explicit nil.
2013-06-07 18:35:47 -07:00
Glenn Morris
650645d50f ChangeLog fix 2013-06-07 20:56:22 -04:00
Stefan Monnier
544badc372 * lisp/emacs-lisp/smie.el: Improve show-paren-mode behavior.
(smie--opener/closer-at-point): New function.
(smie--matching-block-data): Use it.  Don't match from right after an
opener or right before a closer.  Obey smie-blink-matching-inners.
Don't signal a mismatch for repeated inners like "switch..case..case".
2013-06-07 18:58:35 -04:00
Leo Liu
ce8209d4fe * progmodes/octave.el (octave-function-header-regexp): Fix.
(octave-help-mode-finish-hook, octave-help-mode-finish):
Remove.  Just use temp-buffer-show-hook.

Fixes: debbugs:14570
2013-06-07 21:00:47 +08:00
Leo Liu
a175bf337a * newcomment.el (comment-search-backward): Revert last change.
* emacs-lisp/smie.el (smie--matching-block-data): Minor simplification.

* progmodes/octave.el (octave-mode): Set comment-use-global-state
to t.  (Bug#14303)

Fixes: debbugs:14434 debbugs:14303
2013-06-07 19:48:28 +08:00
Eli Zaretskii
a822acffe2 Fix "make TAGS" on MS-Windows.
lisp/Makefile.in (TAGS TAGS-LISP): Pass the (long) list of *.el files
 through xargs, to avoid failure due to MS-Windows limitations on
 command-line length.

 src/Makefile.in (ctagsfiles1, ctagsfiles2): Don't include *.m files.
 (ctagsfiles3): New variable, includes only *.m files.
 (TAGS): Use an explicit language name in the regular expressions,
 to avoid transformation of '/SOMETHING' by MSYS to
 'c:\MSYS\SOMETHING'.
2013-06-07 12:26:02 +03:00
Juanma Barranquero
a0eb10b32a Fix typos. 2013-06-07 05:23:57 +02:00
Ted Zlatanov
ebada6e0ed gnus-ems.el (gnus-image-type-available-p): Test display-images-p' before image-type-available-p' 2013-06-06 22:18:53 +00:00
Glenn Morris
d0341459c1 * lisp/font-lock.el (lisp-font-lock-keywords-2): Treat user-error like error 2013-06-06 17:35:45 -04:00
Glenn Morris
c5de26b468 * prog-mode.el: Comment fixes. 2013-06-06 17:32:13 -04:00
Glenn Morris
961166f506 bytecomp fix for bug#14565
* lisp/emacs-lisp/bytecomp.el (byte-compile-char-before)
(byte-compile-backward-char, byte-compile-backward-word):
Handle explicit nil arguments.
2013-06-06 17:04:43 -04:00
Glenn Morris
93df970c5e * isearch.el (isearch-allow-prefix): New defcustoms need :version tags
(chisel this on my tombstone)
2013-06-05 23:23:19 -07:00
Juri Linkov
d2bf7a98a2 Add bug#9706. 2013-06-06 08:35:01 +03:00
Alan Mackenzie
80fa505f89 * isearch.el (isearch-allow-prefix): New user option.
(isearch-other-meta-char): don't exit isearch when a prefix
        argument is typed whilst `isearch-allow-prefix' is non-nil.

        * search.texi (Isearch Scroll): Rename to "Not Exiting Isearch".
        (Net Exiting Isearch): Document new user option
        `isearch-allow-prefix'.

	* etc/NEWS.  Entry for this change.
2013-06-05 20:57:09 +00:00
Stefan Monnier
fccdc796cf * lisp/autorevert.el (auto-revert-notify-handler): Use memq.
Hide assertion failure.
* lisp/skeleton.el: Use cl-lib.
(skeleton-further-elements): Use defvar-local.
(skeleton-insert): Use cl-progv.
2013-06-05 15:57:10 -04:00
Ted Zlatanov
9bfff84bf7 (prog-prettify-symbols) (prog-prettify-install): Update docstrings. 2013-06-05 14:30:47 -04:00
Stefan Monnier
55577e7c02 * lisp/simple.el: Move all the prog-mode code to prog-mode.el.
* lisp/progmodes/prog-mode.el: New file.
* lisp/loadup.el:
* src/lisp.mk (lisp): Add prog-mode.el.
2013-06-05 14:10:27 -04:00
Ted Zlatanov
8fc57765e8 Introduce and use prog-prettify-install. 2013-06-05 13:48:50 -04:00
Ted Zlatanov
28f5da6df3 (open-tls-stream): Remove unneeded buffer contents when opening the connection. 2013-06-05 11:03:37 -04:00