Wikipedia talk:Wikipedia-mode.el

message: It would be useful to have some sort of processing of math environment. I see some of form of that is on your todo list. --CSTAR 01:54, 19 Sep 2004 (UTC)
thread_title:  Math/TeX handling 

message: Why on earth is the text about Wikipedia-mode.el in the namespace "Image"? I tried to move this from Image:Wikipedia-mode.el to Wikipedia:Wikipedia-mode.el but the system does not let me. --Oleg Alexandrov 23:23, 7 Jan 2005 (UTC)
thread_title:  Wrong place for wikipedia-mode.el 

message: Would it not be better called wikimedia-mode.el? —Preceding unsigned comment added by 62.255.64.5 (talk • contribs) 
:Even better would be mediawiki-mode.el because it's not necessarily limited to MediaWiki installations owned by Wikimedia Foundation. --Damian Yerrick (☎) 08:00, 5 February 2006 (UTC)
replies: text:  Well, ask the creator of this software to rename it, then we may also rename the page. Oleg Alexandrov (talk) 16:18, 5 February 2006 (UTC)
thread_title:  Page name 

message: Emacs also has an internal w3 browser... --Jidanni 2006-04-15
:How do you mean? There is an old and generally obsolete and slow browser implemented in Lisp for Emacs, and the w3m-el interface to w3m, but there are no internal browsers for Emacs that I know of, nor can I find it in my emacs. --maru  (talk)  contribs 18:12, 15 April 2006 (UTC)
thread_title: w3 / w3m

message: This ought to be part of the official emacs distribution, or at least
included in some Debian side package. Jidanni (talk) 18:45, 26 November 2008 (UTC)
thread_title: Add to official emacs

message: I found the use of longlines mode a bother, so I created this patch to wikipedia-mode.el
so that users can disable it with
:M-x customize-variable wikipedia-use-longlines-p
The patch is based on version 0.5.
*** wikipedia-mode.el.orig	Fri Nov 21 08:16:03 2008
--- wikipedia-mode.el	Wed Dec 24 11:05:31 2008
***************
*** 362,367 ****
--- 362,368 ----
  ;; wikipedia-english-or-german
  ;; wikipedia-draft-reply-register ?M
  ;; wikipedia-mode-version
+ ;; wikipedia-use-longlines-p
  
  ;;}}}
  
***************
*** 946,952 ****
  
  (defun wikipedia-turn-on-longlines ()	;Version:1.58
    "Turn on longlines-mode if it is defined."
!   (if (functionp 'longlines-mode)
        (longlines-mode 1)))
  (add-hook 'wikipedia-mode-hook 'wikipedia-turn-on-longlines)
  (set (make-local-variable 'auto-fill-inhibit-regexp) "^[ *#:|;]")
--- 947,953 ----
  
  (defun wikipedia-turn-on-longlines ()	;Version:1.58
    "Turn on longlines-mode if it is defined."
!   (if (and wikipedia-use-longlines-p (functionp 'longlines-mode))
        (longlines-mode 1)))
  (add-hook 'wikipedia-mode-hook 'wikipedia-turn-on-longlines)
  (set (make-local-variable 'auto-fill-inhibit-regexp) "^[ *#:|;]")
***************
*** 1425,1430 ****
--- 1426,1436 ----
    :type 'string
    :group 'wikipedia-draft)
  
+ (defcustom wikipedia-use-longlines-p t
+   "*If on, wikipedia mode will use longlines mode"
+   :type 'boolean
+   :group 'wikipedia-draft)
+ 
  
  ;;; Internal Variables:
--DavidBiesack (talk) 16:07, 24 December 2008 (UTC)
thread_title:  Disabling longlines mode 

message: There are commands to set auto-mode-alist in both the Installing wikippedia-mode
and the Usage sections.  Shouldn't we merge them into just the Usage section?
Pheaver (talk) 21:22, 4 September 2009 (UTC)
thread_title:  Duplicate Code 

message: The code to add to the text-mode-hook should be this:
  (add-hook 'text-mode-hook '#[nil "\300\301!\207" [flyspell-mode 1] 2])
  (add-hook 'text-mode-hook 'flyspell-buffer)
  (add-hook 'text-mode-hook 'text-mode-hook-identify)
Not this:
  (setq text-mode-hook (quote (#[nil "\300\301!\207" [flyspell-mode 1] 2] flyspell-buffer text-mode-hook-identify))) 
Using setq will erase any functions that are already in that hook.
Pheaver (talk) 21:22, 4 September 2009 (UTC)
thread_title:  text-mode-hook