From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Condition to link to javascript code? Date: Fri, 23 Dec 2016 11:18:32 -0500 Message-ID: References: <87eg19uc8y.fsf@gnu.org> <87pokpnn7b.fsf@bzg.fr> <87lgvc8hrp.fsf@bzg.fr> <878trb517w.fsf@bzg.fr> <87oa05h66j.fsf@gmx.us> <87y3z8feig.fsf@gmx.us> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: blaine.gmane.org 1482509970 16239 195.159.176.226 (23 Dec 2016 16:19:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2016 16:19:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 23 17:19:24 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKSYw-0002j2-0T for ged-emacs-devel@m.gmane.org; Fri, 23 Dec 2016 17:19:18 +0100 Original-Received: from localhost ([::1]:39804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKSZ0-0004tS-Lr for ged-emacs-devel@m.gmane.org; Fri, 23 Dec 2016 11:19:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKSYr-0004sP-ND for emacs-devel@gnu.org; Fri, 23 Dec 2016 11:19:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKSYq-0008TM-Vh for emacs-devel@gnu.org; Fri, 23 Dec 2016 11:19:13 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKSYD-0007do-3T; Fri, 23 Dec 2016 11:18:33 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cKSYC-0001Xp-KM; Fri, 23 Dec 2016 11:18:32 -0500 In-reply-to: (message from Achim Gratz on Fri, 23 Dec 2016 14:40:18 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210755 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Could you put some JS code into the page that would give the user > > a way to specify a different URL for klipse.js? Perhaps that could > > be stored in a cookie or something else in the browser. > You could do that by rewriting the page into the form that is then > ultimately displayed in the browser. But I don't consider that a good > solution as the user doesn't know what's going to happen before trying > to use the file (and not at all if the respective cookie already exists, > which the user might have forgotten about or has been dropped in from > somewhere). I don't follow the meaning of that text. For instance, "rewriting the page into the form that is then ultimately displayed..." Could you explain what sort of rewrite you mean? The JS code I propose would indeed change the page -- but only in a single detail, the URL for klipse.js. That change hardly qualifies as "rewriting". So what "rewriting" is it? -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.