From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: Help with PHP setup Date: Sat, 21 Jul 2018 08:37:22 +0900 Message-ID: <441C26FC-5F31-4C6E-A201-56FBAC5070D0@gmail.com> References: <20180720165431792380014@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532129756 19403 195.159.176.226 (20 Jul 2018 23:35:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2018 23:35:56 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 01:35:52 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fgewA-0004ym-Ij for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 01:35:50 +0200 Original-Received: from localhost ([::1]:50157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgeyH-00019L-Gl for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 19:38:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgexn-00017E-VE for help-gnu-emacs@gnu.org; Fri, 20 Jul 2018 19:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgexk-0004AH-Rr for help-gnu-emacs@gnu.org; Fri, 20 Jul 2018 19:37:31 -0400 Original-Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:35865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgexk-00049z-KH for help-gnu-emacs@gnu.org; Fri, 20 Jul 2018 19:37:28 -0400 Original-Received: by mail-pg1-x52a.google.com with SMTP id s7-v6so4611310pgv.3 for ; Fri, 20 Jul 2018 16:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=qPhy85TA22wxB6pkiKnQQ3fMnbjFHGJGQcZ+2kzuW7k=; b=vNULbEFfzj9LtVSN2Qv59vfANf5QO9d2YjQzu/bPfCwI6KDJCq9WIxiQT2h21MoAWQ snawoUeNrELJjz8hZ9F/cQsaHgaSfaNacy7nyUQPOdvIAh7fGjxE0F3spKD68hkR5Wlb NCTkqXaDJAbyW/pSvoKDRoB+2nw0DW0bovk045RUSAZimpBwnHNc6ocnv400n1vtRAZX Wnca+LfpEGf5xJFxPifVfYMfW0XahWVT5gjYqLNyheVCauL77NwSmUopubXRZ4H+cUuQ +1ebexAV68IMePnbB4VgyQ9BHsVW6tTzJTuyxdT5mglbu0+BObtRbweIO/nCidi2ydNU enQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=qPhy85TA22wxB6pkiKnQQ3fMnbjFHGJGQcZ+2kzuW7k=; b=D3/xWVm9M1FvCFHrgTmu382sQoFRg7ZK2yaCtKDDj5rjmgY/XzUfqL5K+GIO8VvdAW CZmhF8yxSUA2qoOkymuabF5KT19Pv5eJURC5R/3XA1QdA9iqiQsiinUUixmkOGLw2oJE QyzEIPrQ49W3R2BLU5CZPb1XhLDC/gAioqpSjAvEyFaRb2vZ7ucMasFZK4o6pb4v/iLT oFd2GB95MGYYe0W+x6q6hRIjbxVa+gN6z6+tCjUo/5SUnbT3IKk+fdCwqd8kTWA0xNnD G9OknZvN/H7Y+NBUBwhh4GoYx9lWev2765NVkB9UWqMZ8kn4N0i+AGP0sufox+iALP85 nL4w== X-Gm-Message-State: AOUpUlHqYa0s9pr51+jjQCyoSzj7j7DVxAGyrT5ahSI7TAGja3gTS4Fp bskxP/ejtg7J4rM3uO5FKfBQnuHFCNs= X-Google-Smtp-Source: AAOMgpcESdSgWBMmyjgSWI/aXm86Htf4/QQlz8GC1NoS8BsPW7F6ABatGdKQUhFRLl6aKJjOKPX3fw== X-Received: by 2002:a63:4203:: with SMTP id p3-v6mr3805342pga.184.1532129846971; Fri, 20 Jul 2018 16:37:26 -0700 (PDT) Original-Received: from [192.168.1.7] (pl36180.ag0304.nttpc.ne.jp. [133.232.212.84]) by smtp.gmail.com with ESMTPSA id b76-v6sm4404139pfj.184.2018.07.20.16.37.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 16:37:25 -0700 (PDT) In-Reply-To: <20180720165431792380014@bob.proulx.com> X-Mailer: Apple Mail (2.3445.9.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117526 Archived-At: > On Jul 21, 2018, at 8:10, Bob Proulx wrote: >=20 > taariqq wrote: >> I am trying to set emacs up so that I can use it for PHP development. >=20 > I use emacs for PHP development. >=20 >> What I am looking for:=20 >> a) A way to open the files, via my vagrant or lampp setup, in the = browser. >> b) Update the view in the browser as I save changes to the file in = the editor. >> c) Switch the view in the browser as I switch from file to file and = continue to see the updates upon save. >=20 > I hate to post something that says it can't be done. Because almost > always when someone says something can't be done it actually can be > done and other people prove that to be true. But reading the above > makes me think that if someone does make that work that it would be > "icky". On a different thread I just asked how to call the file in the front = buffer without explicitly referring to its name and Eli was nice enough = to point at the obvious answer: buffer-file-name. So we can actually have a function that replaces the path part of the = file by a localhost url and run a command that opens that in the default = browser. Nothing icky about it, we just need the correct parameters to put that = together. Jean-Christophe=20