w3.el Patch
2012-08-11 14:31:59 GMT
A while back, I noticed that the back mechanism was no longer working in w3. The patch below fixes this
problem. It also updates the lisp code to please Emacs' byte-compiler. If any problems are found, please
let me know.
Ian D.
-- Patch Begins Here --
diff --git a/lisp/w3.el b/lisp/w3.el
index b33623d..16aaafe 100644
--- a/lisp/w3.el
+++ b/lisp/w3.el
<at> <at> -69,8 +69,7 <at> <at> See the variable `w3-notify' for the different notification behaviors."
;; we must not leave a different buffer current.
;; We can't rely on the editor command loop to reselect
;; the selected window's buffer.
- (save-excursion
- (set-buffer buff)
+ (with-current-buffer buff
(make-frame)))
((eq w3-notify 'bully)
(pop-to-buffer buff)
<at> <at> -216,8 +215,7 <at> <at> variable `http-header'."
"Propagate information from <meta http-equiv...> elements to MIME headers.
Operate on BUFFER."
(let (content-type end-of-headers extra-headers)
- (save-excursion
- (set-buffer buffer)
+ (with-current-buffer buffer
(Continue reading)Question about using w3c browser inside emacs.
2011-10-06 10:36:15 GMT
successfully with the w3c sourcecode publicised on the git server.
I try M -x url-
And it seems to halt at "making completion list...".
Admittedly, I needed a copy of url-vars.el
from the internet.
-Has this created a buggy configuration? Where, url or otherwise,
can I find a recommended url-vars.el file?
-What M - x commands do I type from emacs to start browsing
in a new buffer (window)? What are my options with w3c ?
_______________________________________________ W3-dev mailing list W3-dev <at> gnu.org https://lists.gnu.org/mailman/listinfo/w3-dev
[patch #7546] MacOS X w3 crashes on startup
2011-05-27 18:06:33 GMT
URL: <http://savannah.gnu.org/patch/?7546> Summary: MacOS X w3 crashes on startup Project: w3 Submitted by: devon Submitted on: Fri 27 May 2011 06:06:32 PM GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Here's the fix --- w3-git-2011e-May-26-Thu/lisp/font.el 2011-05-26 15:31:52.000000000 -0400 +++ w3/lisp/font.el 2011-05-27 13:07:30.000000000 -0400 <at> <at> -79,6 +79,7 <at> <at> (mswindows . (mswindows-font-create-name mswindows-font-create-object)) (win32 . (x-font-create-name x-font-create-object)) (w32 . (x-font-create-name x-font-create-object)) + (ns . (x-font-create-name x-font-create-object)) ; NextStep, MacOS X (pm . (x-font-create-name x-font-create-object)) ; Change? FIXME (tty . (tty-font-create-plist tty-font-create-object))) "Alist mapping device types to functions. <at> <at> -430,7 +431,7 <at> <at> ;(weight "\\(bold\\|demibold\\|medium\\|black\\)") (weight\? "\\([^-]*\\)") ;(slant "\\([ior]\\)") - (slant\? "\\([^-]?\\)") + (slant\? "\\([^-]*\\)") (swidth "\\([^-]*\\)") (adstyle "\\([^-]*\\)") (pixelsize "\\(\\*\\|[0-9]+\\)") _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?7546> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[bug #30428] Crash when viewing any page on nextstep
2010-07-13 09:54:54 GMT
URL: <http://savannah.gnu.org/bugs/?30428> Summary: Crash when viewing any page on nextstep Project: w3 Submitted by: legoscia Submitted on: Tue Jul 13 11:54:53 2010 Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: legoscia Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: In the nextstep port of emacs (e.g. on Mac OS X), font.el crashes with "font-default-size-for-device: Wrong type argument: arrayp, nil" when trying to display any page. This is because 'ns is an unknown device type. The attached patch makes this problem go away; however the text is insanely big. The proper solution is probably more involved. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue Jul 13 11:54:53 2010 Name: font.el.diff Size: 581B By: legoscia Treat nextstep fonts as X fonts <http://savannah.gnu.org/bugs/download.php?file_id=20952> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30428> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
Default size of header tags
2009-11-25 15:53:42 GMT
Currently h1 is smaller than the normal text on the page, which is more certainly incorrect. There are suggested default values in appendix D of the css 2 spec (http://www.w3.org/TR/CSS21/sample.html), which seem to work much better for h1-h6: } <at> media multifont { - h1 { font-size : +12pt } - h2 { font-size : +6pt } - h3 { font-size : +4pt } - h5 { font-size : -2pt } - h6 { font-size : -4pt } + h1 { font-size : 2em; margin: .67em 0 } + h2 { font-size : 1.5em; margin: .75em 0 } + h3 { font-size : 1.17em; margin: .83em 0 } + h5 { font-size : .83em; margin: 1.5em 0 } + h6 { font-size : .67em; margin: 1.67em 0 } } /* This causes problems with Emacs 19 */
List Item Margins
2009-11-25 15:47:35 GMT
Back in July, I submitted a bug fix to address the fact that the margin preceding list items is converting pixel width to a space each. The fix I proposed at the time was far too aggressive, so I am proposing an alternate solution: <at> <at> -624,7 +624,7 <at> <at> If the face already exists, it is unmodified." (beginning-of-line) (case list-style ((disc circle square) - (insert (format (format "%%%dc" margin) + (insert (format (format "%%%dc" (/ margin (frame-char-width))) (or (cdr-safe (assq list-style w3-bullets)) ?o)))) ((decimal lower-roman upper-roman lower-alpha upper-alpha)
Wrong type argument: arrayp, nil
2009-11-15 21:29:26 GMT
Hi,
_______________________________________________ W3-dev mailing list W3-dev <at> gnu.org http://lists.gnu.org/mailman/listinfo/w3-dev
Suggest change to css-expand-length
2009-07-21 02:05:46 GMT
I don't think this is exactly correct, but I think it will work better than what's there.
((string-match "\\([+-]?\\([0-9]+\\|[0-9]*\\.[0-9]+\\)\\)e[mx]" spec)
;; Character based
;; XXX: should be relative to font size of enclosing element
(string-to-number (match-string 1 spec)))
Basically, each "em" unit should be the size of two spaces (or lines). Currently the function uses font-spatial-to-canonical, which returns the number of points for the number of pixels. Somehow, this number of points gets turned into the number of spaces, which is definitely wrong.
If you can think of a better way to address the issue, this was just an idea. It was pretty much just a hack to make a page not look totally ridiculous, just thought it would help the project.
Colin
_______________________________________________ W3-dev mailing list W3-dev <at> gnu.org http://lists.gnu.org/mailman/listinfo/w3-dev
Putting Emacs/W3 in ELPA?
2009-02-22 11:47:01 GMT
Hi, I would like Emacs/W3 to be uploaded to ELPA (Emacs Lisp Package Archive) http://tromey.com/elpa/ This is because ELPA makes it very easy to quickly install the packages I want on different emacsen, on different platforms. I just do `M-x package-list-packages RET' to open a dired-like buffer, listing all emacs lisp packages on offer at ELPA, then mark the packages you'd like to install with `i' and then finally `x' to install them. I've already prepared an ELPA package and sendt to Tom Tromey, the maintainer of ELPA. But he prefers to have upstream approval, and also that the upstream maintainers upload new version directly to ELPA. To ease that task, I'm enclosing some diffs to the current git repo for ELPA. The diffs are originally from Tom Tromey, but I've modified them to make them run on debian etch (and lenny). The diffs make it possible to just do: make elpa to get a w3-$VERSION.tar file in the w3 directory that can be uploaded to ELPA. An ELPA package consists of a directory with all .el files and all info files, and a *-pkg.el file, containing package meta-info. It must be possible to byte compile all of the .el files by making load-path include the package directory. My modifications to Tom's original Makefile.in diffs, are: - Don't depend on .elc for building elpa - Use ginstall-info rather than install-info to create a dir.info file, since install-info on debian is a different version with different arguments, that's a part of the dpkg package - Generate a w3-pkg.el file - Added an elpaclean target that will delete the w3-pkg.el, the ELPA package, and any staging directories, and made clean also do elpaclean The w3.el change is, according to Tom, to make w3 adjust to the different directory layout it finds in ELPA. Here are the git diffs: diff --git a/Makefile.in b/Makefile.in index 449d657..42098f8 100644 --- a/Makefile.in +++ b/Makefile.in <at> <at> -31,9 +31,12 <at> <at> distclean: clean for x in $(SUBDIRS); do ( cd $$x && $(MAKE) $ <at> ); done $(RM) config.* Makefile -clean: +clean: elpaclean for x in $(SUBDIRS); do ( cd $$x && $(MAKE) $ <at> ); done +elpaclean: + $(RM) $(ELPA_PACKAGE_DEF) $(DIRNAME).tar + dotemacs: <at> if (grep ";;; Emacs/W3 Configuration" $(DOTEMACS) 2>&1) >/dev/null; then \ echo Emacs/W3 setup already exists in $(DOTEMACS); \ <at> <at> -102,3 +105,28 <at> <at> _pkg.el: Makefile <at> echo ";;;###autoload" > _pkg.el <at> echo "(package-provide '$(PACKAGE)" >> pkg.el <at> echo " :version $(VERSION)" >> pkg.el + +############################################################################### +# ELPA +############################################################################### +ELPA_PACKAGE_DEF=lisp/w3-pkg.el + +elpa: info $(ELPA_PACKAGE_DEF) + rm -fr /tmp/$(DIRNAME) + mkdir /tmp/$(DIRNAME) + cp $(srcdir)/lisp/*.el /tmp/$(DIRNAME) + rm -f /tmp/$(DIRNAME)/docomp.el + rm -f /tmp/$(DIRNAME)/custom-load.el + rm -f /tmp/$(DIRNAME)/auto-autoloads.el + cp texi/*.info /tmp/$(DIRNAME)/ + tar cf - etc | (cd /tmp/$(DIRNAME); tar xf -) + rm -f /tmp/$(DIRNAME)/etc/Makefile + rm -f /tmp/$(DIRNAME)/etc/Makefile.in + ginstall-info /tmp/$(DIRNAME)/w3.info /tmp/$(DIRNAME)/dir + ginstall-info /tmp/$(DIRNAME)/w3-faq.info /tmp/$(DIRNAME)/dir + rm -f /tmp/$(DIRNAME)/dir.old + ( cd /tmp; tar cf - $(DIRNAME) ) | cat > $(DIRNAME).tar + rm -fr /tmp/$(DIRNAME) + +$(ELPA_PACKAGE_DEF): + echo "(define-package \"w3\" \"$(VERSION)\" \"A web browser written entirely in Emacs Lisp\")" > $(ELPA_PACKAGE_DEF) diff --git a/lisp/w3.el b/lisp/w3.el index b33623d..387600b 100644 --- a/lisp/w3.el +++ b/lisp/w3.el <at> <at> -5,7 +5,7 <at> <at> ;; Keywords: faces, help, comm, news, mail, processes, mouse, hypermedia ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; Copyright (c) 1996, 97, 98, 99, 2001, 2007, 2008 Free Software Foundation, Inc. +;;; Copyright (c) 1996, 97, 98, 99, 2001, 2007, 2008, 2009 Free Software Foundation, Inc. ;;; Copyright (c) 1993 - 1996 by William M. Perry <wmperry <at> cs.indiana.edu> ;;; ;;; This file is part of GNU Emacs. <at> <at> -1710,6 +1710,9 <at> <at> BUFFER, the end of BUFFER, nil, and (current-buffer), respectively." (if (fboundp 'locate-data-directory) (locate-data-directory "w3")) data-directory + ;; For ELPA. + (expand-file-name "etc" w3-lisp) + (concat data-directory "w3/") (expand-file-name "../../w3" data-directory) w3-lisp
Compiling for CarbonEmacs on Mac OS X Tiger
2008-09-18 18:21:44 GMT
_______________________________________________ W3-dev mailing list W3-dev <at> gnu.org http://lists.gnu.org/mailman/listinfo/w3-dev
RSS Feed